Code Context MCP Server

MCP server for code context from local git repositories

Local serverstdioTypeScript

What is the Code Context MCP MCP server?

MCP server for code context from local git repositories. The code context mcp mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 1 defined tool rather than through you.

What it actually does

  • Uses local git repositories instead of GitHub API
  • Stores data in SQLite database
  • Splits code into semantic chunks
  • Generates embeddings for code chunks using Ollama
  • Provides semantic search over code

Adding it to your client

better-sqlite3 on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Its toolset

Everything the assistant can do here goes through one of these:

  • queryRepo — Clones a repository, processes code, and performs semantic search:

Configuration

  • Node.js (v16+) - Git - Ollama with an embedding model

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the code context mcp mcp server does with a few real requests.

When to reach for it

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Code Context MCP's toolset — queryRepo — is a fair guide to whether it matches your workflow. It is maintained by fkesheh; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Available tools

ToolWhat it does
queryRepoClones a repository, processes code, and performs semantic search:

How to install the Code Context MCP MCP server

{
  "mcpServers": {
    "code-context": {
      "command": "npx",
      "args": ["-y", "better-sqlite3"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Node.js (v16+) - Git - Ollama with an embedding model

Example prompts to try

  • Use Code Context MCP to queryRepo.

Frequently asked questions

It connects Code Context MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 1 tool (queryRepo) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Code Context MCP directly.