AgentIndex icon
AgentIndex
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Submit Tool
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompare
Home/
Code Assistant/
semble
semble logo

semble

Active·★ 6.5k·MIT·Updated 2026-11-08

Semble is a code search library built for agents. It returns the exact code snippets an agent needs, aiming to cut both token use and waiting time on every step. In Python you index a local directory with `SembleIndex.from_path` or a remote repository with `from_git`, search with a natural-language or code query, and call `find_related` to get code similar to a result; each result carries the file path, line range and content. Install with `pip install semble` or `uv add semble`.

It can also run as an MCP server (set up for Claude Code, Codex, OpenCode and Cursor, requiring uv) with two tools, search and find_related; repositories are cloned and indexed on demand and indexes are cached for the session. Files are split into code-aware chunks and scored by two retrievers, then fused and reranked with code-aware signals: adaptive weighting for symbol-like queries, boosts for chunks that define the queried symbol, identifier stems, file coherence, and penalties for tests, legacy shims, examples and type stubs. Because the embedding model is static, no transformer runs at query time. The README reports about 250 ms to index a repo and 1.5 ms per query on CPU with NDCG@10 of 0.854 on about 1,250 queries across 63 repositories in 19 languages; the project is MIT licensed.

© 2026 AgentIndex.app|Built by a 10-year iOS Developer.
Best by use caseAboutContactAdvertisePrivacy PolicyTerms of UseQYSGitHubBuy me a coffee ☕

Browse by Category

MCP ServersCode AssistantWorkflow AutomationRAG / Knowledge BaseMulti-AgentBrowser AutomationLLM InfraDev ToolingObservability

Not affiliated with Anthropic, OpenAI or Microsoft.

Guides

Hands-on tested · Tested on 2026-10-10 with semble 0.6.2.

Setup: macOS, Python virtualenv, run on a copy of the AgentIndex frontend (184 source files)

Commands run

python3 -m venv .venv && .venv/bin/pip install semble==0.6.2
semble search "<question>" <repo>

What we saw

  • Install took about 28 seconds. Indexing 184 source files took 4.8 seconds; each query took 1.3 to 6.6 ms.
  • We asked 6 real questions about our own code. 4 returned the right file at rank 1, 1 at rank 2, and 1 missed ("fetch comments from the backend API" only found the right component after rephrasing).
  • It ignores symlinks ("No supported files found"), so point it at a real copy of the code.

Data as of 2026-11-22.

License
MIT
Latest release
v0.7.3 · 2026-11-08
Last commit
2026-11-08
Contributors
10
Forks
295
Open issues and PRs
7
First published
2026-04-06
PyPI package
semble 0.7.3 · 24,492 downloads last week

Source: GitHub, npm and PyPI public APIs.

#agents#code-search#embeddings#mcp#mcp-server#mcp-servers#model-context-protocol#retrieval
$ Install
$ pip install semble
↗ Visit site★ GitHub
01

Features

01Fast performance on CPU (indexes in ~250ms, queries in ~1.5ms)
02High accuracy (NDCG@10 of 0.854), comparable to transformer models
03Supports indexing local paths and remote Git repositories
04Functions as an MCP server for various AI agents
05Zero setup, no API keys, GPU, or external services required
02

Why choose it

+Returns precise code chunks with file path and line range, indexing a repo in about 250 ms and answering in about 1.5 ms on CPU.
+Hybrid retrieval with code-aware reranking (definition boosts, identifier stems, noise penalties for tests and stubs).
+Works on local paths or git URLs, and can run as an MCP server for Claude Code, Codex, OpenCode and Cursor.
+No GPU or transformer at query time, and MIT licensed.
03

Trade-offs

!The accuracy and speed figures come from the project's own benchmark of about 1,250 queries, so results on your codebase may differ.
!A static embedding model trades some semantic depth for speed; the README's own table shows a transformer-based hybrid scoring slightly higher (0.862 versus 0.854).
!The MCP server needs uv installed, and it only offers two tools (search and find_related).
04

Maintenance check

