Code Graph MCP — Development skill for Claude Code
AST knowledge graph MCP server for Claude Code — semantic search, call graph traversal, HTTP route tracing, impact analysis.
How to install Code Graph MCP
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open sdsrss/code-graph-mcp and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Code Graph MCP does
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.
Alternatives in Development
- Root Cause Tracing — Use when errors occur deep in execution and you need to trace back to find the original trigger 102.5k ★
- Supported Languages — 22.1k ★
- Agent Skill — A Claude Code plugin marketplace containing the ast-grep skill for powerful structural code search using Abstr 851 ★
README
code-graph-mcp
A high-performance code knowledge graph server implementing the [Model Context Protocol (MCP)](https://modelcontextprotocol.io/). Indexes codebases into a structured AST knowledge graph with semantic search, call graph traversal, and HTTP route tracing — designed to give AI coding assistants deep, structured understanding of your code.
Features
- Multi-language parsing — Tree-sitter AST extraction across tiers of depth:
- Full (calls + imports + inheritance): TypeScript/TSX, JavaScript, Go, Python, Rust, Java. HTTP route extraction additionally covers TypeScript/TSX + JavaScript (Express/Connect), Go (
net/http), Python (Flask/FastAPI), and Rust axum (.route()chains with inline.nest()prefixes; named handlers only) — actix/rocket and Java Spring are not yet route-extracted - Smoke-tested (calls + imports + inheritance): C#, Kotlin, Ruby, PHP, Swift, Dart
- Limited (functions + calls +
#includeimports + gtest test markers + C++ base-class inheritance +Class::methodscope qualification): C, C++ - Scripting: Bash (functions + commands +
source/.imports), Markdown (headings) - File-FTS only (no AST symbol extraction): HTML, CSS, JSON
- Test markers — detected from the AST for Rust (
#[test]/#[cfg(test)]), JavaScript/TypeScript/TSX (describe/it/testblocks and their callbacks) and C/C++ (gtestTESTmacros). Go, Python, Java and the rest fall back to path/name heuristics (tests/,src/test/java/,*_test.*,*.test.js,test_*,*Test) - Value/type references — a
referencesrelation for symbols that are used without being called, imported or inherited (path-qualified constants, type-position uses, functions passed as values): Rust, TypeScript/TSX, JavaScript, Python, Go, Java, C, C++
- Full (calls + imports + inheritance): TypeScript/TSX, JavaScript, Go, Python, Rust, Java. HTTP route extraction additionally covers TypeScript/TSX + JavaScript (Express/Connect), Go (
- Semantic code search — Hybrid BM25 full-text + vector semantic search with Reciprocal Rank Fusion (RRF), powered by sqlite-vec
- Call graph traversal — Recursive CTE queries
Related Skills
Codeindex
Structural code-intelligence engine in Zig — tree-sitter across 40+ languages, trigram and inverted indexes, d
Codebase Graph
Code intelligence MCP server — 42-language tree-sitter AST parsing, FalkorDB knowledge graphs, 0.944 MRR searc
Contributing To MCP Tree-sitter Server
Thank you for your interest in contributing to MCP Tree-sitter Server! This guide will help you understand our
Benzi
Benzi is compiler-backed code intelligence (Agent+MCP). Claude Code greps; Cursor embeds; Aider maps signature
Laya Codex
Ranked code retrieval for Claude Code: tree-sitter + BM25 + the Laya re-ranker, delivered through hooks and MC
Pickcheck
PickCheck: a complexity gate for coding agents. One tree-sitter binary that measures the functions an agent ch
Related Agents
Deep Explore
Deep codebase exploration using grepai semantic search and call graph tracing. Use this agent for understandin
Cozo Perf Architect
Use this agent when work touches CozoDB schema design, graph data modeling, indexes, query patterns, ingestion
Neural Explorer
Codebase exploration via neural memory knowledge graph — semantic search and graph traversal. Prefer over gene