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.
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

colgrep_mcp-0.4.0.tar.gz (134.4 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.4.0-py3-none-any.whl (59.7 kB view details)

Uploaded Python 3

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

Hashes for colgrep_mcp-0.4.0.tar.gz
Algorithm Hash digest
SHA256 b3048614fb3448c0dfb1600af93183826ad97fa0a28971de19bfd3e61bc0637d
MD5 4fc05e3593a977aa30417be526708fab
BLAKE2b-256 5afc7e17419474cb6dc4005eb0f49a9b866a0f26358dd39ab44ef0ed097f89fc

See more details on using hashes here.

Provenance

The following attestation bundles were made for colgrep_mcp-0.4.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.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

Hashes for colgrep_mcp-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cef50b8596e2a2cfff0d0d4d7efeb2f7b3829993e9275f1b0b564981f58833cc
MD5 d1e4bd2ddf297e26d1a0ace284b1a378
BLAKE2b-256 b67a7f91aafec958cc0d4e0189bc9b608cce7de5f4fa539764be6b13ab30c2e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for colgrep_mcp-0.4.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

0.5.0

2 files

This release

0.4.0 This release

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