Semantic Context MCP Server

Semantic Context MCP Server

semantic-context-mcp•byzishengwu

An MCP server that indexes your codebase into a local vector database and provides semantic search over code using natural language queries.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Performs semantic code search, finding code based on meaning and context rather than keyword matching.
  • •Parses changed files with an AST parser to extract code blocks such as functions and classes, then stores their embeddings in a local ChromaDB instance.
  • •Tracks file changes with a Merkle Tree to incrementally re-index only modified files.
  • •Runs a background initial full index followed by periodic incremental updates every 5 minutes.

BEST FOR

  • •Developers who want to search their codebase with natural language queries through an MCP-capable tool.
  • •Projects in languages such as Python, Java, C++, JavaScript, TypeScript, and Go that need semantic code context.

ABOUT SEMANTIC-CONTEXT-MCP

Semantic Context MCP Server is cataloged as an MCP server attributed to zishengwu. An MCP server that indexes your codebase into a local vector database and provides semantic search over code using natural language queries. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Semantic Context MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Where is the indexed data stored?

All data, including the vector database and index metadata, is stored locally in the user home directory under ~/.chromadb.

Which embedding model can be used?

An OpenAI-compatible API is used to generate embeddings, so models such as Jina or OpenAI can be configured.

上游原版 README

在 GitHub 查看同一版本原文

README.md · b245c9ca19cd · 采集于 2026-11-13 12:31:34 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

中文

🚀 Overview

Semantic Context MCP Server is a Model Context Protocol (MCP) server that leverages a vector database to efficiently index and perform semantic searches across your codebase.

It intelligently parses your code into structural blocks (like functions and classes), converts them into vector embeddings, and stores them in a local vector database. This allows you to find semantically relevant code snippets using natural language queries, rather than just keyword matching.

The server runs in the background, automatically tracking file changes and incrementally updating its index, ensuring your code context is always up-to-date.

✨ Features

  • Incremental Indexing: Uses a Merkle Tree to detect file changes, ensuring only modified files are re-indexed, which is highly efficient.
  • Multi-Language Support: Employs AST (Abstract Syntax Tree) parsing to support a wide range of languages, including Python, Java, C++, JavaScript, TypeScript, and Go.
  • Semantic Code Search: Find code based on meaning and context, not just keywords.
  • Background Automation: Automatically performs an initial full index and then runs periodic incremental updates every 5 minutes.
  • Simple MCP Interface: Provides easy-to-use tools (full_index, status, query) for integration with other systems.
  • Local First: All data (vector database, index metadata) is stored locally in your user home directory (~/.chromadb).

🛠️ How It Works

  1. Detect Changes: A Merkle Tree is built from file content hashes to quickly identify added, modified, or deleted files.
  2. Parse Code: Changed files are parsed using an AST parser to extract meaningful code blocks (functions, classes, etc.).
  3. Generate Embeddings: The extracted code blocks are converted into numerical representations (vector embeddings) using an embedding model (e.g., Jina, OpenAI).
  4. Store in Vector DB: These embeddings and associated metadata are stored in a local ChromaDB instance.
  5. Query: When a query is received, it's converted into an embedding and used to find the most similar code blocks in the vector database.

📂 Project Structure

.
├── vector_search/
│   ├── ast_parser.py          # Smart AST parser for multiple languages
│   ├── code_change_tracker.py # Detects file changes using a Merkle Tree
│   ├── code_indexer.py        # Main logic for incremental and full indexing
│   ├── fast_mcp_server.py     # The MCP server exposing the tools
│   └── vector_db.py           # Vector database manager (ChromaDB wrapper)
├── LICENSE
├── README_zh.md
└── README.md

⚙️ Prerequisites

  • Python 3.8+
  • An OpenAI-compatible API for generating embeddings. You need to set the following environment variables:
    export OPENAI_API_KEY="your_api_key"
    export OPENAI_BASE_URL="your_api_base_url"
    export OPENAI_MODEL_NAME="your_embedding_model_name"
    

📦 Installation

  1. Clone the repository:
    git clone https://github.com/zishengwu/semantic-context-mcp
    cd semantic-context-mcp
    

🚀 Usage

  1. config MCP JSON file in IDE:
    {
  "mcpServers": {
    "Semantic Context MCP Server": {
      "command": "fastmcp",
      "args": [
        "run",
        "your_code_base/semantic-context-mcp/vector_search/fast_mcp_server.py:mcp"
      ],
      "env": {
        "OPENAI_API_KEY": "your_api_key",
        "OPENAI_BASE_URL": "your_api_base_url",
        "OPENAI_MODEL_NAME": "your_embedding_model_name"
      }
    }
  }
}

Enjoy it!👏

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Semantic Context MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/semantic-context-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools