trace-mcp
Lets your AI agent query a prebuilt graph of your codebase instead of re-reading files, saving tokens.
202 stars on GitHubby nikolai-vysotskyiLicense MITUpdated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add trace -- npx -y trace-mcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
What breaks if I change the User model?
Show me the request flow from the /users URL to the rendered page.
What it is
trace-mcp builds a framework-aware graph of your code once and serves it over MCP. Your agent can ask what breaks if a model changes, trace a request from URL to view, or search past decisions. It also indexes markdown note vaults such as Obsidian.
What it can do
get_change_impact: blast radius of a changeplan_turn: opening move for a new taskquery_decisions: find recorded decisions linked to codesearch_sessions: search past sessionsget_request_flow: trace route to controller to viewget_untested_symbols: find untested codeget_subproject_impact: cross-service impactfind_usagesandapply_rename: usages and renames
When to use
- βΊWhen you want to know what breaks before changing a model or function.
- βΊWhen you review a pull request and want to spend fewer tokens.
- βΊWhen you want your agent to recall why a past decision was made.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
ontoly-software-graphHelps your agent analyze software and trace requests. It uses a software graph to understand dependencies and the impact of changes.cloud-trace-queryingHelps your agent search Cloud Trace for slow or failing requests, link traces to logs and find where the latency comes from.attack-path-analysisHelps your agent trace a security finding from its entry point to its target, then judge the real impact and whether it should be reported.Frequently asked questions
Is it free?
The readme shows an npm package and a license badge. Some tiers, such as Max, are mentioned but prices are not in the text.
What does it save?
The readme reports 72.7 percent fewer input tokens to review a pull request, median over 60 merged PRs, measured at version 3.23.2.
Does it keep quality?
In the same test, understanding the change scored 67 percent against 65 percent for naive file loading.
How many languages does it cover?
81 languages and 91 framework integrations.
Does it change my client?
It changes configuration you could change yourself and does not patch your client's binary. One optional exception is the Max tier tweakcc pairing.
Does it work with notes?
Yes. It can index Obsidian, Logseq and plain markdown vaults.
If it does not work
- βΊRun trace init to wire it into your agent, then trace add inside the repo you want indexed.
- βΊRestart your agent after trace init so the tools appear.
- βΊCheck that Node.js and npm are installed before the global install.
5 new skills a week. 1 minute to read.