ActiveChecked: 2026-11-07
Last commit
2026-11-03
Commits, last 90 days
33
Releases, last 90 days
8
Latest release
v0.7.2 (2026-11-03)
Open issues
5
Recent issues with at least one comment
20/25
Commits per week, last 12 weeks
Commits per week, last 12 weeks: 0, 2, 2, 7, 1, 4, 1, 6, 4, 1, 2, 1

Oldest week on the left; the latest four weeks are orange. Source: GitHub commit activity.

Status rule: archived on GitHub = Archived; last commit within 90 days = Active; 91 to 365 days = Slowing; older = Stale. All figures come from the GitHub API on the date shown.

05

Compatibility

Claude Code
Claude Code
Verified via docs
Codex
Codex
Verified via docs
OpenCode
OpenCode
Verified via docs
Cursor
Cursor
Verified via docs
06

Quick start

1
$ pip install semble
07

Use cases

↳Enhancing AI agents (e.g., Claude Code, Cursor, Codex) with fast and accurate code search capabilities
↳Searching local or remote codebases for specific code snippets based on natural language or code queries
↳Finding semantically similar code sections related to a given file path and line number
08

Alternatives

⚡Top VS:
VScodesearch★106→VSken★34→VSpm-copilot★30→VS

Comments

Log in to leave a comment

No comments yet. Be the first!

On this page
01Features02Why choose it03Trade-offs04Maintenance check05Compatibility06Quick start

Most discussed open issues

  • #290 Shipped subagent definitions are CLI-only for every client: subagents can't use the MCP server semble install registers3 comments · 2026-10-08
  • #325 Indexing crashes in sandboxed environments: ProcessPoolExecutor can't read SC_SEM_NSEMS_MAX2 comments · 2026-11-07
  • #323 Parent .gitignore rules are ignored when searching a subdirectory of a repository1 comments · 2026-11-06
  • #232 Awesome!1 comments · 2026-07-25

Issue titles are quoted from GitHub. Open the link to check whether a problem still applies to the version you use.

mcp-ts-core
★155
→
codesearch logo
codesearch★ 106
Fast, local semantic code search as MCP server for OpenCode and Claude Code. Rust-powered, fully offline.
VSCompare→
ken logo
ken★ 34
Fast hybrid code search for agents. Pure Go, drop-in MCP-compatible with semble.
VSCompare→
pm-copilot logo
pm-copilot★ 30
MCP server that triangulates customer support tickets and feature requests to help PMs decide what to build next
VSCompare→
mcp-ts-core logo
mcp-ts-core★ 155
TypeScript template for building Model Context Protocol (MCP) servers. Ships with declarative tools/resources, pluggable auth, multi-backend storage, OpenTelemetry observability, and first-class support for both local and edge (Cloudflare Workers) runtimes.
VSCompare→
Matryoshka logo
Matryoshka★ 152
MCP server for token-efficient large document analysis via the use of REPL state
VSCompare→
MediaWiki-MCP-Server logo
MediaWiki-MCP-Server★ 150
Model Context Protocol (MCP) Server to connect your AI with any MediaWiki
VSCompare→
mcp-memory-libsql logo
mcp-memory-libsql★ 87
🧠 High-performance persistent memory system for Model Context Protocol (MCP) powered by libSQL. Features vector search, semantic knowledge storage, and efficient relationship management - perfect for AI agents and knowledge graph applications.
VSCompare→
pubcrawl logo
pubcrawl★ 15
A peer-reviewed pub crawl through the literature — MCP server for PubMed & biomedical literature search
See all alternatives →
07
Use cases
08Alternatives
MinishLab /
semble
↗

Fast code search for agents: hybrid retrieval on CPU in about a millisecond

6.5k295MIT
Last commit2w ago
StatusActive
CategoryCode Assistant
Contributors10
Latest releasev0.7.3
Links
Documentation↗Discussion↗Issues↗Releases↗
Cloud Infrastructure
Ad

Deploy on DigitalOcean

Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.

Claim $200 Free Credit