PlugWiki
trace-mcp logo

trace-mcp Code Graph MCP Server by Vysotskyi: Setup for Claude, Cursor and Other Apps

CommunityLocal

Lets Claude Code, Cursor and Codex search and trace your codebase from a local index instead of re-reading files, and refactor it across files.

trace-mcp is a community server that builds a dependency graph of your code on your computer and answers questions about it over MCP. Beyond search and impact checks, it can rename, move and remove code, and its setup command also changes your client config, your CLAUDE.md and, in Claude Code, adds a hook. The project is not made by an AI vendor. It sends one anonymous usage ping a day, and you can turn that off.

Good for

  • Developers who use an AI coding agent on a large or multi-language repo
  • Teams who review pull requests with an assistant and want blast-radius answers
  • People who want an agent to remember past decisions tied to code

Works in

12 should work

Tap an app to see how to set it up and any known problems.

Install trace MCP

Claude Code

  1. 1

    Copy this prompt.

    Add the trace MCP server to Claude Code. Run this command:
    
    claude plugin install @nikolai-vysotskyi/trace-mcp
    
    Then check that it loaded and tell me if I need to sign in or restart.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires Node.js 22+.

Read-only mode: No read-only switch. Do not run the init command or the apply tools if you want read access only.

Needs Node.js 22 or newer. The npx command runs the server. The global install and the init command make the extra changes listed in the permissions section.

From the project README. Source.

Tools

  • Gives a map of your project

    Returns the frameworks and languages found, file counts, directory layout and entry points, as a first look at an unfamiliar repo.

    Try: “Show me the project map.”

    Read · get_project_map

  • Finds symbols by name or text

    Searches the index for functions, classes and other symbols by name, kind or text, ranked by importance in the dependency graph.

    Try: “Search for the function that creates sessions.”

    Read · search

  • Searches all indexed files for text

    Full-text search across the files in the index.

    Try: “Search for every mention of "retry_limit".”

    Read · search_text

  • Shows one symbol with its source

    Looks up a function or class by ID or full name and returns its source code.

    Try: “Show me the source of UserService.create.”

    Read · get_symbol

  • Lists a file's symbols without bodies

    Returns the signatures of everything in a file, which is cheaper than reading the whole file.

    Try: “Give me the outline of src/auth/session.ts.”

    Read · get_outline

  • Finds every use of a symbol

    Returns the imports, calls and renders that refer to a symbol or file across the project.

    Try: “Where is parseConfig used?”

    Read · find_usages

  • Shows who calls a function and what it calls

    Builds a two-way call graph around one symbol.

    Try: “Show the call graph for processOrder.”

    Read · get_call_graph

  • Shows what breaks if you change something

    Reports what depends on a file or symbol, with a risk score, breaking-change checks and related past decisions.

    Try: “What breaks if I change app/Models/User.php?”

    Read · get_change_impact

  • Gathers code to start a task

    Returns the execution paths, tests and entry points that matter for a task described in words.

    Try: “Get the context to fix the login bug.”

    Read · get_task_context

  • Picks the best first step for a task

    Routes a new task to the code and past decisions most relevant to it.

    Try: “Plan my first moves for adding rate limiting.”

    Read · plan_turn

  • Finds code for a topic

    Searches by keyword or topic and returns ranked snippets that fit a token budget.

    Try: “Find the code about invoice generation.”

    Read · get_feature_context

  • Packs a symbol with its dependencies

    Returns a symbol source, the imports it needs and optional callers, sized to a token budget.

    Try: “Bundle PaymentService with its callers.”

    Read · get_context_bundle

Read from the source code

Permissions

high risk · 9 things to watch

High risk

It can rewrite and remove code across your project, and its setup changes your client config, your CLAUDE.md and a Claude Code hook. Keep your work committed, use the preview tool first, and read what the init command will change before you run it.

What it can do

  • Read your data
  • Create and change things
  • Delete things
  • Read-only mode

