📡 MCP Radar

Naeha-S/ctxcap

Offline token-budget linter for agent context files — measures CLAUDE.md/AGENTS.md, finds dead references, returns a ranked plan.

⭐ 3 stars
⑂ 0 forks
JavaScript
momentum ▲ 6.0
created 2026-11-12
on radar since 2026-11-16
ai-agentsclaude-codeclicontext-engineeringcursorgithub-actionmcpmcp-serverprompt-engineeringsarif
View on GitHub ↗

About ctxcap

AGENTS.md, CLAUDE.md, and prompt files are loaded into agent sessions over and over, and they only grow. ctxcap counts what they cost in tokens, flags pull requests that grow them, and finds the references in them that point at files and scripts that no longer exist.

It runs offline: no API key, network call, telemetry, or config. Node 20 or newer.

- Measures. Token counts per file and in total, as text, JSON, or SARIF. - Gates pull requests. A GitHub Action compares against a committed baseline, comments the delta on the pull request, and fails only when you ask it to. - Finds stale references. Paths and npm run scripts named in a context file that no longer resolve in the repository. - Plans a trim. A ranked list of edits to get under a budget, with a verify step. This is the newest part; review its diffs before you accept them. See Trim to a budget.

By default it scans CLAUDE.md, AGENTS.md, .github/copilot-instructions.md, prompts/, .prompt, and .cursor/rules/.

Run it in the repository you want to inspect. Nothing is installed or written:

To track growth, commit a baseline. Later runs report the delta against it:

To pin it as a dev dependency instead of using npx: npm i -D ctxcap.

Agents do not search npm. They read the config that is already in the repository. init writes that config for each agent, and you commit it, so every clone and every teammate's agent has ctxcap without running anything. Nothing is installed, and nothing runs at install time.

From the project README.

Maintaining this server?

Add the radar badge to your README — it shows your project was picked up by MCP Radar and links to this page:

[![On MCP Radar](https://mcp.liqiwa.com/badge.svg)](https://mcp.liqiwa.com/s/Naeha-S--ctxcap.html)

Related MCP servers

00200200/usagetrim

Keep the signal. Cut the noise. Local CLI + MCP — fold verbose tool output for Claude Code, Codex, Cursor & Desktop.

⭐ 11Python
KernelLord/pickysteve

Skill router and context picker for Claude Code, Cursor, and Aider. Auto-picks the right skill for every prompt, with prompt-injection filtering for MCP.

⭐ 6Python
Kerneta/daidocs

Open plain-text file format for AI memory. Your assistant's long-term memory as .dai files on your disk: readable by Claude, GPT, Gemini, Cursor, local models and grep (all LLM models work). MCP serve

⭐ 29JavaScript
apex-engine-dev/apex-verify

Catch AI code changes that pass your tests but are wrong. A different model writes the missing checks, proves they can fail, and answers ready / not ready with evidence. CLI, Claude Code and Gemini CL

⭐ 4JavaScript
muhlegger/agent-eyes

Let your coding agent see the UI it just changed, motion included: screenshots logged in at every width, and what's wrong as text (animations that snap, shrink, flicker or freeze, content that jumps a

⭐ 3JavaScript
Graphicle-AI/graphicle

Code graph and memory for your coding agents, in one Rust program. For Claude Code, Codex, Cursor and any MCP client.

⭐ 325Rust

📬 Get the weekly radar in your inbox

The top new MCP servers of the week, every Monday. No spam, unsubscribe anytime.