code-context-mcp

code-context-mcp

7

The Code Context MCP Server is designed to provide contextual information from local git repositories through code processing and semantic search. This server leverages SQLite for data storage and Ollama for generating code embeddings. Core features include local repository cloning, semantic chunking of code, and robust search capabilities.

Code Context MCP Server

A Model Context Protocol (MCP) server for providing code context from local git repositories. This server allows you to:

  • Clone git repositories locally
  • Process branches and files
  • Generate embeddings for code chunks
  • Perform semantic search over code

Features

  • 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

Prerequisites

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

Usage

Using with Claude Desktop

Add the configuration to your Claude Desktop configuration file.