Skip to content
← All MCP servers

Is the CodeGraph MCP server safe? What it can reach

What the CodeGraph MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Community serverChecked

CodeGraph is an open-source code indexer by Colby McHenry (MIT, about 78,700 GitHub stars) that serves a local MCP server over stdio. It needs no API key or account and builds a SQLite index inside each project. Its tools only read that index, but its installer edits agent config and instruction files, and anonymous telemetry is on by default.

Who maintains it

ImplementationKindStatus
colbymchenry/codegraph (community)Communityactive

It runs as a local process on your machine.

How it signs in

No API key, account or external service. It runs as a local process and reads your project files and its own index.

What its tools can do

KindTools
Readcodegraph_explore, codegraph_node, codegraph_search, codegraph_callers, codegraph_callees, codegraph_impact, codegraph_files, codegraph_status
Writenone documented
Can’t be undonenone documented

Only codegraph_explore is on by default. The other seven are available when you list them in CODEGRAPH_MCP_TOOLS. The tools query the index and do not write source files, but codegraph install writes MCP config and marked sections into files such as CLAUDE.md and AGENTS.md.

Built-in limits

OptionWhat it does
CODEGRAPH_MCP_TOOLSChooses which tools beyond codegraph_explore the server exposes.
codegraph.jsonPer-project exclude, include, deprioritize, extensions and webRoot settings, plus .gitignore support, to keep files out of the index.
CODEGRAPH_TELEMETRY=0, DO_NOT_TRACK=1 or --no-telemetryTurns off anonymous usage telemetry, which is on by default and which the README says never includes code, paths or names.
CODEGRAPH_NO_DAEMON=1Disables the shared background server.
codegraph uninstall, codegraph uninitRemoves the agent setup, or one project’s index.

The risks

  • The index holds symbol names, call graphs and file paths for your whole codebase, and tool results put that structure into your LLM provider’s context.
  • The installer can add auto-allow permissions for Claude Code and Qwen Code and edit CLAUDE.md and AGENTS.md, which changes how your agents behave on later runs.
  • Code comments and strings that the index surfaces could carry injected instructions, and the agent reads them as results.
  • Anonymous telemetry leaves your machine unless you opt out.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add codegraph -- codegraph serve --mcp

Claude Code names MCP tools mcp__codegraph__<tool>. Once you know the tool names, deny the ones you won’t use and set the rest to ask in .claude/settings.json.

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.codegraph]
command = "codegraph"
args = ["serve", "--mcp"]

Checklist

  • Opt out of telemetry with CODEGRAPH_TELEMETRY=0.
  • Add secrets and generated folders to the exclude list in codegraph.json.
  • Review the changes codegraph install made to agent config and instruction files.
  • Skip auto-allow permissions if you want a prompt on each call.

Checked against the vendor documentation on November 25, 2026. CodeGraph README · CodeGraph repository metadata (GitHub API)

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing