Indexes codebase into a local knowledge graph with 40+ AI tools and codebase-guard.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Give your AI agent a deep understanding of your entire codebase.
An MCP server that indexes your codebase into a local knowledge graph with 52 AI tools β semantic search, call-graph traversal, git archaeology, blast-radius analysis, and more.
Works with Claude Code Β· Cursor Β· Windsurf Β· Zed Β· Any MCP client
AI coding agents (Claude, Cursor, etc.) are powerful β but they work with limited context. They can only see the files you open or feed them. Ask about call chains, architectural patterns, or blast-radius impact, and they guess.
Codebase Synapse fixes this. It indexes your entire repo into a local knowledge graph stored in SQLite, giving your AI agent real answers backed by structural analysis β not hallucinations.
Indexing runs as a separate CLI command and writes into ~/.codebase-synapse/codebase.db. The first index is the slow one; re-running it only re-indexes changed files. The MCP server never indexes β it only reads the pre-built index.
That's it. No Docker. No database setup. No cloud. The server starts via stdio and serves the pre-built index to your MCP client.
Add to your claude_desktop_config.json or mcp_servers.json:
Add to your .cursor/mcp.json:
Any MCP client that supports stdio transport works. Just point it at:
| Tool | Description |
|---|---|
semantic_search | Vector similarity search using local embeddings (all-MiniLM-L6-v2) |
search_code | Full-text search across code (FTS5 + BM25 ranking) |
search_symbol | Find functions, classes, types by name or pattern |
hybrid_search | Combined semantic + lexical search with RRF fusion |
find_similar | Find structurally similar code using MinHash + LSH |
find_symbol_everywhere | Locate a symbol across all indexed projects |
| Tool | Description |
|---|---|
get_callers / get_callees | Navigate the call graph in either direction |
get_imports / get_dependents | Trace dependency chains |
impact_analysis | Compute blast radius before editing a file |
find_path | Find the shortest connection between two symbols |
find_dead_code | Detect unreachable functions and unused exports |
get_pagerank | Identify the most critical nodes in your architecture |
query_graph | Run Cypher-like queries against the knowledge graph |
| Tool | Description |
|---|---|
get_architecture | Full project architecture overview (languages, entry points, hotspots) |
get_file_structure | Directory tree with symbol annotations |
project_overview | High-level summary with key metrics |
get_route_map | Extract HTTP routes and their handler mappings |
suggest_boundaries | Detect module boundaries via Leiden clustering |
check_boundaries | Validate cross-module dependencies against defined boundaries |
get_clusters | Community detection across the codebase |
| Tool | Description |
|---|---|
git_archaeology | Deep history analysis of a file (authors, churn, evolution) |
get_hotspots | Files with highest complexity Γ change frequency |
detect_change_coupling | Files that always change together |
get_recent_semantic_changes | Semantically meaningful recent changes |
index_git_history | Build temporal analysis from git log |
| Tool | Description |
|---|---|
memory_store / memory_search / memory_list | Persistent notes, facts, and decisions across sessions |
session_remember / session_recall | Short-term memory within a session |
get_context | Budgeted context preparation for AI agents |
get_edit_context | Focused context for a specific file edit |
get_working_set | Recently accessed and modified files |
manage_adr | Architecture Decision Records management |
Included as a bonus: codebase-guard is a PreToolUse hook for Claude Code that blocks writes to high-impact files until the agent runs impact_analysis first.
It uses PageRank scores and blast-radius data from the knowledge graph to identify architectural hubs. No more accidental edits to core files.
| Language | Rust (compiled native binary) |
| Transport | MCP stdio (JSON-RPC) |
| Storage | SQLite (WAL mode, zero config) |
| Embeddings | all-MiniLM-L6-v2 via Candle (offline, local, lazy-loaded) |
| Parsing | Tree-sitter (10 languages) |
| Distribution | npm with prebuilt binaries (Windows, macOS, Linux Γ x64, arm64) |
Rust Β· Python Β· TypeScript Β· JavaScript Β· Go Β· Java Β· C# Β· PHP Β· C Β· C++
Contributions are welcome! The project uses standard Rust tooling:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/codebase-synapse)<a href="https://allmcps.com/mcp/codebase-synapse"><img src="https://allmcps.com/api/badge/codebase-synapse?style=directory" alt="Codebase Synapse on AllMCPs" /></a>