Claude Code codebase indexing for large codebases (2026)
Our pick
Start with claude-context if you want semantic code search added to Claude Code with one claude mcp add command. It stores your codebase in a vector database and brings only the related code into context. It needs Node.js, an embedding provider (OpenAI, VoyageAI, Gemini or a local Ollama) and a Milvus vector database, local or on Zilliz Cloud, and it is MIT licensed. The table shows each tool's last commit and latest release.
Best for
- Semantic search over a whole codebase, added with one command
zilliztech/claude-contextAn MCP plugin that adds semantic code search to Claude Code and other agents. It stores the codebase in a vector database and uses only the related code in context. It needs an embedding provider (OpenAI, VoyageAI, Gemini or a local Ollama) and a Milvus vector database, local or on Zilliz Cloud.
- A code graph that also covers docs and infrastructure
DeusData/codebase-memory-mcpAn MCP server that connects code, documentation, configuration and infrastructure in a persistent local knowledge graph. Source analysis and graph storage run on your machine.
- Code search with local embeddings and no API key
cocoindex-io/cocoindex-codeAST-based semantic search from a CLI, a skill or an MCP server. The cocoindex-code[full] package, installed with pipx, includes local embeddings that need no API key.
- Natural-language code search in two commands
MinishLab/sembleYour agent asks in plain words and gets back only the matching code snippets. uv tool install semble, then semble install, detects agents such as Claude Code and lets you choose an MCP server, instructions, a sub-agent or a skill.
- Call graphs and impact analysis for a symbol
bartolli/codannaA local MCP server and CLI that indexes your repository and serves symbol search, semantic search, call graphs, dependency tracking and impact analysis. It downloads an embedding model on first use.
- A small repo you can hand over in one file
yamadashy/repomixPacks your entire repository into a single file that you can give to Claude or another AI tool. It builds no index. It can also run as an MCP server with repomix --mcp.
The repos compared
Checked on Nov 23, 2026: the oldest day any repo in the table was last read from GitHub.
| Repo | Stars | Last commit | Latest release | Licence | Needs |
|---|---|---|---|---|---|
| zilliztech / claude-context A code search MCP server that gives Claude Code the whole codebase as context. | 12,749 GitHub (opens in new tab) | Active Nov 24, 2026 | - | MIT | Node.js 20.x, 22.x, or 24.x; pnpm (recommended package manager) |
| DeusData / codebase-memory-mcp Local code intelligence that connects code, docs and infrastructure. | 49,468 GitHub (opens in new tab) | Active Nov 29, 2026 | v0.12.1, Oct 16, 2026 | MIT | |
| cocoindex-io / cocoindex-code A lightweight embedded code search CLI based on syntax trees (AST). | 3,004 GitHub (opens in new tab) | Active Nov 25, 2026 | v0.2.43, Nov 5, 2026 | Apache-2.0 | |
| MinishLab / semble Code search for agents. | 6,512 GitHub (opens in new tab) | Active Nov 28, 2026 | v0.8.0, Nov 28, 2026 | MIT | |
| bartolli / codanna A local code intelligence MCP server and CLI for AI coding agents. | 765 GitHub (opens in new tab) | Active Nov 22, 2026 | v0.18.0, Nov 22, 2026 | Apache-2.0 | ~150MB for embedding model (downloaded on first use); macOS: Apple Silicon. The prebuilt… |
| Muvon / octocode Semantic code search and knowledge graphs for AI agents, with a built-in MCP server. | 531 GitHub (opens in new tab) | Active Nov 28, 2026 | 0.30.0, Nov 24, 2026 | Apache-2.0 | |
| tirth8205 / code-review-graph A local code graph for MCP and CLI that keeps a map of your codebase. | 33,010 GitHub (opens in new tab) | Active Nov 12, 2026 | v2.4.0, Nov 11, 2026 | MIT | |
| Graphify-Labs / graphify Turns a codebase and its docs, SQL schemas, configs and PDFs into a knowledge graph you can query. | 155,925 GitHub (opens in new tab) | Active Nov 30, 2026 | v0.9.124, Nov 30, 2026 | Apache-2.0 | |
| vitali87 / code-graph-rag Graph-based retrieval for monorepos: query and edit multi-language codebases. | 5,459 GitHub (opens in new tab) | Active Dec 2, 2026 | v0.7.180, Dec 1, 2026 | MIT | |
| yamadashy / repomix Packs a whole repository into a single file an AI model can read. | 29,565 GitHub (opens in new tab) | Active Nov 29, 2026 | v1.19.0, Nov 8, 2026 | MIT | |
| oraios / serena An MCP toolkit that gives coding agents symbol-level code search, editing and refactoring. | 31,881 GitHub (opens in new tab) | Active Nov 27, 2026 | v2.1.0, Oct 19, 2026 | Custom |
Install commands
Copied from each repo. Read its setup steps before you run anything.
DeusData/codebase-memory-mcp
curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bash cocoindex-io/cocoindex-code
pipx install 'cocoindex-code[full]'
# batteries included (local embeddings)
pipx upgrade cocoindex-code
# upgradeQuestions
Does Claude Code have codebase indexing?
Claude Code finds code by matching file names and searching file contents with patterns, and it can use language servers through its LSP tool. The tools on this page add an index or a graph that Claude asks through MCP or a skill, such as claude-context, codanna and semble.
What is a codebase indexing MCP server?
An MCP server that builds an index of your repository and answers code questions from it, so the agent reads fewer files. claude-context uses a vector database, codebase-memory-mcp builds a knowledge graph, and octocode combines semantic search with a graph of symbols and dependencies.
How do I use Claude Code on a large codebase?
Give it a way to look up code instead of reading whole directories. Semantic search tools such as claude-context, cocoindex-code and semble return the matching snippets. Graph tools such as code-review-graph and graphify map functions, imports and calls so the agent can follow them.
Which of these tools keep my code on my machine?
code-review-graph keeps its graph in one SQLite file with no cloud service, and cloud embeddings are opt-in. codebase-memory-mcp runs source analysis and graph storage locally. graphify parses code locally with no LLM, but its docs, PDFs and images use your assistant's model. claude-context can keep everything local with Ollama embeddings and a local Milvus database, or use hosted providers.
Are these tools free?
All of them are open source; the Licence column shows each licence. Some setups need an outside account: claude-context needs keys when you pick a hosted embedding provider or Zilliz Cloud, and graphify also offers a hosted Graphify Cloud next to its open-source tool.
