Best Codebase Search & Context MCP servers

Index your codebase so coding agents find the right files and symbols fast — fewer tokens, better answers. We compared 27 Codebase Search & Context MCP servers — 22 updated in the last 90 days, 12 with one-click install — ranked by relevance and GitHub stars.

Quick comparison

Top 12 by relevance. Status: maintained = commit in the last 90 days.

ServerStarsStatusUpdatedInstallAPI key
codebase-memory-mcpDeusData★ 46.5kMaintainedtodayOne-clickLikely
serenaoraios★ 30.2kMaintainedtodayOne-clickNot mentioned
Repomixyamadashy★ 28.8kMaintained2 days agoOne-clickLikely
code-index-mcpjohnhuang316★ 1kMaintained2 months agoOne-clickNot mentioned
code-context-engineelara-labs★ 430Maintained1 month agoOne-clickNot mentioned
mcp-code-graphdiffbot★ 403Aging10 months agoCommandLikely
code-review-graphtirth8205★ 32.1kMaintained7 days agoOne-clickLikely
Claude Contextzilliztech★ 12.6kAging3 months agoOne-clickLikely
xbergxberg-io★ 9.4kMaintainedtodayCommandNot mentioned
exa-mcp-serverexa-labs★ 5.1kMaintained6 days agoSee READMELikely
jcodemunch-mcpjgravelle★ 2.8kMaintainedtodayCommandNot mentioned
gemini-mcp-tooljamubc★ 2.3kMaintained2 months agoCommandLikely

All 27 Codebase Search & Context MCP servers

Showing all 27 servers

codebase-memory-mcp

by DeusData · C

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

Developer ToolsMaintained46.5k

serena

by oraios · Python

A powerful MCP toolkit for coding, providing semantic retrieval and editing capabilities - the IDE for your agent

Developer ToolsMaintained30.2k

Repomix

by yamadashy · TypeScript

Packs a whole repository into one AI-friendly file; run with --mcp to let assistants pack and read local or remote codebases.

Developer ToolsMaintained28.8k

code-index-mcp

by johnhuang316 · Python

A Model Context Protocol (MCP) server that helps large language models index, search, and analyze code repositories with minimal setup

Developer ToolsMaintained1k

code-context-engine

by elara-labs · Python

Save 94% on AI coding tokens. Index your codebase, agents search instead of reading files. Works with Claude Code, Codex, Copilot, Cursor, Gemini CLI. Local MCP server, free, open source.

Developer ToolsMaintained430

mcp-code-graph

by diffbot · JavaScript

MCP Server for code graph analysis and visualization by CodeGPT

Developer ToolsAging403

code-review-graph

by tirth8205 · Python

Local-first code intelligence graph for MCP and CLI. Builds a persistent map of your codebase so AI coding tools read only what matters, with benchmarked context reductions on reviews and large-repo workflows.

Developer ToolsMaintainedRemote32.1k

Claude Context

by zilliztech · TypeScript

Code search MCP for Claude Code. Make entire codebase the context for any coding agent.

Developer ToolsAging12.6k

xberg

by xberg-io · Rust

Polyglot document intelligence with a Rust core: extract text, metadata, images, tables, and structured data from 106 formats across 140 file extensions, plus code intelligence for 371 languages. Fifteen bindings, with CLI, REST API, and MCP server.

Memory & KnowledgeMaintained9.4k

exa-mcp-server

by exa-labs · TypeScript

Connect AI agents to Exa for web search, content fetching, and multi-step research.

Search & WebMaintainedRemote5.1k

jcodemunch-mcp

by jgravelle · Python

Cut AI token costs 95%+ on code exploration. The leading MCP server for precise, symbol-level GitHub code retrieval via tree-sitter AST. Works with Claude Code, Cursor & any MCP client. 313B+ tokens saved.

Developer ToolsMaintainedRemote2.8k

gemini-mcp-tool

by jamubc · TypeScript

MCP server that enables AI assistants to interact with Google Gemini CLI, leveraging Gemini's massive token window for large file analysis and codebase understanding

Developer ToolsMaintained2.3k

contextplus

by forloopcodes · TypeScript

Semantic Intelligence for Large-Scale Engineering. Context+ is an MCP server designed for developers who demand 99% accuracy. By combining RAG, Tree-sitter AST, Spectral Clustering, and Obsidian-style linking, Context+ turns a massive codebase into a searchable, hierarchical feature graph.

