Code Context MCP logo

Code Context MCP

Indexes a codebase in SQLite and exposes code search, file context, dependencies, change tracking, and sprint workflow tools over MCP.

Install Code Context MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "code-context-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "code-context-reindex"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

The install command didn't complete successfully in our automated test.

npx -y code-context-reindex

npm error code E404 npm error 404 Not Found - GET https://registry.npmjs.org/code-context-reindex - Not found npm error 404 npm error 404 'code-context-reindex@*' is not in this registry. npm error 404 npm error 404 Note that you can also install from a npm error 404 tarball, folder, http url, or git url. npm error A complete log of this run can be found in: /home/user/.npm/_logs/2026-11-11T14_13_53_400Z-debug-0.log

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

code-context-mcp indexes a local codebase into a SQLite database that AI coding agents can query instead of repeatedly scanning the repository. Its default code-index mode provides six MCP tools for file roles, exports, dependents, metadata, and project context, while the sprint setup adds a 9-agent workflow with 91 more tools. A React dashboard on port 3333 can display the shared database with live SSE updates. Reach for it when an agent needs persistent repository context, dependency awareness, or a structured sprint process across sessions.

Use cases

  • Index a repository for persistent agent context
  • Trace exports and dependents before editing a file
  • Track file changes across coding sessions
  • Run a structured multi-agent sprint workflow
  • Inspect project state through a live dashboard

Key features

  • SQLite codebase index
  • File roles, exports, and dependents
  • Dependency and change tracking
  • Six-tool default code index
  • 97-tool sprint workflow
  • Live React dashboard with SSE updates

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

10/10 checks healthy over the last 39d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · code-context-reindex (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars5Stargazers on the source repository.
Last commit15d agoMost recent push to the default branch.
Install checkInconclusiveInstall command did not finish in our automated test.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Code Context MCP works

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:

Terminal
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:

Terminal
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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Code Context MCP

code-context-mcp is an MCP server that indexes a local codebase into SQLite and gives AI coding agents code-index and sprint workflow tools, including file search, file context, project status, exports, dependency relationships, and change tracking. It can also run a dashboard with live updates.

Install it with Node.js 22 or newer using `npm install vlm-code-context-mcp`. Run `npx code-context-reindex . --db ./context.db` for the default index, then register `npx code-context ./context.db` with your MCP client.

Run `npx code-context-mcp setup .` to create the database, install the sprint package, and write `.mcp.json`. After restarting the client, start the workflow with `/kickoff` in Claude Code.

Yes, it can be loaded by any MCP client that supports the standard server configuration. The server uses a local stdio command, and its setup writes `.mcp.json` for client registration.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCode Context MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/code-context-mcp?style=directory)](https://allmcps.com/mcp/code-context-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/code-context-mcp"><img src="https://allmcps.com/api/badge/code-context-mcp?style=directory" alt="Code Context MCP on AllMCPs" /></a>