codebase-context-mcp MCP Server
Codebase indexing and search via WASM tree-sitter. Works on ARM64 and x86_64.
codebase-context-mcp scores 51 (Fair), licensed MIT and written in TypeScript. It installs as a local process. It declares 5 tools. Filed under Search. GitHub shows 0 stars. Package registries report about 51 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Fair trust
51 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
85/100 for listing completeness. Lost points: short README, short summary, no docs link.
How quality is graded
Where the 51 comes from
22 + 5 + 0 + 10 + 4 + 10 = 51. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 5 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "jhackman2019-codebase-context-mcp": { "command": "npx", "args": [ "-y", "codebase-context-mcp@1.0.1" ] } }}
Environment variables
This server does not declare environment variables.
Tools5Tool docs quality grade C
All capabilitiesget_file_outlinetoolFile structure: functions, classes, imports, exports with line numbers
Tech stack, file counts by language, directory structure
index_codebasetoolParse a directory into symbols/chunks, cache as JSON
search_codetoolBM25 full-text search across indexed files
search_symbolstoolFind functions, classes, types by name or pattern
About
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
Frequently asked questions
What is codebase-context-mcp MCP Server?
Codebase indexing and search via WASM tree-sitter. Works on ARM64 and x86_64.
How do I install codebase-context-mcp MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. codebase-context-mcp MCP Server runs locally from the npm package codebase-context-mcp with the command npx -y codebase-context-mcp@1.0.1.
Is codebase-context-mcp MCP Server free and open source?
Yes. codebase-context-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does codebase-context-mcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for codebase-context-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does codebase-context-mcp MCP Server provide?
codebase-context-mcp MCP Server provides 5 tools, including get_file_outline, get_project_summary, index_codebase, and search_code. See the full tool list for descriptions and parameters.
How is codebase-context-mcp MCP Server's trust score calculated?
codebase-context-mcp MCP Server scores 51 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.