# codebase-synapse [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/iwiels/codebase-synapse  
**GitHub Stars:** 2  
**npm Downloads (last month):** 222  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/codebase-synapse

## Description
Indexes codebase into a local knowledge graph with 40+ AI tools and codebase-guard.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "codebase-synapse": {
    "command": "npx",
    "args": ["-y","codebase-synapse"]
  }
}
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/codebase-synapse/readme_

