Skip to content

Summary

Local code search MCP server for agents: natural-language queries return just the relevant snippets from a repo, on CPU with no API keys, using far fewer tokens than grep and file reads.

Features

  • search tool: natural-language or code queries over a local path or git URL, several repos at once
  • find_related tool: code similar to a given file and line
  • Runs on CPU with no API keys, GPU or external services
  • Indexes cached and re-built automatically when files change; honours .gitignore and .sembleignore
  • Code, docs or config content modes
  • Also ships as a CLI and Python library; one-command setup for Claude Code, Codex and others

Installation

Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.

Any MCP-compatible agent

Most agents (Claude, Cursor, Windsurf, VS Code, and more) read a standard mcpServers configuration.

  1. Open your agent's MCP configuration file.
  2. Merge the snippet below into it.
  3. Restart the agent — the "Semble" tools will be available.
{
  "mcpServers": {
    "semble": {
      "command": "uvx",
      "args": [
        "--from",
        "semble[mcp]",
        "semble"
      ]
    }
  }
}

Description

Semble is an open-source code search engine from MinishLab built for coding agents. Instead of grepping and reading whole files, the agent asks a natural-language or code question ("how is authentication handled?") and gets back only the matching chunks with file paths and line ranges. Indexes are built on demand, cached, and refreshed automatically when local files change; the project reports that a typical repository indexes in about half a second and answers queries in milliseconds, entirely on CPU.

The MCP server exposes two tools. search takes a query plus a local path or an https git URL (or a list of them, to search several related repositories as one corpus) and a content type of code, docs, config or all. find_related takes a file and line number and returns semantically similar code elsewhere. On its own benchmark of about 1,250 queries over 63 repositories in 19 languages, MinishLab reports retrieval quality on par with a 137M-parameter code embedding model while indexing far faster, and roughly 99% fewer tokens than grep plus read at comparable recall.

There is no API key, GPU or external service: the only network use is a one-time download of the embedding model from Hugging Face. Semble is a Python package installed with uv; semble install can wire the MCP server into Claude Code, Codex, OpenCode and other agents, or you add uvx --from "semble[mcp]" semble to any client by hand. The same engine is available as a CLI and a Python library. MIT licence.

Related MCP Servers

See all Semble alternatives
New

Zilliz's MCP server for semantic code search: it indexes a whole repository into Milvus or Zilliz Cloud and hands coding agents only the relevant chunks.

Self-hosted documentation retrieval for coding agents — index any library's docs from the web, GitHub, npm, PyPI or local files and query them by exact version. An open-source Context7 alternative.

MCP: Codanna

by Codanna

Local code intelligence MCP server that returns symbol context, call graphs and impact analysis in a single call — 15 languages, indexed on your own machine.

MCP: MCP Memory Service

by Heinrich Krupp (doobidoo)

New

Self-hosted, open-source persistent memory for AI agents over MCP and REST: semantic plus keyword search with local ONNX embeddings, a shared knowledge graph, consolidation, and SQLite, Cloudflare or Milvus backends.

Browse all MCP servers →