semcode

semcode

semcode•bygoodbyeplanet

A self-hosted MCP server that provides hybrid semantic search across your team's GitHub repositories and commit history to AI agents.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Indexes code from many GitHub repos into a single Qdrant index, splitting files into symbols with Tree-sitter.
  • •Combines dense semantic embeddings with BM25 sparse vectors fused via Reciprocal Rank Fusion for hybrid retrieval.
  • •Makes commit messages and changed files searchable, with full diffs available on demand.
  • •Supports pluggable embedding providers including Jina, Voyage, OpenAI and Ollama.

BEST FOR

  • •Answering cross-repository questions about where events are published or symbols are defined.
  • •Searching commit history to understand why a change was made and its full diff.
  • •Working with code that is not checked out locally across an organisation's services.

ABOUT SEMCODE

semcode is cataloged as an MCP server attributed to goodbyeplanet. A self-hosted MCP server that provides hybrid semantic search across your team's GitHub repositories and commit history to AI agents. 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: MIT. 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 semcode 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

What MCP tools does semcode expose?

It offers tools such as search_code, find_symbol, find_usages, get_code_context, search_commits, get_commit, reindex, index_history, list_indexed_services and index_stats.

Does semcode support incremental indexing?

Yes, indexing is incremental and skips unchanged files by Git blob SHA while cleaning up deleted files.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 0ceab1ab1a67 · 采集于 2026-11-13 12:58:36 UTC

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

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

semcode

Hybrid semantic search across all your team's GitHub repos — and their commit history — served to any AI agent over MCP.

Release CI MCP Server Python 3.12+ License MIT

mcpservers.org mcpmarket.com mcp.so

Quick start · Features · MCP tools · Docs · Blog

Why semcode

Coding agents are good at reading the project you have open. They are bad at answering questions that span the rest of your organisation: "which service publishes OrderPlaced?", "how do other teams call the billing API?", "why did someone change the retry logic last month?"

Without semcodeWith semcode
Code in other reposClone it, or paste it into the chatOne search_code call across every indexed repo
"Where is PlaceOrderRequest defined?"grep — if the repo happens to be checked outExact or partial symbol-name lookup
"Where do we publish order events?"Guess the right keywordsNatural-language search (dense + BM25, fused with RRF)
"Why did this change?"git log, repo by repoSemantic search over commit messages, with full diffs
Where your code goes—Nowhere — self-hosted, with local Jina or Ollama embeddings

How it works

flowchart LR
    GH[GitHub repos] -->|source files| TS[Tree-sitter<br/>symbol parsing]
    TS --> DE[Dense embeddings<br/>Jina · Voyage · OpenAI · Ollama]
    TS --> BM[BM25 sparse vectors<br/>code-aware tokenizer]
    GH -->|commits + diffs| CE[Commit embeddings]
    DE --> Q[(Qdrant)]
    BM --> Q
    CE --> Q
    Q -->|hybrid search · RRF| S[semcode<br/>MCP server]
    S <-->|MCP| A[Your AI agent]
    CI[CI on merge] -->|POST /reindex| S

semcode fetches files from GitHub, splits them into symbols (functions, classes, methods, components) with Tree-sitter, and stores two vectors per symbol in Qdrant: a dense semantic embedding and a BM25 vector over code-identifier subwords (getUserById → get, user, by, id). Queries run both and fuse the rankings with Reciprocal Rank Fusion, so natural language and exact symbol names work. Indexing is incremental — unchanged files are skipped by Git blob SHA, and deleted files are cleaned up.

→ Deep dive: ingestion · dense vectors · sparse vectors · retrieval with RRF · the blog post

🚀 Quick start

You need: Docker, and a GitHub token with Contents: read on the repos you want indexed.

1. Start semcode, Qdrant and a local embedding model (no API key needed):

git clone https://github.com/GoodbyePlanet/semcode && cd semcode
cp .env.example .env          # then set GITHUB_TOKEN in .env
make docker-up-jina

2. Index a repo:

curl -N -X POST http://localhost:8090/reindex \
  -H 'Content-Type: application/json' \
  -d '{"service": "my-service", "github_repo": "owner/repo"}'

Progress streams back as NDJSON and ends with {"type": "done", ...}. The repo stays registered, so later reindexes are incremental.

3. Connect your agent:

claude mcp add --transport http semcode http://localhost:8090/mcp

That's it. Prefer a hosted embedding provider (Voyage, OpenAI, Jina API) or Ollama? Set EMBEDDINGS_PROVIDER in .env and run make docker-up instead. Want a curated list of repos in a config.yaml, or to run without Docker? See Deployment.

💬 Using it

