
Codebase Context Mcp
- Updated February 13, 2026
- Jhackman2019/codebase-context-mcp
Codebase Context MCP is a MCP server that indexes and searches your repository via WASM tree-sitter for agent-friendly codebase retrieval.
About
Codebase Context MCP is a stdio MCP server that builds a searchable index of your project using WebAssembly tree-sitter, so coding agents can pull relevant files and definitions on demand. developers shipping with Claude Code, Cursor, Codex, or Windsurf use it when full-repo grep or manual @-mentions stop scaling on medium and large codebases. ARM64 and x86_64 support matters for Mac dev machines and Linux CI alike. Expect to pair it with your normal git workflow—the server improves recall and structure awareness; it does not replace code review or tests.
- Indexes repositories with WASM tree-sitter for structure-aware parsing
- Search API over indexed symbols and chunks for agent tool calls
- Runs on ARM64 and x86_64 without native tree-sitter binaries
- Stdio MCP transport via npm package codebase-context-mcp (v1.0.1)
- Local-first context layer instead of re-uploading files each session
Codebase Context Mcp by the numbers
- Data as of Jul 7, 2026 (Skillselion catalog sync)
claude mcp add codebase-context-mcp -- npx -y codebase-context-mcpAdd your badge
Show developers this MCP server is listed on Skillselion. Paste this into your README.
| Package | codebase-context-mcp |
|---|---|
| Transport | STDIO |
| Auth | None |
| Last updated | February 13, 2026 |
| Repository | Jhackman2019/codebase-context-mcp ↗ |
What it does
Give Claude Code or Cursor fast, local semantic search over your repo without sending the whole tree on every turn.
Who is it for?
Best when you're on multi-package repos and want portable, local indexing on Apple Silicon or x86_64 Linux and macOS.
Skip if: Skip if you only need single-file edits in tiny projects or and already use a managed cloud code search product you prefer not to duplicate.
What you get
After you register the server, agents can query a local index and pull structured context instead of guessing paths or pasting huge slices of the tree.
- Indexed workspace the agent can query via MCP tools
- Structure-aware search results for files and definitions
- Repeatable local context pipeline without cloud upload
By the numbers
- Package version 1.0.1 on npm (identifier codebase-context-mcp)
- WASM tree-sitter indexing with ARM64 and x86_64 support
- Stdio transport per MCP server schema 2025-12-11
README.md
codebase-context-mcp
MCP server for codebase indexing and search that works on every platform — including ARM64 devices like Raspberry Pi and Apple Silicon where most alternatives fail.
The Problem
Popular codebase-indexing MCP servers like @zilliz/claude-context-mcp depend on native C++ bindings (tree-sitter, faiss-node) that ship pre-built binaries only for x86_64. If you're on ARM64 — a Raspberry Pi, Apple Silicon Mac, AWS Graviton, or any other arm64 host — npm install fails with missing prebuilts and no fallback. There's no workaround short of cross-compiling the native modules yourself.
The Solution
This package replaces every native dependency with a WASM equivalent. The tree-sitter parser runs as WebAssembly, search uses a pure-JS BM25 implementation, and the index is stored as plain JSON. Zero native bindings means npm install succeeds on the first try on any architecture: ARM64, x86_64, macOS, Linux, Windows.
Drop-in compatible — provides the same core tools (index, search, outline, summary) via the standard MCP stdio transport.
Tools
| Tool | Description |
|---|---|
index_codebase |
Parse a directory into symbols/chunks, cache as JSON |
search_symbols |
Find functions, classes, types by name or pattern |
search_code |
BM25 full-text search across indexed files |
get_file_outline |
File structure: functions, classes, imports, exports with line numbers |
get_project_summary |
Tech stack, file counts by language, directory structure |
Supported Languages
TypeScript, TSX, JavaScript, Python, C#, VB.NET, XML, CSS, JSON
Install
Claude Code (recommended)
claude mcp add codebase-context -s user -- npx codebase-context-mcp
Or from a local clone:
git clone https://github.com/Jhackman2019/codebase-context-mcp.git
cd codebase-context-mcp
npm install && npm run build
claude mcp add codebase-context -s user -- node /path/to/codebase-context-mcp/dist/index.js
MCP Settings (JSON)
{
"mcpServers": {
"codebase-context": {
"command": "npx",
"args": ["codebase-context-mcp"]
}
}
}
How It Works
- Parsing:
web-tree-sitter(WASM) — same AST quality as native tree-sitter, runs on any architecture - Search: BM25 text ranking (pure JS) + symbol name matching
- Storage: JSON file index at
~/.codebase-context-mcp/<project-hash>.json - Transport: MCP stdio via
@modelcontextprotocol/sdk - Incremental: Files with unchanged content hash are skipped on re-index
Safety Limits
| Limit | Value |
|---|---|
| Max files | 20,000 |
| Max file size | 512KB |
| Default ignores | node_modules, .git, dist, build, .venv, binaries, lock files |
| .gitignore | Respected (root level) |
Development
npm install
npm run build # Build with tsup
npm run dev # Watch mode
npm start # Run the server
License
MIT
Recommended MCP Servers
How it compares
MCP codebase indexer, not a hosted documentation or static-analysis SaaS.
FAQ
Who is Codebase Context MCP for?
and small-team developers who run AI coding agents daily and need fast, local search over their own repositories.
When should I use Codebase Context MCP?
Use it during Build when refactors, feature work, or debugging span many modules and @-file context is no longer enough.
How do I add Codebase Context MCP to my agent?
Install the npm package codebase-context-mcp, add a stdio MCP entry in Claude Code, Cursor, or Codex pointing at that command, then restart the client.