token-lens-mcp
An MCP server designed to analyze and optimize context window token usage for AI agents. It provides tools to audit token budgets, compress verbose tool schemas, optimize tool loading by recommending minimal sets, and track session usage to identify wasted tokens. This helps developers reduce the overhead of MCP tool definitions which can consume significant context window space.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Audit token costs of MCP tool definitions
- Compress verbose tool schemas to save tokens
- Recommend minimal tool sets for specific tasks
- Track tool usage to identify wasted context
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
token-lens-mcp 0.1.2
{
"version": "0.1.2",
"transport": "stdio",
"identifier": "token-lens-mcp",
"registryType": "npm"
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"token-lens-mcp": {
"command": "npx",
"args": [
"-y",
"token-lens-mcp@0.1.2"
]
}
}
}Cline
{
"mcpServers": {
"token-lens-mcp": {
"command": "npx",
"args": [
"-y",
"token-lens-mcp@0.1.2"
]
}
}
}VS Code
{
"servers": {
"token-lens-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"token-lens-mcp@0.1.2"
]
}
}
}Claude Desktop
{
"mcpServers": {
"token-lens-mcp": {
"command": "npx",
"args": [
"-y",
"token-lens-mcp@0.1.2"
]
}
}
}Let your agent find its tools
Find servers like token-lens-mcp from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.