Ask your agent in plain English:

  1. "Index acme/payments with semcode."
  2. "Where do we publish order events?"
  3. "Find everything that uses PlaceOrderRequest, across all services."
  4. "Search the commit history: who changed the retry logic in payments, and why?"
  5. Run the system_design_overview prompt for a full architecture write-up with Mermaid diagrams.

✨ Features

  • Many repos, one index. List services in config.yaml, or let each repo register itself from CI with the drop-in GitHub Actions workflow.
  • Hybrid retrieval. Dense embeddings plus BM25 with a camelCase/snake_case-aware tokenizer, fused with RRF.
  • Commit history. Commit messages and changed files are searchable; full diffs are one tool call away.
  • 25 languages and file formats, framework-aware. Go, Java, Python, TypeScript/JavaScript, Rust, C#, C, C++, Ruby, PHP, Kotlin, Scala, Swift, Dart, Bash, SQL, Lua, R, Dockerfile, Docker Compose, Markdown, JSON, HTML, CSS, XML. Parsers extract Spring stereotypes and HTTP routes, FastAPI/Pydantic, ASP.NET, Rails, Laravel/Symfony, React/SwiftUI/Flutter widgets and more.
  • Pluggable embeddings. Jina (local TEI or hosted API), Voyage, OpenAI or Ollama.
  • CI-friendly. Streaming NDJSON reindex endpoints for pipelines and schedulers.
  • GitHub Enterprise Server support via GITHUB_API_URL.

🛠 MCP tools

ToolWhat it does
search_codeHybrid search, filterable by language, service and symbol type
find_symbolLook up a symbol by exact name, or by case-insensitive token match (exact=false)
find_usagesFind code that references a symbol
get_code_contextFetch the full source of a file, or one symbol in it, from GitHub
search_commitsNatural-language search over commit history
get_commitFull details of a commit, including changed files and diffs
reindexIndex one or all services (incremental by default; force to re-embed)
index_historyIndex git commit history
list_indexed_servicesIndexed services with file/chunk counts, languages and last-indexed time
index_statsQdrant collection statistics and configured services

Prompts: service_overview(service) walks the agent through an architectural overview of one service — HTTP entry points, domain types, framework conventions. system_design_overview does the whole system: service inventory, communication topology, shared data stores and cross-cutting concerns, with Mermaid diagrams.

🔌 Connecting other clients

The server speaks streamable HTTP at http://localhost:8090/mcp.

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "semcode": { "type": "http", "url": "http://localhost:8090/mcp" }
  }
}

Or from the command line:

code --add-mcp '{"name":"semcode","type":"http","url":"http://localhost:8090/mcp"}'
Codex CLI

Add to ~/.codex/config.toml:

[mcp_servers.semcode]
url = "http://localhost:8090/mcp"
Other MCP clients (Cursor, Windsurf, …)

Add an entry to the client's MCP config:

{
  "mcpServers": {
    "semcode": { "transport": "http", "url": "http://localhost:8090/mcp" }
  }
}
stdio — the client spawns the server

Needs Qdrant reachable (e.g. docker compose up -d qdrant) and dependencies installed (uv sync). GITHUB_TOKEN, QDRANT_URL and the embedding variables are still read from .env in the project directory.

claude mcp add semcode --transport stdio --env MCP_TRANSPORT=stdio \
  -- uv run --directory /path/to/semcode python -m server.main
{
  "mcpServers": {
    "semcode": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/semcode", "python", "-m", "server.main"],
      "env": { "MCP_TRANSPORT": "stdio" }
    }
  }
}
SSE — legacy transport

Only for clients that don't support streamable HTTP yet. Set MCP_TRANSPORT=sse in .env, start the server as usual, and point the client at http://localhost:8090/sse:

claude mcp add --transport sse semcode http://localhost:8090/sse

⚖️ How it compares

semcodeclaude-contextSerenagrep / file reads
ScopeMany remote GitHub reposLocal codebaseLocal projectLocal checkout
SearchHybrid (dense + BM25, RRF)Hybrid (dense + BM25)Symbol-level, via language serversExact text
Commit history✅ semantic search + diffs——git log
DeploymentShared team servicePer developerPer developer—
Needs an indexYes (Qdrant)Yes (Milvus / Zilliz Cloud)NoNo

When semcode doesn't help: a single small repo you already have open — your agent can read it directly, and editing-oriented tools like Serena are a better fit there. semcode pays off when the answer lives in code you don't have checked out.

📚 Documentation

The docs site covers everything this page leaves out:

🤝 Contributing

Contributions are welcome! See CONTRIBUTING.md for dev setup, tests, adding a language parser, and the Conventional Commits rules that drive releases.

License

MIT

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 semcode 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/semcode)

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