code-context-mcp

code-context-mcp

3.4

If you are the rightful owner of code-context-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Model Context Protocol (MCP) server for providing code context from local git repositories.

The Code Context MCP Server is designed to facilitate the management and semantic analysis of code from local git repositories. It allows users to clone repositories, process branches and files, generate embeddings for code chunks, and perform semantic searches over the code. This server leverages local git repositories instead of relying on the GitHub API, ensuring a more secure and efficient handling of code data. The server stores data in an SQLite database and uses Ollama for generating embeddings, which enhances the semantic search capabilities. This tool is particularly useful for developers and teams looking to manage and search through large codebases efficiently.

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

Tools

  1. queryRepo

    Cloning the repository, processing the code, and performing semantic searches. Supported parameters include repository URL, branch, query string, keyword filtering, file pattern filtering and result count limit