@kunal_dutt/token-lens

Level CLocal

Count and cut the tokens your prompts, chats and agents use, adapted to the model and task. MCP server and self-hosted gateway. Collects no data.

⭐ 0Development ToolsJavaScriptRepo ↗Updated 2026-10-22

Installation

MCP client config (paste into mcp.json)

{
  "mcpServers": {
    "npm-kunal-dutt-token-lens": {
      "command": "npx",
      "args": [
        "@kunal_dutt/token-lens"
      ]
    }
  }
}

Agent install prompt

Copy and paste into Cursor / Claude / other agents to install this MCP for you

Please read this MCP repository and install it into my current environment:
https://www.npmjs.com/package/@kunal_dutt/token-lens

Known working client config (can write into mcp.json):
{
  "mcpServers": {
    "npm-kunal-dutt-token-lens": {
      "command": "npx",
      "args": [
        "@kunal_dutt/token-lens"
      ]
    }
  }
}

Please: 1) check README for deps and env vars; 2) write config for my client; 3) if secrets are missing, tell me what to fill — do not invent values.

Related servers