grepsense
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@grepsensefind functions related to user authentication"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
grepsense
Two-modal code search for AI coding agents. grepsense gives your agent two tools over MCP:
code_search— fast lexical search (regex/literal,repo:/file:/lang:filters) via Zoekt, the trigram engine behind Sourcegraph. Sub-10ms.semantic_code_search— meaning-based search via local embeddings (ChromaDB +all-MiniLM-L6-v2). Find code by what it does when you don't know the exact name.
It's a single Python MCP server (the embedding model loads once and stays warm)
in front of a self-hosted engine. Drop it next to any repo, docker compose up,
and point your agent at the URL.
Status: early. Works end-to-end; APIs and layout may still shift.
Quick start (Docker Compose — recommended)
git clone https://github.com/alaiba/grepsense && cd grepsense
cp .env.example .env
# edit .env → set GREPSENSE_TARGET=/absolute/path/to/your/project
docker compose up -d # starts Zoekt + ChromaDB + embedder, builds the
# index, and serves the MCP server on :8765Then register the server with your agent (one time):
# Claude Code
claude mcp add --transport http grepsense http://localhost:8765/mcpAgent | How to register |
Claude Code |
|
Codex | add a |
Cursor / others | add an MCP server in settings with URL |
The same running stack can serve many clients — run it on a shared host and point
everyone's agent at it. The MCP server only needs to reach Zoekt + ChromaDB; only
the indexer/embedder mount your source.
For Kubernetes/Helm deployments, the chart under charts/grepsense enables health probes by default via probes.enabled, and exposes component-level overrides for mcp.probes, chromadb.probes, zoektWeb.probes, zoektIndexer.probes, and embedder.probes.
MCP exposes lightweight HTTP health probes on the same port:
GET /healthzreturns 200 when the MCP process is alive.GET /readyzreturns 200 only when MCP can reach Zoekt and ChromaDB.
Related MCP server: Cortex
Alternative: native install (no Docker)
pipx install grepsense
cd /path/to/your/project
grepsense embed # incremental embed (needs a running ChromaDB)
grepsense embed --full # force full re-embed of all repos
grepsense embed --reset # wipe collections and re-baseline
grepsense status # per-repo embed state and collection size
grepsense serve --transport http # or stdio
claude mcp add grepsense -- grepsense serve # stdio registration(Native mode still needs a Zoekt webserver and a ChromaDB for the two backends; Compose is the batteries-included path.)
How it works
your code ──► zoekt-indexer ──► zoekt-web (:6070) ─┐
└─► embedder ──────► chromadb (:8000) ───┤
▼
grepsense MCP server (:8765)
code_search · semantic_code_search
stdio · streamable-HTTPSee docs/architecture.md for the design and docs/install.md for the full install/operations guide.
Configuration
Everything is env-driven (see .env.example); a grepsense.yaml can override
defaults (include/exclude globs, chunking, embedding model). Key vars:
Var | Purpose | Default |
| host path to index (Compose) | — (required) |
| published MCP port |
|
| embeddings namespace |
|
| sentence-transformers model |
|
| backend locations | localhost defaults |
License
MIT © Vasile Alaiba
This server cannot be deployed
Maintenance
Related MCP Connectors
Search GitHub, npm, PyPI, StackOverflow, ArXiv from one MCP — built for coding agents.
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Multi-engine search for AI agents. Trust scoring, local corpus, MCP-native. Self-hostable, BYOK.
Hosted code graph over MCP: exact callers, dependencies, and cross-repo blast radius for AI agents.
Related MCP Servers
- AlicenseAqualityCmaintenanceExposes Sourcegraph Zoekt code search to MCP-capable AI agents, enabling fast, indexed regex/symbol-aware code search over repositories.32MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI coding assistants to semantically search and retrieve relevant code patterns, documentation, and implementations from a codebase via MCP tools.7MIT
- FlicenseAqualityBmaintenanceProvides a code search service via MCP, allowing AI clients to perform fast, indexed searches across large codebases using Zoekt, with support for filters like repository, language, and path.2-
- AlicenseAqualityAmaintenanceLocal-first code intelligence for coding agents. Exposes precomputed SCIP navigation, Zoekt lexical search, cross-repo blast radius, and semantic search as MCP tools.94MIT