colgrep-mcp
Semantic and hybrid code search for coding agents, as a stdio MCP server wrapping the colgrep CLI. colgrep indexes a repository into code units (functions, classes, methods, Markdown sections) and ranks them with a ColBERT late-interaction model fused with keyword search; this package puts that in the agent's tool list, where it gets used instead of grep.
The full landing page — plugin installs for Claude Code, Codex and Agent Plugins 1.0 clients, troubleshooting, development — is the repository README.
Requirements
colgrep≥ 1.6 onPATH(cargo install colgrep, or see the next-plaid README); the first run downloads the embedding model.- Python ≥ 3.11. With
uvnothing else:uvxfetches Python if needed.
Run
One-off, resolved and cached by uvx on first start:
uvx colgrep-mcp
Installed once as a plain executable, with no per-start resolution:
uv tool install colgrep-mcp # or: pipx install colgrep-mcp
colgrep-mcp
Either command is a stdio MCP server; register it in your client as such:
{
"mcpServers": {
"colgrep": {
"command": "uvx",
"args": ["colgrep-mcp"],
"env": { "COLGREP_MCP_ROOT": "/path/to/the/repo/to/search" }
}
}
}
COLGREP_MCP_ROOT is the project searched when a tool call names no path; without it the server falls back to the client's first root, then to its working directory. COLGREP_MCP_BINARY names the colgrep binary when it is not on PATH. The other variables (COLGREP_MCP_TIMEOUT, COLGREP_MCP_TEXT_BUDGET, COLGREP_MCP_LOG_LEVEL) are documented in the repository README.
What the agent gets
Tools
| Tool | Purpose |
|---|---|
search |
Ranked semantic or hybrid search over code units, with self-describing hit_ids. |
find_files |
Which files are about a topic, ranked and de-duplicated. |
expand |
Full source of hits already returned, by hit_id. |
index_status |
Whether a path is indexed, with which model, where, how big. |
index_build |
Build or refresh an index now, with progress notifications. |
index_clear |
Delete a project's index, after confirmation. |
list_indexes |
Every indexed project on this machine. |
doctor |
Environment self-check: binary, version, settings, default root. |
Resources (colgrep://guide, colgrep://settings, colgrep://indexes, colgrep://status/{+path}, colgrep://errors) and prompts (explore, locate, impact) come with it; the guide resource teaches the agent how to compose queries.
License
GNU Affero General Public License v3.0 or later.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file colgrep_mcp-0.4.0.tar.gz.
File metadata
- Download URL: colgrep_mcp-0.4.0.tar.gz
- Upload date:
- Size: 134.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b3048614fb3448c0dfb1600af93183826ad97fa0a28971de19bfd3e61bc0637d
|
|
| MD5 |
4fc05e3593a977aa30417be526708fab
|
|
| BLAKE2b-256 |
5afc7e17419474cb6dc4005eb0f49a9b866a0f26358dd39ab44ef0ed097f89fc
|
Provenance
The following attestation bundles were made for colgrep_mcp-0.4.0.tar.gz:
Publisher:
publish.yml on CrackingShells/colgrep-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
colgrep_mcp-0.4.0.tar.gz -
Subject digest:
b3048614fb3448c0dfb1600af93183826ad97fa0a28971de19bfd3e61bc0637d - Sigstore transparency entry: 2816504894
- Sigstore integration time:
-
Permalink:
CrackingShells/colgrep-mcp@b439a0bf2a638958a0a0fc4b53a8a75846e19d57 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/CrackingShells
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b439a0bf2a638958a0a0fc4b53a8a75846e19d57 -
Trigger Event:
push
-
Statement type:
File details
Details for the file colgrep_mcp-0.4.0-py3-none-any.whl.
File metadata
- Download URL: colgrep_mcp-0.4.0-py3-none-any.whl
- Upload date:
- Size: 59.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cef50b8596e2a2cfff0d0d4d7efeb2f7b3829993e9275f1b0b564981f58833cc
|
|
| MD5 |
d1e4bd2ddf297e26d1a0ace284b1a378
|
|
| BLAKE2b-256 |
b67a7f91aafec958cc0d4e0189bc9b608cce7de5f4fa539764be6b13ab30c2e0
|
Provenance
The following attestation bundles were made for colgrep_mcp-0.4.0-py3-none-any.whl:
Publisher:
publish.yml on CrackingShells/colgrep-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
colgrep_mcp-0.4.0-py3-none-any.whl -
Subject digest:
cef50b8596e2a2cfff0d0d4d7efeb2f7b3829993e9275f1b0b564981f58833cc - Sigstore transparency entry: 2816504984
- Sigstore integration time:
-
Permalink:
CrackingShells/colgrep-mcp@b439a0bf2a638958a0a0fc4b53a8a75846e19d57 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/CrackingShells
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b439a0bf2a638958a0a0fc4b53a8a75846e19d57 -
Trigger Event:
push
-
Statement type: