Code Graph MCP
未认领AST knowledge graph MCP server for Claude Code — semantic search, call graph traversal, HTTP route tracing, impact analysis. Auto-indexes 10 languages via Tree-sitter.
安装
claude mcp add code-graph-mcp -- npx -y @sdsrs/code-graph工具(7 个)
ast_search
Search AST nodes by text and/or structural filters (type, return type, params)
find_references
Find all references to a symbol (callers, importers, inheritors, implementors, value/type references). Supports compact mode
get_ast_node
One symbol with signature, body and relations. includeimpact adds the blast radius, includesimilar embedding-similar nodes, includereferences callers/callees. Supports compact mode
get_call_graph
Trace upstream/downstream call chains for a function. Pass routepath='GET /api/x' to trace an HTTP route → handler → downstream instead
module_overview
Symbols in a directory or file, grouped by type and caller count. includedead lists unreferenced symbols under the path; includedeps adds the file dependency graph (single-file paths only)
project_map
Full project architecture: modules, dependencies, entry points, hot functions. includecentrality adds architectural chokepoints
semantic_code_search
Hybrid BM25 + vector search (RRF) for AST nodes. Supports compact mode