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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

colgrep_mcp-0.5.0.tar.gz (143.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

colgrep_mcp-0.5.0-py3-none-any.whl (69.5 kB view details)

Uploaded Python 3

File details

Details for the file colgrep_mcp-0.5.0.tar.gz.

File metadata

  • Download URL: colgrep_mcp-0.5.0.tar.gz
  • Upload date:
  • Size: 143.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for colgrep_mcp-0.5.0.tar.gz
Algorithm Hash digest
SHA256 880cc4d1704d6cdc639be9d07c393f132f752f379a9bce99fb512fcc4c555a44
MD5 bec3fd0d39c85cb07489bf5a33de15ba
BLAKE2b-256 02f77ebccaa454ae69a9ac900350e4f9e73f2be9d64a89290f312779f0d1b0bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for colgrep_mcp-0.5.0.tar.gz:

Publisher: publish.yml on CrackingShells/colgrep-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file colgrep_mcp-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: colgrep_mcp-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 69.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for colgrep_mcp-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8eb9d2fb6dfc28f84d2888bc587b336c75048a0d2145df954a08d84f5fec9029
MD5 c595344e07d5d1259104a9c84cea74e7
BLAKE2b-256 cc3208ef6c7835fb14ed5bfe449eca9043e557a3d5a989016bbdaa703b747805

See more details on using hashes here.

Provenance

The following attestation bundles were made for colgrep_mcp-0.5.0-py3-none-any.whl:

Publisher: publish.yml on CrackingShells/colgrep-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 files

0.4.0

2 files

0.3.1

2 files

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