- Home
- MCP servers
- Codebase Context
Codebase Context
- javascript
0
GitHub Stars
javascript
Language
4 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"jhackman2019-codebase-context-mcp": {
"command": "node",
"args": [
"/path/to/codebase-context-mcp/dist/index.js"
]
}
}
}You have a cross‑platform MCP server that indexes codebases, builds an in-memory JSON index, and provides fast search and structure queries across languages. It runs without native bindings, so it works on ARM64 devices like Raspberry Pi and Apple Silicon, making code search and navigation reliable on any host.
How to use
To use this MCP server, connect a client that speaks the MCP stdio transport. You can index a project, search for symbols or code, retrieve a file outline, and generate a project summary. The server keeps an incremental index so only changed files are processed, and stores the index as a JSON file in your home directory.
Typical workflows include indexing a codebase, then running full-text or symbol-based searches across the indexed files. Use the outline endpoint to inspect the structure of individual files, and request a high-level project summary to understand language distribution and directory layout.
How to install
Prerequisites you need before installing: node and npm on your system, a Git client if you plan to clone the repository, and a compatible shell for running commands.
1) Install dependencies and build the MCP server if you are using a local clone:
```bash
git clone https://github.com/Jhackman2019/codebase-context-mcp.git
cd codebase-context-mcp
npm install
npm run build
- Start the MCP server locally using the final runtime command shown in the build guidance:
node /path/to/codebase-context-mcp/dist/index.js
- Alternatively, add the server to your MCP client using the provided integration flow:
claude mcp add codebase-context -s user -- npx codebase-context-mcp
- If you prefer a persistent setup via MCP settings, configure the server entry as shown in the JSON example below.
## Configuration and startup details
You can configure the MCP server in your client settings to point at the local runtime. The following example shows how to wire up the server in settings, using a local stdio configuration.
{ "mcpServers": { "codebase-context": { "command": "node", "args": ["/path/to/codebase-context-mcp/dist/index.js"] } } }
## Available tools
### index\_codebase
Parse a directory into symbols and chunks, caching the result as JSON to enable fast repeated searches.
### search\_symbols
Find functions, classes, or types by name or pattern using the indexed symbol data.
### search\_code
Perform BM25 full-text search across indexed files to locate relevant code snippets.
### get\_file\_outline
Retrieve the structural outline of a file, including functions, classes, imports, and exports with line numbers.
### get\_project\_summary
Provide an overview of the project’s tech stack, language distribution, and directory structure.