Deeprepo logo

Deeprepo

Local codebase RAG server with graph analysis, semantic retrieval, wiki generation, and seven MCP tools.

Install Deeprepo

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

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "deeprepo": {
      "command": "uvx",
      "args": [
        "deeprepo"
      ]
    }
  }
}

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.

uvx deeprepo

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 deeprepo MCP server lets AI assistants inspect and query locally indexed codebases through seven focused tools. It combines a SQLite code knowledge graph, embeddings, full-text search, and generated Markdown wiki pages, then routes questions to an appropriate retrieval strategy. Install the optional MCP dependency after installing DeepRepo, ingest a repository, and connect the server to an MCP-compatible client. Reach for it when an agent needs symbol lookup, file explanations, project structure, or change-impact analysis without repeatedly reading raw files.

Use cases

  • Ingest a local repository for assistant access
  • Find definitions of classes and functions
  • Explain unfamiliar source files
  • Assess the impact of proposed code changes
  • Ask repository-wide implementation questions

Key features

  • Seven MCP tools for codebase analysis
  • SQLite code knowledge graph
  • Embedding and full-text retrieval
  • Generated hierarchical Markdown wiki
  • Incremental codebase ingestion
  • Multiple LLM and embedding providers

Tools7

What Deeprepo lets your agent do. Expand a tool for its parameters.

Self-reported~44 tokens of context

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.

17/21 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · deeprepo (PyPI)

Adoption & maintenance

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

Last commit6mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed7Callable tools this server registers over MCP.

How Deeprepo works

What deeprepo MCP server does

The deeprepo MCP server exposes a local codebase knowledge base to MCP-compatible AI assistants. It is designed for repositories that have already been indexed with DeepRepo’s ingestion process. The server provides seven tools:

  • ingest_codebase to ingest a codebase.
  • find_symbol to locate symbols.
  • get_file_structure to inspect a file’s structure.
  • explain_file to request an explanation of a file.
  • find_change_impact to investigate likely effects of a change.
  • ask_codebase to ask broader questions about the repository.
  • get_project_overview to retrieve a project-level overview.

The underlying library parses code into a SQLite-backed graph containing files, classes, functions, imports, and call relationships. It also maintains embeddings, a full-text index, and hierarchical Markdown wiki pages. These data sources support navigation, explanations, retrieval, and impact analysis without requiring an external vector database.

How it works

DeepRepo scans a local repository and records its structure in a database under .deeprepo. By default, the generated data includes a SQLite database and a wiki directory. Incremental ingestion uses stored file hashes, so unchanged files can be skipped during later runs.

Queries can use three retrieval layers: embeddings, full-text search, and graph data. A query router classifies the question and selects a context strategy, including symbol lookup, blast-radius analysis, or wiki and code context. The Python query response includes an answer, source paths, detected intent, retrieval strategy, retrieval method, estimated token use, and conversation history.

The deeprepo MCP server can use Ollama, OpenAI, Anthropic, Gemini, or HuggingFace providers through the library’s provider configuration. Anthropic can provide the language model, but embeddings must come from another supported provider because Anthropic is not listed as an embeddings provider.

Setup and configuration

Install the core package from the repository, then install MCP support with the optional mcp extra. In the target repository, run the ingestion command before using the assistant-facing tools. The command-line interface also supports serving the generated wiki and querying the indexed codebase directly.

Ollama is the documented local option for both language generation and embeddings. Cloud provider choices require their corresponding setup and API keys. Configuration can select separate language-model and embedding providers, set ingestion chunk size and overlap, choose worker count, and specify a wiki directory. Branch isolation can create per-branch databases seeded from a base branch.

Connect the process to an MCP client such as Cursor or Claude Desktop using that client’s MCP configuration.

Tools and capabilities

The available tools cover repository ingestion, symbol navigation, file structure inspection, file explanation, change-impact analysis, general codebase questions, and project overviews. Token estimates in the listing range from about 50 tokens for symbol lookup to roughly 600–2,000 tokens for broader codebase questions.

The deeprepo MCP server is suited to local development workflows where an agent needs repository-aware answers, especially when questions involve where code is defined, how modules relate, or what may be affected by a change.

Limitations and notes

DeepRepo is local-first, but cloud providers remain available as configuration choices. Using Ollama requires the Ollama application and selected models to be installed separately. The generated knowledge is based on the indexed repository state; run ingestion again when the codebase changes.

The system stores its indexes, graph, embeddings, wiki data, and state in local SQLite-backed files. The material does not document hosted deployment, authentication, or remote repository synchronization for the MCP server. Anthropic cannot be used alone for embeddings according to the provider notes, so it must be paired with a supported embedding provider.

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 Deeprepo

deeprepo is an MCP server that connects AI assistants to locally indexed codebases through tools for ingestion, symbol lookup, file structure inspection, file explanation, change-impact analysis, codebase questions, and project overviews. It uses DeepRepo’s SQLite graph, retrieval indexes, and generated wiki data to provide repository-aware context.

Install DeepRepo with its optional MCP dependency, then ingest the target repository before connecting an MCP client. The documented commands use `pip install -e ".[mcp]"` from the repository or `pip install deeprepo[mcp]`, followed by `deeprepo ingest .`.

Yes, deeprepo is documented for Cursor. Install the MCP support package and configure the server in Cursor’s `~/.cursor/mcp.json` file.

DeepRepo supports Ollama, OpenAI, Anthropic, Gemini, and HuggingFace for language-model or embedding roles as applicable. Ollama is the documented local option; Anthropic can provide the LLM but must be paired with another provider for embeddings.

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 PreviewDeeprepo AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/deeprepo?style=directory)](https://allmcps.com/mcp/deeprepo)
HTML Embed
<a href="https://allmcps.com/mcp/deeprepo"><img src="https://allmcps.com/api/badge/deeprepo?style=directory" alt="Deeprepo on AllMCPs" /></a>