# code-context-mcp [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/VelimirMueller/code-context-mcp  
**GitHub Stars:** 5  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/code-context-mcp

## Description
MCP server that indexes codebases into a SQLite database, exposing file metadata, exports, dependency graphs, and per-file change tracking.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "code-context-mcp": {
    "command": "npx",
    "args": ["-y","code-context-reindex"]
  }
}
```

## Documentation

## What code-context-mcp does

code-context-mcp turns a repository into a local SQLite index stored in `context.db`. The index records file metadata, file roles, exports, dependents, dependency relationships, and per-file change information. Agents query this database through MCP tools, giving them a persistent project reference that survives the end of an individual session.

The default entry point is the code index, which exposes six tools. A separate setup path adds the sprint process, including a nine-agent team and a workflow covering vision, discovery, milestones, epics, tickets, implementation, gates, and retrospectives. That mode uses 91 additional tools and supports the `/kickoff` command in Claude Code.

## How it works

The normal flow is database-first: an agent searches the index, loads context for a relevant file, and then reads the source file when needed. For example, `search_files` can locate a likely file, while `get_file_context` provides its role, exports, and dependents before the agent opens the file itself. The project database is shared by the MCP server and the optional dashboard.

The index is refreshed from the repository with `code-context-reindex`. File watching and automatic reindexing on save are enabled by default based on the files already indexed. The server checks the indexed information against the disk when answering, helping the stored context reflect current files.

## Setup and configuration

Node.js 22 or newer is required; Node.js 24 LTS is recommended. Install the npm package and create an index with:

```bash
npm install vlm-code-context-mcp
npx code-context-reindex . --db ./context.db
```

Register the code-index process with an MCP client using the `code-context` executable. Claude Code, for example, can be configured with:

```bash
claude mcp add code-context -- npx code-context ./context.db
```

For the sprint workflow, run `npx code-context-mcp setup .`. Setup creates or updates `context.db`, installs the sprint package, writes `.mcp.json`, and can offer to add the sprint status line to `.claude/settings.json`. The `--defaults` option skips prompts. Running setup again performs migration and configuration repair with an automatic backup; `--force` renames the previous database rather than deleting it.

Start the optional dashboard with `npx code-context-dashboard ./context.db`. It is available at `http://localhost:3333` and sends live updates over SSE. The watch directory can be supplied as a fourth argument when it differs from the indexed files.

## Tools and capabilities

- Search indexed files and retrieve per-file context.
- Query file roles, exports, dependents, and dependency relationships.
- Track changes associated with individual files.
- Check project state with tools such as `get_project_status`.
- Run a structured sprint process with 97 MCP tools and six slash commands.
- View the shared project state in a live React dashboard.

## Limitations and notes

The index and dashboard are local and use one SQLite database; the setup requires a Node.js runtime. No API keys are required. The benchmark figures associated with token reduction are simulated for the stated headline and vary by model and task; results described for Claude Code included two tasks where it used more tokens. The sprint process is an optional path rather than part of the six-tool default code-index mode.

_Full upstream README: https://allmcps.com/mcp/code-context-mcp/readme_

