codebase-context-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@codebase-context-mcp search for function parseToken"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Related MCP server: Acemcp
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 |
| Parse a directory into symbols/chunks, cache as JSON |
| Find functions, classes, types by name or pattern |
| BM25 full-text search across indexed files |
| File structure: functions, classes, imports, exports with line numbers |
| 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-mcpOr 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.jsMCP 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 architectureSearch: BM25 text ranking (pure JS) + symbol name matching
Storage: JSON file index at
~/.codebase-context-mcp/<project-hash>.jsonTransport: MCP stdio via
@modelcontextprotocol/sdkIncremental: 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 serverLicense
MIT
Available Tools
5 toolsget_file_outlineA
Get the structure of a file: functions, classes, imports, exports with line numbers.
Inputs: filePath (required), directory (required).
get_project_summaryA
Get an overview of an indexed project: tech stack, file counts by language, directory structure.
Inputs: directory (required).
index_codebaseA
Parse a directory into symbols and chunks, building a searchable index. Supports TypeScript, JavaScript, Python, CSS, JSON.
Inputs: directory (required).
search_codeA
BM25 full-text search across all files in an indexed codebase. Returns ranked results with matching lines.
Inputs: query (required), directory (required), maxResults.
search_symbolsB
Find functions, classes, types, and other symbols by name or pattern in an indexed codebase.
Inputs: query (required), directory (required), kind, maxResults.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose: indexing, symbol search, full-text search, file outline, and project summary. There is no overlap between tools, so an agent can easily select the right one.
All tool names follow a consistent verb_noun pattern (index_, search_, get_), making the set predictable and easy to navigate.
With five tools, the server is well-scoped for its purpose of providing codebase context. Each tool is necessary and there is no bloat.
The domain of codebase context is well-covered with indexing, two complementary search methods, file outline, and project summary. A tool to fetch full file content would be a minor addition, but the current set is functional and does not have critical gaps.
Maintenance
Related MCP Connectors
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Enterprise code intelligence for M&A, security audits, and tech debt. Hosted server with 200k free.
Ask a codebase what calls what: search, blast radius, paths between symbols, and diffs.
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables semantic code search across multiple repositories using natural language queries. Provides intelligent code discovery, symbol lookups, and cross-repo dependency analysis for AI coding agents.MIT
- AlicenseAqualityDmaintenanceEnables semantic code search across codebases with automatic incremental indexing. Searches return relevant code snippets with file paths and line numbers based on natural language queries.1803Apache 2.0
- AlicenseAqualityNot gradedmaintenanceEnables fast code analysis and navigation through hybrid semantic search, graph-based relationship tracking, and structure exploration across multiple programming languages with optimized indexing for large codebases.83MIT
- AlicenseNot gradedqualityDmaintenanceEnables code intelligence through semantic, structural, graph, and text search across indexed repositories, allowing AI agents to quickly locate the exact code they need.14 npm3MIT