MCP

agentgrep’s MCP server exposes a read-only search surface over stdio. Search opens fast prompt-history stores by default. Set effort="targeted" to search a bounded set of conversations selected from prompt evidence, or effort="exhaustive" to search every readable conversation. scope separately controls returned record kinds. The server does not mutate local agent stores, open SQLite in write mode, or execute arbitrary shell commands.

With targeted or exhaustive effort and omitted scope, MCP infers scope="all". It does not broaden an explicit prompt scope: targeted effort with scope="prompts" is rejected. Search is cursorless and keeps its omitted-result-limit default of 20.

Install

Pick a client, install method, and config scope. The snippet copies directly into your terminal or config file.

With uvx installed:

$ claude mcp add agentgrep -- uvx --from agentgrep agentgrep-mcp

Config file: ~/.claude.json (this project)

Tools

Invoke search and discovery.

Tools
Resources

Read capabilities and source inventories.

Resources
Prompts

Reusable client-side search recipes.

Prompts
API Reference

Payload models, server factory, and MCP helpers.

API Reference

Search Tool

search readonly

Discovery readonly

find readonly