Watch out for

  • It edits and deletes code in your project

    The apply tools rename, move and rewrite code across many files, and one removes unused symbols from their files. Another tool can disable unused MCP servers, move skills aside or delete duplicated instruction lines. Review the plan tool output and commit before you let it run. github.com

  • Setup rewires your agent and your CLAUDE.md

    The init command edits your MCP client config, adds routing rules to ~/.claude/CLAUDE.md and installs a hook that blocks Read, Grep and Glob on source files in Claude Code. The Max tier, which is the default pick, also runs a third-party patcher on Claude Code. github.com

  • Installing it globally runs install scripts

    The npm package runs three install scripts (a macOS native-module check, a desktop-app updater and a control-plane setup). On macOS they register a background launchd service on port 3741 and write files under ~/.trace. If an older desktop app is installed, the updater can replace it with a download from the project releases. The service setup skips temporary npx installs. TRACE_MCP_NO_POSTINSTALL=1 skips the service setup, TRACE_MCP_NO_AUTO_UPDATE=1 skips the app update and TRACE_MCP_NO_PREFLIGHT=1 skips the native check. github.com

  • It sends one anonymous usage ping a day

    A Google Analytics ping carries a random install id, version, Node and OS, country from timezone, client and model name, counts of repos, tool calls and daemon starts, and machine class (CPU architecture, cores, RAM). It sends no code, paths or IP address. TRACE_MCP_TELEMETRY=off turns it off, and it is skipped when CI is set. github.com

  • It tells your assistant to use it over its own tools

    The server instructions and tool descriptions steer agents to prefer trace tools over Read, Grep and Glob, and init adds the same rule to CLAUDE.md. The Max tier also ships behavior rules to every connected agent through the MCP instructions. Check that you want that behavior. github.com

  • It can read your past Claude Code conversations

    The session tools scan ~/.claude/projects and index conversation text into the local store so it can be searched. Skip those tools if your chats hold private material. github.com

  • It runs your type checker

    The diagnostics tool runs tsc, mypy or pyright inside your project. That runs whatever your project config points at. github.com

  • The local daemon has no sign-in

    The optional HTTP daemon listens on 127.0.0.1:3741 with no authentication. A non-loopback host is refused unless you pass the allow-remote flag. github.com

  • Secret files are left out of the index

    .env files, keys, certificates and similar files are not indexed. For .env only key names and value types are stored. github.com

Security advisories

No published security advisories as of Nov 1, 2026.

Technical details
Turning on read-onlyNo read-only switch is documented. Tools that edit code are separate apply tools, and a plan tool previews a refactor without applying it.
Talks toGoogle Analytics (one anonymous ping a day, opt-out available). GitHub releases (install script, only to update an older installed desktop app)
Sign-in and keysIt needs no account or API key. The index and settings live in ~/.trace on your computer.
Data retentionThe index, decision store and indexed session text stay in ~/.trace. Deleting that folder removes them.

Questions

Is trace-mcp official?

No. It is a community project by Nikolai Vysotskyi, not made by Anthropic, Cursor or any other AI vendor.

Does it send my code anywhere?

No. The index stays on your machine and search uses bundled local embeddings. The only thing that leaves on its own is one anonymous usage ping a day (no code, paths or IP address), and TRACE_MCP_TELEMETRY=off stops it.

Does it need an API key?

No. Nothing is required. Optional summaries can use Ollama on your machine or OpenAI if you switch that on in the config.

Can it change my code?

Yes. The apply tools rename, move and rewrite code, and one removes unused symbols. A plan tool previews a refactor first, so use that and keep your work committed.

What does the init command change?

It sets up your MCP client, adds routing rules to ~/.claude/CLAUDE.md and installs a guard hook for Claude Code. The Max tier also runs a third-party patcher on Claude Code. You can pick a lower tier.

Do I need the desktop app?

No. The app is optional. The npm package alone gives you the server and the command line.

How many tools does it have?

195 are registered: the tool index lists 163 that are always on, 19 opt-in and 13 that appear only when a framework is detected. The README's diagram says 182. This page lists 77 of them.

What is the difference between trace and trace-mcp?

They are the same project. The command is now called trace, and trace-mcp keeps working as an alias. On macOS use trace-mcp in scripts, because /usr/bin/trace is an Apple tool.

Is it free?

Yes. It is MIT licensed, and the license file ships in the npm package.

How do I add it to Claude Code?

Use the install box above. Claude Code and Codex also have a plugin that registers the server and the hook in one step.

Information

updated Nov 2, 2026

Publisher
Community
Package
trace-mcp
Registry
npm
Transport
stdio
Auth
None
Version
3.42.6
License
MIT
Last commit
Oct 31, 2026
Listed in
Official MCP registry

WebsiteGitHubnpmOfficial MCP RegistryChangelogIssues

Sources

Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.

Show all 8
  1. github.com · github.com
  2. github.com · github.com
  3. github.com · github.com
  4. github.com · github.com
  5. github.com · github.com
  6. github.com · github.com
  7. github.com · github.com
  8. github.com · github.com

Facts from the official MCP registry, GitHub, npm, PyPI and the Docker catalog. Updated Nov 2, 2026.