Skip to content
AddHunt
MCP servers

trace-mcp

Code graph MCP server for AI coding agents

Open source

  • Open source
  • Licence: MIT

In short

trace-mcp is an open-source MCP server that indexes a codebase into a graph so AI coding agents can look up structure instead of re-reading files. It is meant for developers using Claude Code, Cursor, Windsurf, Claude Desktop or VS Code on larger projects.

What you get

  • Indexes a codebase into a queryable code graph
  • Framework links between routes, controllers, models and views
  • Decision memory and state tools for agents
  • trace init sets up hooks and MCP entries per client
  • Presets limit which tools a client sees
  • Works with Claude Code, Cursor, Windsurf, Claude Desktop and VS Code

The details

trace-mcp targets a common cost in long AI coding sessions: agents reading the same files and tracing the same dependencies again and again. It indexes the project once and serves a structured map of symbols and their relationships that the agent can query, including framework links between routes, controllers, models and views.

Two parts

The product is split by how each piece is installed:

  • Tool surface: an MCP server that exposes the code graph, decision memory, state tools and a startup audit. A preset controls how much of it a client sees, and tools are read-only or audited.
  • trace init: a setup command that adds hooks to the agent harness, a routing block in the instruction file and an MCP entry for each detected client.

The project says it only changes configuration a user could edit by hand and does not patch client binaries or intercept traffic. The one exception, which can be declined, is a pairing in the Max tier that runs a third-party patcher.

Measurement

The site publishes its benchmark method, pinned commits and run scripts, including cases where the tool barely helped, and names the tools that cost more than they replace.

Install

It installs from npm, works locally, uses tree-sitter and LSP for parsing, and is released under the MIT license.

Alternatives to trace-mcp

All alternatives

Questions

Which clients work with trace-mcp?

MCP clients in general; the site names Claude Code, Cursor, Windsurf, Claude Desktop and VS Code.

How is it installed?

With npm install -g trace-mcp. The trace init command then sets up hooks, a routing block and an MCP entry for each detected client.

Does it modify my coding client?

It changes configuration only and does not patch binaries or intercept traffic. The single exception is an optional third-party patcher pairing in the Max tier, which can be declined.

More like this