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.3.1.tar.gz (134.2 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.3.1-py3-none-any.whl (59.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: colgrep_mcp-0.3.1.tar.gz
  • Upload date:
  • Size: 134.2 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.3.1.tar.gz
Algorithm Hash digest
SHA256 e03655f7df3689e9b9e6248028bc1198129d09471800d5ce0faa19120a020c78
MD5 e0777718f00b3573e3e3620cc2ce5001
BLAKE2b-256 cd7f964814817fb7e56f2f753895d69672dcc3d4ddf599242d6c655cb7bba9f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for colgrep_mcp-0.3.1.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.3.1-py3-none-any.whl.

File metadata

  • Download URL: colgrep_mcp-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 59.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.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 721718e394618c657a309ade7d7634668a4946a4582fb507c0012281fa50332b
MD5 1b1f055b4d101adb7b3b65d5b05f6da5
BLAKE2b-256 510677557e40eff8f2c7081de4663f52350f3980d305c16ee14c326b77c756f8

See more details on using hashes here.

Provenance

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

0.4.0

2 files

This release

0.3.1 This release

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