mcpField
T

Token Lens

Local
@duttkunal101-labAI & Agents

About Token Lens

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

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"duttkunal101-lab-token-lens": {
"command": "npx",
"args": [
"-y",
"@kunal_dutt/token-lens"
]
}
}
}
Run commandnpx -y @kunal_dutt/token-lens

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@kunal_dutt/token-lens0.2.37

Tools

11

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
planenumNoThe user's plan, if they said; saved for next time.free | pro | max | team
chat_tokensintegerNoYour best estimate of this chat's size in tokens.
week_pct_usednumberNo
session_pct_usednumberNoSession usage % from Claude's Settings > Usage, if the user gave it.
session_resets_in_minutesnumberNo

Details

The maintainer has not added details yet. Check the README in the repository.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.