Code Rag MCP
C

Code Rag MCP

A code search MCP server based on semantic understanding, using local embedding models and vector databases to achieve intelligent code retrieval, replacing traditional text search tools
2.5 points
5.8K

What is Code RAG MCP Server?

Code RAG MCP Server is an intelligent code search tool that uses semantic understanding technology to find code. Different from traditional text search tools (such as grep), it can understand the meaning and concepts of the code, thus finding code snippets related to the function, even if they use different variable names or implementation methods.

How to use Code RAG MCP Server?

First, you need to install and configure the necessary components (Qdrant vector database and LM Studio embedding model), and then conduct code search through supported client tools such as Claude and Zed. The main steps include: installing software, configuring the environment, indexing the code library, and then you can search for code through natural language queries.

Use cases

It is suitable for development scenarios that require quickly understanding large code libraries, finding specific function implementations, learning code patterns, refactoring code, or finding similar solutions in different projects. It is especially suitable for team collaboration, code review, and knowledge inheritance.

Main features

Semantic search
Search by understanding code concepts rather than simple text matching. It can find code with similar functions but different implementations.
Local embeddings
Use the locally running LM Studio to generate code embedding vectors without relying on external APIs such as OpenAI, protecting code privacy.
Multi-language support
Supports multiple programming languages and configuration file formats such as Go, Python, JavaScript/TypeScript, Terraform, and YAML.
MCP integration
Seamlessly integrates with Claude Desktop, Claude Code, and Zed Editor, allowing you to use the code search function directly in these tools.
HTTP API
Provides an HTTP interface, supporting Git hooks to automatically re - index the code library to keep the search results up - to - date.
Fast indexing
Uses the in - memory Qdrant vector database for efficient indexing and retrieval, with fast response speed.
Advantages
Understand code semantics and find code related to functions rather than just text matching
Run completely locally to protect code privacy and security
Support multiple programming languages and development tools
Fast search speed and timely response
Find relevant code without memorizing specific function names or variable names
Limitations
Need to install and configure multiple components (Qdrant, LM Studio)
Indexing a large code library for the first time may take a long time
Semantic understanding may not be as accurate as precise text search
Require a certain learning cost to master the best query method

How to use

Install necessary software
Install the Go language, Docker (for running Qdrant), and LM Studio (for generating code embedding vectors).
Download and build the tool
Clone the code repository, install dependencies, and build the executable file.
Configure the tool
Create a configuration file and set the code path and embedding model parameters.
Integrate into development tools
Configure according to the tool you are using (Claude or Zed).
Index the code library
You need to index your code library before using it for the first time so that the tool can understand the code content.
Start searching
Use natural language queries through the integrated tool interface to search for code.

Usage examples

Find authentication - related code
When you need to find all code related to user authentication in a large project but are not sure about the specific function names or file locations.
Learn error handling patterns
When you want to understand the error handling patterns used in the project and find similar implementations as a reference.
Find Terraform configurations
Find specific resource configurations or module definitions in infrastructure code.
Understand code dependencies
When you need to understand the dependencies and context of a complex function or file.

Frequently Asked Questions

Why can't I find any results?
What should I do if the LM Studio connection fails?
How long does it take to index a large code library?
Which programming languages are supported?
How to update the indexed code?
How much memory and storage space are required?

Related resources

MCP Protocol Documentation
Official documentation and specifications for the Model Context Protocol
Qdrant Vector Database
A high - performance vector search engine for storing and retrieving code embedding vectors
LM Studio
A desktop application for running large language models locally
Nomic AI Embedding Model
A high - quality text embedding model for generating semantic representations of code
Claude Code Documentation
Official documentation and MCP integration guide for Claude Code
Zed Editor
A high - performance code editor that supports the MCP protocol

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "code-rag": {
      "command": "/usr/local/bin/code-rag-mcp",
      "env": {
        "LM_STUDIO_URL": "http://localhost:1234/v1"
      }
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

A
Airweave
Airweave is an open - source context retrieval layer for AI agents and RAG systems. It connects and synchronizes data from various applications, tools, and databases, and provides relevant, real - time, multi - source contextual information to AI agents through a unified search interface.
Python
16.4K
5 points
V
Vestige
Vestige is an AI memory engine based on cognitive science. By implementing 29 neuroscience modules such as prediction error gating, FSRS - 6 spaced repetition, and memory dreaming, it provides long - term memory capabilities for AI. It includes a 3D visualization dashboard and 21 MCP tools, runs completely locally, and does not require the cloud.
Rust
8.7K
4.5 points
M
Moltbrain
MoltBrain is a long-term memory layer plugin designed for OpenClaw, MoltBook, and Claude Code, capable of automatically learning and recalling project context, providing intelligent search, observation recording, analysis statistics, and persistent storage functions.
TypeScript
9.4K
4.5 points
B
Bm.md
A feature-rich Markdown typesetting tool that supports multiple style themes and platform adaptation, providing real-time editing preview, image export, and API integration capabilities
TypeScript
15.2K
5 points
S
Security Detections MCP
Security Detections MCP is a server based on the Model Context Protocol that allows LLMs to query a unified security detection rule database covering Sigma, Splunk ESCU, Elastic, and KQL formats. The latest version 3.0 is upgraded to an autonomous detection engineering platform that can automatically extract TTPs from threat intelligence, analyze coverage gaps, generate SIEM-native format detection rules, run tests, and verify. The project includes over 71 tools, 11 pre-built workflow prompts, and a knowledge graph system, supporting multiple SIEM platforms.
TypeScript
9.1K
4 points
P
Paperbanana
Python
9.2K
5 points
B
Better Icons
An MCP server and CLI tool that provides search and retrieval of over 200,000 icons, supports more than 150 icon libraries, and helps AI assistants and developers quickly obtain and use icons.
TypeScript
8.9K
4.5 points
A
Assistant Ui
assistant - ui is an open - source TypeScript/React library for quickly building production - grade AI chat interfaces, providing composable UI components, streaming responses, accessibility, etc., and supporting multiple AI backends and models.
TypeScript
10.3K
5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
27.9K
4.3 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
81.2K
4.3 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
38.7K
5 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
24.5K
4.5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
38.8K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
70.8K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
24.5K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
56.3K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase