Semantic Context MCP
S

Semantic Context MCP

A semantic code search server based on the MCP protocol, supporting two embedding models, OpenAI and Ollama, capable of indexing local projects or Git repositories, and providing an enterprise - level private code search solution.
2.5 points
5.9K

What is Enterprise Code Search?

This is an intelligent code search server based on the Model Context Protocol (MCP) that can understand the semantic meaning of code, rather than just keyword matching. It uses AI technology to convert code into mathematical vectors for intelligent search and similar code discovery.

How to use Enterprise Code Search?

Through Claude Desktop or a compatible AI assistant, you can search the codebase in natural language. First, index your project, and then use everyday language to describe the code functionality you want to find.

Use Cases

Suitable for scenarios such as software development teams, code review, technical debt management, onboarding of new members, code refactoring, and knowledge transfer.

Main Features

Semantic Code Search
Use AI to understand the meaning of code, support natural language queries, and no longer rely on exact keyword matching.
Dual Model Support
Support OpenAI cloud services and local Ollama deployment to meet different security and privacy requirements.
Multi-Project Management
Index and manage multiple code projects simultaneously, support cross-project search and analysis.
Similar Code Discovery
Find code with similar functionality based on code snippets to help with code reuse and refactoring.
Automatic Structure Analysis
Automatically analyze the project structure and identify the main components and dependencies.
Enterprise-Ready
Support private deployment, with data fully controlled within the enterprise to ensure code security.
Advantages
๐Ÿ”’ Data Privacy Protection: Code data stays completely local when using Ollama.
๐Ÿš€ High Search Efficiency: Semantic search is more accurate than traditional keyword search.
๐Ÿ’ก Intelligent Understanding: AI can understand the context and functional intent of code.
๐Ÿ”„ Easy Integration: Seamlessly integrate with tools such as Claude Desktop.
๐Ÿ“Š Multi-Language Support: Support mainstream programming languages and technology stacks.
Limitations
โš ๏ธ Requires Initial Configuration: Setting up the environment and indexing code is required for the first use.
๐Ÿ“š Learning Curve: It takes time to adapt to the mindset of semantic search.
๐Ÿ’พ Resource Consumption: Local deployment requires a certain amount of computing resources.
๐Ÿ”ง Technical Dependence: Depends on Docker and Node.js environments.

How to Use

Environment Preparation
Ensure that Node.js 18+ and Docker are installed on the system.
Download and Installation
Clone the project repository and install dependencies.
Configure the Environment
Copy the environment configuration file and modify the settings according to your needs.
Start the Service
Start the necessary backend services using Docker.
Integrate Claude
Configure Claude Desktop to use the MCP server.

Usage Examples

Code Function Search
When you need to find code that implements a specific function, you can use natural language to describe it.
Technology Stack Analysis
Understand the technology frameworks and libraries used in the project.
Code Refactoring Assistance
Find code that needs to be refactored or similar code patterns.
New Member Onboarding
Quickly understand the project structure and key components.

Frequently Asked Questions

What is the difference between this tool and traditional code search?
What is the difference between using Ollama and OpenAI?
How long does it take to index code?
Which programming languages are supported?
How to ensure code security?
How accurate are the search results?

Related Resources

Official Documentation
Complete technical documentation and API reference.
Model Context Protocol
Official description of the MCP protocol.
Ollama Project
Local AI model running platform.
Issue Feedback
Submit usage issues and feature suggestions.

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "enterprise-code-search": {
      "command": "node",
      "args": ["/path/to/semantic-context-mcp/dist/index.js"],
      "env": {
        "EMBEDDING_PROVIDER": "ollama",
        "OLLAMA_HOST": "http://localhost:11434",
        "OLLAMA_MODEL": "nomic-embed-text",
        "CHROMA_HOST": "localhost",
        "CHROMA_PORT": "8000",
        "COMPANY_NAME": "YourCompany"
      }
    }
  }
}
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
14.6K
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
6.0K
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
7.0K
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
14.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
5.8K
4 points
P
Paperbanana
Python
7.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.5K
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
7.0K
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
21.5K
4.5 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
36.9K
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
25.7K
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
74.7K
4.3 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#
34.9K
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
66.3K
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
50.3K
4.8 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
22.9K
4.5 points