Developer ToolsAging2k

aoci-code

by aoci-spec · Go

A persistent, Git-versioned map of your whole codebase and database schema that coding agents read before they touch anything. Local-first MCP server + CLI in Go: a governed repository index of code knowledge that gives Claude Code, Codex, Cursor, and opencode long-term context, memory, and code intelligence.

Developer ToolsMaintained1.5k

codedb

by justrach · Zig

Zig code intelligence server and MCP toolset for AI agents. Fast tree, outline, symbol, search, read, edit, deps, snapshot, and remote GitHub repo queries.

Developer ToolsMaintainedRemote1.4k

octocode

by bgauryy · TypeScript

Code research platform for AI agents; find, understand, and prove context across your code and all of GitHub, in a fraction of the tokens. One toolset, MCP or CLI

Developer ToolsMaintained950

drift

by dadbodgeoff · TypeScript

Codebase intelligence for AI. Detects patterns & conventions + remembers decisions across sessions. MCP server for any IDE. Offline CLI.

Developer ToolsMaintained791

codanna

by bartolli · Rust

Local code intelligence MCP server and CLI for AI coding agents

Developer ToolsMaintained755

MegaMemory

by 0xK3vin · TypeScript

Persistent project knowledge graph for coding agents. MCP server with semantic search, in-process embeddings, and web explorer.

Memory & KnowledgeAging722

tokensave

by aovestdipaperino · Rust

The most comprehensive code intelligence MCP server for AI coding agents. 40+ tools, 30+ languages, 9 agent integrations. Pre-indexed semantic knowledge graphs for instant code understanding — fewer tokens, fewer tool calls, 100% local.

Developer ToolsMaintained662

sigmap

by manojmallick · JavaScript

~97% token reduction for AI coding sessions — zero deps, 38 languages, MCP server

Developer ToolsMaintained646

roam-code

by Cranot · Python

Local codebase intelligence CLI + MCP server for AI coding agents: SQLite code graph, 28 languages, 287 commands, 246 MCP tools, change-safety gates, audit evidence, zero API keys.

Developer ToolsMaintained517

octocode

by Muvon · Rust

Structural code intelligence for AI agents — semantic search, knowledge graphs, and a built-in MCP server in one Rust binary. Give Claude, Cursor, and any MCP client a deep understanding of your codebase.

Developer ToolsMaintained510

memtrace-public

by syncable-dev · Python

Structural memory for AI coding agents. Bi-temporal graph, MCP-native, zero LLM calls. Cursor · Claude Code · Codex · DeepSeek Harness · Hermes · VS Code · Windsurf.

Developer ToolsMaintained491

marm-memory

by Lyellr88 · Python

Local-first 3-in-1 AI memory layer & MCP server for Claude Code, Codex, Grok, Gemini, VS Code and Cursor. Fuses session history, codebase indexing & concept graphs in SQLite. Enables zero-cloud, privacy-first context & instant recall, supports multi-agent swarms.

Developer ToolsMaintainedRemote420

tilth

by jahala · Rust

Smart code reading for humans and AI agents. Definitions, callers, dependencies and function-level diffs from tree-sitter. One binary, no index. MCP server + CLI. Install: cargo install tilth or npx tilth

Agents & OrchestrationMaintained353

codemogger

by glommer · TypeScript

Codemogger is a code indexing library and MCP server for AI coding agents

Developer ToolsAging347

Codebase Search & Context MCP server FAQ

What is the best Codebase Search & Context MCP server?

Based on GitHub stars and recent activity, codebase-memory-mcp by DeusData (★ 46.5k, updated today) is the most popular actively maintained option on HookMCP, followed by serena and Repomix. The right choice depends on whether you need write access, a hosted (remote) endpoint, or a server that runs locally without an API key.

How do I install a Codebase Search & Context MCP server in Claude, Cursor or VS Code?

Open the server's page on HookMCP, choose your client tab (Claude Desktop, Cursor, VS Code or Claude Code) and copy the config — 12 of the 27 servers here have one-click install links for Cursor and VS Code. Restart your AI app and the new tools appear automatically.

Do Codebase Search & Context MCP servers need an API key?

18 of 27 servers here mention API keys or tokens in their README; 9 don't mention any. Check each listing's Details panel, and pass keys as environment variables rather than pasting them into chat.

Related integrations

Or browse by category: Developer Tools, Memory & Knowledge, Search & Web.