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. 266 installs a week from npm.

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

Installs per day peak 126 · avg 44 · -37% w/w
a month agotoday
266
Installs / week
npm · @kunal_dutt/token-lens
—
Stars
on GitHub
—
Last commit
39 releases in 90 days
—
License
language unknown

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": {
      "command": "npx",
      "args": [
        "-y",
        "@kunal_dutt/token-lens"
      ]
    }
  }
}
~/.codex/config.toml
[mcp_servers.token-lens]
command = "npx"
args = ["-y", "@kunal_dutt/token-lens"]
.cursor/mcp.json
{
  "mcpServers": {
    "token-lens": {
      "command": "npx",
      "args": [
        "-y",
        "@kunal_dutt/token-lens"
      ]
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "token-lens": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@kunal_dutt/token-lens"
      ]
    }
  }
}

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

Alternatives to Token Lens

same job, measured the same way
Notion MCP Server
by awkoy

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

7 021 installs/wk local only
Telegram MCP
by n24q02m

Telegram for AI agents: messages, chats, media, and contacts in bot and user-account modes.

2 451 installs/wk local only
Zn Gate
by usezn

The local security layer for coding agents. No account, and nothing is sent by default.

1 065 installs/wk local only
prompt-protection
by mughalhere

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

1 033 installs/wk local only
Tokmeter — AI Agent Usage & Cost
by sriinnu

Tokens and cost for Claude Code, Codex and 22 more AI coding agents, from local session files.

687 installs/wk local only
Istok
by vtimame

Local task tracker for coding agents that runs their checks and keeps the proof behind done.

409 installs/wk local only
Brevio Core
by brevio-ventures

Code rules for coding agents: scan, explain a rule, learn a guard. Local, with no model call.

251 installs/wk local only
Brandrail
by com-brandrail

Design system guardrails for AI coding tools: tokens, components and a brand checker. Runs locally.

242 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 was installed 266 times last week.
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 in the form 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.
How many people use Token Lens?
The npm package @kunal_dutt/token-lens was installed 266 times in the last week. Week over week that is -37%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.