Skip to main content

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 on PATH (cargo install colgrep, or see the next-plaid README); the first run downloads the embedding model.
  • Python ≥ 3.11. With uv nothing else: uvx fetches 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.
index_prune Remove orphaned, machine-state, shadowed and (opt-in) cold indexes; dry run by default.
list_indexes Every indexed project on this machine, with size, last use, path-exists and shadowing.
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, housekeeping) come with it; the guide resource teaches the agent how to compose queries.

License

GNU Affero General Public License v3.0 or later.

Metadata

Release files for colgrep-mcp 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for colgrep-mcp 0.5.2
File Size Uploaded Provenance Actions
colgrep_mcp-0.5.2.tar.gz 143.4 kB With provenance Details for colgrep_mcp-0.5.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for colgrep-mcp 0.5.2
File Interpreter ABI Platform Actions
colgrep_mcp-0.5.2-py3-none-any.whl Python 3 none any Details for colgrep_mcp-0.5.2-py3-none-any.whl

Total release size: 212.9 kB

Release files / colgrep_mcp-0.5.2.tar.gz

Download URL colgrep_mcp-0.5.2.tar.gz
Size 143.4 kB
Tags Source
SHA-256 checksum
How to use checksums
648d4433e2d0bdb45aeb0442de820b5a0d04998c02d05b5c59a066f93606dd9d
BLAKE2b-256 checksum
How to use checksums
629ce33cba15107735861c1a4d67edd5c1d73991926c397d83c1d8b80dd349d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Release files / colgrep_mcp-0.5.2-py3-none-any.whl

Download URL colgrep_mcp-0.5.2-py3-none-any.whl
Size 69.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55786118c14788b65cdb4596fbf6d1eedd10e8c1a50a826f96849b1394f6becd
BLAKE2b-256 checksum
How to use checksums
e3dee884e0b62957efdeb4b63535ef650067668e4a5a1bf2afe580bf49a44d69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

Security for colgrep-mcp 0.5.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for colgrep_mcp-0.5.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page