Skip to content
Agentmart
Submit a tool

Token Lens

Context window token analysis and budget management

Connector by mdfifty50-boop · GitHub account verified by the MCP Registry

IndexedLicense unknownLocal (stdio)
Write a review

Install

Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.

npx agentmarket install connector/mdfifty50-boop-token-lens

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Context window token analysis and budget management

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this server can do and what it asks for, from its tool list and install config. Checked Oct 25, 2026.

Tools
5 read · 0 write · 0 delete · 2 not yet classified
Secrets
None asked for
Install scripts
Not scanned yet
Runs as
Node.js package

Tools by what they do 7

Read from the source code; the running server may list different tools.

Read 5 · Look things up without changing anything.

  • analyze_session_usage
  • audit_context_budget
  • get_optimization_report
  • health_check
  • suggest_removals

Not yet classified 2 · We could not tell from the name and description.

  • compress_schema
  • optimize_tool_loading

Tools (7)

Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].

  • analyze_session_usage

    Track which tools are actually called vs loaded in a session. Register tools, log calls, and generate waste reports showing unused tools ranked by token cost.

  • audit_context_budget

    Analyze the token cost of MCP tool definitions. Estimates tokens per tool using chars/4 on the full JSON definition. Returns per-tool costs and percentage of common context windows.

  • compress_schema

    Compress a verbose tool schema to reduce token usage. Light: remove short descriptions. Medium: shorten descriptions, remove examples. Aggressive: strip all descriptions.

  • get_optimization_report

    Full context window health check combining audit, removal suggestions, and compression recommendations. Returns an executive summary with health grade and projected savings.

  • health_check

    Returns server health, uptime, version, and storage stats

  • optimize_tool_loading

    Given a task description, recommend the minimal set of tools needed. Uses keyword matching and category relevance scoring to rank tools.

  • suggest_removals

    Identify tools that can be removed based on usage history. Scores: never_used > not_used_30_days > rarely_used. Returns removal candidates with estimated token savings.

Signals

Stars
0
Forks
0
Open issues
0
Last commit
Apr 24, 2026 (6 months ago)
Last release
Apr 24, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

Registry name
io.github.mdfifty50-boop/token-lens
Version
0.1.2
Auth
No auth
Packages
npm token-lens-mcp
License
License unknown
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from mdfifty50-boop

Cite this page

Token Lens MCP server. Agent Mart. https://agentmart.dev/connectors/mdfifty50-boop-token-lens (last updated 2026-10-24)