Codebase Synapse logo

Codebase Synapse

Indexes a repository into a local SQLite knowledge graph and exposes search, graph, architecture, Git, memory, and context tools over MCP.

Install Codebase Synapse

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "codebase-synapse": {
      "command": "npx",
      "args": [
        "-y",
        "codebase-synapse"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y codebase-synapse

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The codebase-synapse MCP server indexes a repository into a local SQLite knowledge graph and exposes 52 tools for code search, dependency analysis, architecture inspection, Git history, memory, and context preparation. Indexing runs separately with the CLI, while the stdio MCP process reads the pre-built database and re-indexes only changed files when indexing is repeated. Reach for it when an AI coding agent needs repository-wide structural context, call-graph navigation, impact analysis, or project history without sending code to a cloud service.

Use cases

  • Search a large repository by meaning, text, or symbol name
  • Trace callers, callees, imports, and dependent files
  • Assess a file’s blast radius before editing it
  • Review architectural hotspots and Git change history
  • Prepare focused context for an AI-assisted code change

Key features

  • Local SQLite knowledge graph
  • Semantic, lexical, hybrid, and similarity search
  • Call-graph and dependency traversal
  • Architecture and blast-radius analysis
  • Git archaeology and change-coupling analysis
  • Persistent memory and budgeted context tools

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 79d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 1d ago via OSV.dev · codebase-synapse (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
npm downloads222Package downloads in the last 30 days.
Last commit3mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Codebase Synapse works

What the codebase-synapse MCP server does

The codebase-synapse MCP server turns a local repository into a queryable knowledge graph for AI coding agents. It extracts symbols and relationships from supported source files, stores the resulting data in SQLite, and exposes the index through MCP tools. The repository remains local, and embeddings are generated locally with all-MiniLM-L6-v2 through Candle when semantic search is used.

Its toolset covers several kinds of repository investigation:

  • Search source text, symbols, semantic matches, hybrid matches, and similar code.
  • Traverse callers, callees, imports, dependents, and paths between symbols.
  • Estimate blast radius, identify dead code, rank important graph nodes, and run Cypher-like graph queries.
  • Inspect architecture, file structure, routes, clusters, and possible module boundaries.
  • Analyze Git history, change hotspots, file coupling, and recent semantic changes.
  • Store persistent notes, recall session information, prepare bounded context, and manage architecture decision records.

A separate codebase-guard hook for Claude Code can use graph data to block writes to high-impact files until an impact analysis is performed.

How it works

Run the index command against a repository before starting the MCP process:

bash
codebase-synapse index /path/to/your/repo

The index is written to ~/.codebase-synapse/codebase.db. Subsequent indexing runs process changed files rather than rebuilding every file. Parsing uses Tree-sitter and supports Rust, Python, TypeScript, JavaScript, Go, Java, C#, PHP, C, and C++.

Start the MCP server with npx codebase-synapse. It communicates over stdio using JSON-RPC and reads the existing SQLite index; the MCP process does not perform indexing itself. SQLite uses WAL mode, and no external database or Docker service is required. The package distributes prebuilt native binaries for Windows, macOS, and Linux on x64 and arm64.

Setup and configuration

Install or run the package through npm, then create an index and launch the server:

bash
codebase-synapse index /path/to/your/repo
npx codebase-synapse

For Claude Desktop or Claude Code, configure an MCP entry whose command is npx and whose arguments are -y and codebase-synapse. Cursor uses the same command and arguments in its MCP configuration. Other clients can connect if they support stdio transport.

No environment variables, cloud account, Docker container, or separate database setup are described as required. The local database path is the default location shown above.

Tools and capabilities

The codebase-synapse MCP server provides search tools including semantic_search, search_code, search_symbol, hybrid_search, find_similar, and find_symbol_everywhere. Graph navigation includes get_callers, get_callees, get_imports, get_dependents, impact_analysis, find_path, find_dead_code, get_pagerank, and query_graph.

Architecture tools expose project summaries, directory structure, routes, clusters, and boundary checks. Git tools examine file history, hotspots, change coupling, and recent meaningful changes. Memory and context tools support persistent notes, session recall, edit-focused context, working sets, and ADR management.

Limitations and notes

The MCP server only serves a pre-built index, so a repository must be indexed before its content can be queried. The first indexing run is slower; later runs update changed files. Results depend on the supported languages and on the relationships extracted by Tree-sitter. Semantic embeddings are local and lazy-loaded, and the server uses stdio rather than an HTTP transport.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Codebase Synapse

codebase-synapse is an MCP server that connects AI coding agents to a local SQLite knowledge graph built from a repository. Its main tools provide semantic and full-text search, symbol and call-graph navigation, dependency and blast-radius analysis, architecture inspection, Git history analysis, memory, and context preparation over stdio.

Install or run it through npm with npx, then index the repository separately using `codebase-synapse index /path/to/your/repo`. Start the MCP process with `npx codebase-synapse`; it reads the generated database.

Yes, codebase-synapse works with Cursor through its stdio MCP configuration. Add an entry using `npx` with `-y codebase-synapse` as the arguments, after creating the repository index.

Yes, codebase-synapse works with Claude Code over stdio. Configure the server with the `npx` command and `-y codebase-synapse` arguments; the optional codebase-guard hook is also described for Claude Code.

codebase-synapse supports Rust, Python, TypeScript, JavaScript, Go, Java, C#, PHP, C, and C++. Tree-sitter parses these languages during repository indexing.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCodebase Synapse AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/codebase-synapse?style=directory)](https://allmcps.com/mcp/codebase-synapse)
HTML Embed
<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>