Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”“ No API keyProgramming

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 change
  • plan_turn: opening move for a new task
  • query_decisions: find recorded decisions linked to code
  • search_sessions: search past sessions
  • get_request_flow: trace route to controller to view
  • get_untested_symbols: find untested code
  • get_subproject_impact: cross-service impact
  • find_usages and apply_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

Node.js and npm. Install with npm install -g trace-mcp, then run trace init once and trace add in each repo.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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.