$ timeahead.in
/ servers/pypi/semble
pypi

semble

Fast and Accurate Code Search for Agents. Uses ~98% fewer tokens than grep+read

5k stars25k/wkupdated 0d agogithub ↗
93excellent
▣ Overview

What it does

Semble is a code search library optimized for agents that returns exact code snippets with semantic understanding, using 98% fewer tokens than traditional grep-and-read approaches. It indexes codebases in ~250ms on CPU and answers queries in ~1.5ms, with no external services or API keys required. The library achieves 0.854 NDCG@10 retrieval quality, on par with code-specialized transformer models at a fraction of the size.

Who it's for

Agents and developers building semantic code search into Claude Code, Cursor, or other MCP-compatible tools. Useful for anyone indexing and searching large codebases efficiently or integrating AI-powered code analysis into existing workflows.

Common use cases

  • Semantic code search across a codebase without grepping individual files or reading full file contents.
  • Integrating code search into Claude Code or Cursor as an MCP server for instant agent access to relevant snippets.
  • Finding similar code patterns and implementations using the find-related command.
  • Searching documentation and configuration files alongside code with the --content flag.
  • Reducing token usage in LLM prompts by returning only semantically relevant code chunks.

Setup pitfalls

  • High risk classification: reads and writes to the filesystem — ensure it only indexes codebases you intend to expose.
  • Respects .gitignore and .sembleignore files to filter indexed content; review these rules carefully to avoid unintended exclusions.
  • MCP server mode requires separate configuration per agent (Claude Code, Cursor, etc.) — manual setup if semble install doesn't detect your agent.
  • When searching git URLs, repositories are cloned on demand and cached locally; ensure sufficient disk space and network access.
▣ Score BreakdownMCPScore = Σ(raw × weight)
DimensionRawWeighted
Security
35%
100
35.0
Freshness
25%
100
25.0
Adoption
20%
90
18.0
Quality
10%
100
10.0
Trust
10%
50
5.0
Total
93.0
⚿ Capabilities & Risk Explainer
fs readfs writenetworkexecsecrets
◆ Risk level: high
fs read + fs write + network + exec + secrets active — can execute code, access credentials, and make external network calls.
⚙ Install config
Claude Desktop · Cursor · Windsurf · VS Code (Copilot) · Claude Code
add to your MCP client config:
{
  "mcpServers": {
    "semble-1": {
      "command": "uvx",
      "args": [
        "semble"
      ]
    }
  }
}
📈 Score historylast 40 snapshots
5/10/20266/21/2026 · 40 snapshots
⚙ Maintenance health
67/ 100 · is this project alive?
contributors (1y)7
top contributor share68%
releases (1y)18
last release0d ago
ci✓ passing
⛁ Raw data
weekly downloads25k
github stars5k
forks229
open issues7
license✓ present
readme length13187 chars
last publish0d ago
last commit0d ago
last updated7d ago
install verified✓ pass · 40d ago
owner of this server? claim your listing to get a verified badgeclaim →
🔔 Score drop alerts
get notified by email when this server's score drops 5+ points