Codegraph
Codegraph is an MCP server that adds developer tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Semantic code graph: 42 tools, 38 languages. It has 132 GitHub stars, is released under the Apache-2.0 license and runs locally with npx -y @astudioplus/codegraph-mcp.
github.com/codegraph-ai/CodeGraph (opens in a new tab)
Data as of from the GitHub API and the official MCP registry; description from the project's repository. Report an error
Install Codegraph
Generated from the server's MCP registry entry. Replace your-value with your own values.
Claude Desktop
{
"mcpServers": {
"codegraph": {
"command": "npx",
"args": [
"-y",
"@astudioplus/codegraph-mcp"
]
}
}
}Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.
Claude Code
claude mcp add --transport stdio codegraph -- npx -y @astudioplus/codegraph-mcpCursor
{
"mcpServers": {
"codegraph": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@astudioplus/codegraph-mcp"
]
}
}
}Project file; use ~/.cursor/mcp.json to enable it in every project.
VS Code
{
"servers": {
"codegraph": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@astudioplus/codegraph-mcp"
]
}
}
}Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).
Tools (40)
Parsed from the Tools section of the README; check the repository for the current list.
get_ai_contextPrimary context tool. Intent-aware (explain/modify/debug/test) with token budgeting.
get_edit_contextEverything needed before editing: source + callers + tests + memories + git history
get_curated_contextCross-codebase context for a natural language query ("how does auth work?")
analyze_impactBlast radius prediction — what breaks if you modify, delete, or rename
analyze_complexityCyclomatic complexity with breakdown (branches, loops, nesting, exceptions, early returns)
find_circular_depsDetect circular import/dependency chains across files
find_hot_pathsMost-called functions ranked by transitive caller count
find_dead_importsFind unused imports — modules imported but never referenced
get_module_summaryHigh-level summary of a directory: file count, functions, language breakdown, top complex functions
search_by_patternRegex search across function bodies, signatures, names, and docstrings
search_by_errorFind functions that throw, catch, or handle specific error types
symbol_searchFind symbols by name or natural language (hybrid BM25 + semantic search)
get_detailed_symbolFull symbol info: source, callers, callees, complexity
get_symbol_infoQuick metadata: signature, visibility, kind
get_dependency_graphFile/module import relationships with depth control
get_call_graphFunction call chains (callers and callees)
find_by_importsFind files importing a module
find_by_signatureSearch by param count, return type, modifiers
find_entry_pointsMain functions, HTTP handlers, CLI commands, event handlers
find_implementorsFind all functions registered as ops struct callbacks
find_related_testsTests that exercise a given function
traverse_graphCustom graph traversal with edge/node type filters
reindex_workspaceFull or incremental workspace reindex
index_filesAdd/update specific files without full reindex
index_directoryAdd directory to graph alongside existing data
memory_contextGet memories relevant to a file/function
pr_contextOne-call PR review. Runs git diff against base branch, finds changed functions in the graph, reports: blast radius…
index_markdownIndex a local .md file (ARCHITECTURE.md, API_DESIGN.md, etc.) into the persistent docs store.
search_docsSemantic search over indexed docs — returns matching sections with heading-path breadcrumbs
list_doc_sourcesList all indexed source files
remove_doc_sourceRemove all indexed chunks from a source file
verify_designCross-reference doc claims vs code graph. direction=forward (doc→code), reverse (code→doc), or both
design_gapsFind identifiers described in docs that don't exist in code yet — build TODO lists from specs
generate_architecture_docAuto-generate a structured ARCHITECTURE.md from the live code graph (modules, hot paths, complexity, circular deps)
scan_securitySecurity vulnerability scan: 40+ dangerous function patterns, source-to-sink taint tracing, auth coverage for HTTP…
analyze_couplingModule coupling metrics and instability scores
find_unused_codeDead code detection with confidence scoring
find_duplicatesDetect duplicate/near-duplicate functions
cross_project_searchSearch across all indexed projects
security_control_flowMap every execution path through a function — "can this return without hitting the auth check?"
About Codegraph
Cross-language code intelligence for AI agents and developers. CodeGraph builds a semantic graph of your codebase — functions, classes, imports, call chains — and exposes it through 42 MCP tools, a VS Code extension, a JetBrains IDE plugin, and a persistent memory layer. Parses 38 languages via tree-sitter. AI agents get structured code understanding instead of grepping through files.
- ai-coding
- claude
- code-analysis
- code-indexing
- coding-assistant
- copilot
- graph-database
- semantic-search
Similar MCP servers
More developer tools MCP servers
jevmem
Avinash-jetwani/jevmem
Automatic project memory for Claude Code and Cursor; Codex and Claude Desktop over MCP.
Too new to judge · created Sep 22, 2026
Developer toolsTypeScripthumanizer-ru
Vladimir-Human/humanizer-ru
Гигиена вставки из чата для русского текста: детерминированно, офлайн, флаги с причиной и советом.
Active · last commit Oct 25, 2026
Developer toolsPythonDocmancer
docmancer/docmancer
Local-only MCP server for source-attributed Markdown memory and documentation retrieval.
Active · last commit Aug 13, 2026
OfficialDeveloper toolsPythonCometChat Docs
cometchat/docs-mcp
CometChat docs search + implementation bundles: add chat, voice, video & moderation to your app.
Active · last commit Oct 20, 2026
OfficialDeveloper toolsTypeScriptX64dbg
bromoket/x64dbg_mcp
MCP server for x64dbg debugger - 23 mega-tools for AI-powered reverse engineering and debugging.
Maintained · last commit Jun 8, 2026
Developer toolsC++Monkeymcp
jamesmontemagno/MonkeyMCP
MCP server providing monkey data, journeys, and location services for various monkey species.
Maintained · last commit Sep 29, 2026
Developer toolsJupyter Notebook
How do I install the Codegraph MCP server?
Add the command npx -y @astudioplus/codegraph-mcp to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.
Is Codegraph free?
The server is open source under the Apache-2.0 license, so running it is free. It does not declare any required API key.
Is Codegraph actively maintained?
The most recent commit was on Oct 6, 2026. The latest release is v0.21.0, published Oct 6, 2026. appsgit only lists MCP servers with a commit in the last six months.