mcpbeat Sign in

Token Lens MCP Server

by duttkunal101-lab Your server? Claim it
local only

Token Lens runs on your own machine — the client starts it, so there is no endpoint to ping.

Count and cut tokens in prompts, chats and agents for any model. Runs locally, collects no data.

—
Installs / week
npm · @kunal_dutt/token-lens
—
Stars
on GitHub
—
Last commit
from GitHub
—
License
language unknown

Nothing serious here today

Today is the operative word: we check Token Lens every 15 minutes and re-read its code on every release. Watch it and you find out the day that stops being true.

Three servers free · no card

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add token-lens -- npx -y @kunal_dutt/token-lens
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "token-lens": {
      "args": [
        "-y",
        "@kunal_dutt/token-lens"
      ],
      "command": "npx"
    }
  }
}
~/.codex/config.toml
[mcp_servers.token-lens]
command = "npx"
args = ["-y", "@kunal_dutt/token-lens"]
.cursor/mcp.json
{
  "mcpServers": {
    "token-lens": {
      "args": [
        "-y",
        "@kunal_dutt/token-lens"
      ],
      "command": "npx"
    }
  }
}
.vscode/mcp.json
{
  "mcpServers": {
    "token-lens": {
      "args": [
        "-y",
        "@kunal_dutt/token-lens"
      ],
      "command": "npx"
    }
  }
}

Alternatives to Token Lens

same job, measured the same way
prompt-protection
by mughalhere

Scan prompts, tool definitions and model output for injection, and guard agent tool calls.

611 installs/wk local only
MCP Token Optimizer
by rccola990-cloud

Cut LLM token costs: count tokens, estimate cost, slim prompts, and pick the cheapest capable model.

36 installs/wk local only
Notion MCP Server
by awkoy

Token-auth Notion MCP: pages, databases, blocks, comments, files. Runs headless in CI and agents.

3 009 installs/wk local only
Agent Cost Log
by botrecipe

Cost per run, tool, model and day for AI agents, from one call or an OpenTelemetry export.

4 tools answering
Pramana MCP
by loopg

Read your recorded AI agent runs, and what changed when you swapped a model or prompt.

194 installs/wk local only
Sage
by l33tdawg

Persistent, consensus-validated institutional memory for AI agents. Runs locally.

local only
MCP Charts
by mcpcharts

Find MCP servers, skills, plugins, agents, prompts and rules for any task.

3 tools answering
Awesome Copilot MCP Server
by rbbtsn0w

Model Context Protocol server for awesome-copilot agents and collections

395 installs/wk local only

Token Lens — questions

Answers built from our own checks of this server.

Why is there no uptime for Token Lens?
Token Lens runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the npm package @kunal_dutt/token-lens.
How do I connect Token Lens?
Copy the ready config from this page — we generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each with the file path that client actually reads. It runs locally, so the command pulls @kunal_dutt/token-lens straight from npm; nothing to host, nothing to sign up for.