Install
$ agentstack add mcp-tony-agentgrep ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ● Filesystem access Used
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
agentgrep
[](https://pypi.org/project/agentgrep/) [](https://pypi.org/project/agentgrep/) [](LICENSE)
Read-only search for local AI agent prompts and opt-in conversations across Codex, Claude Code, Cursor, Gemini, Antigravity, Grok, Pi, OpenCode, and VS Code.
agentgrep provides a CLI and an MCP server over the same discovery + parsing layer:
- A terminal CLI (
agentgrep) with a Textual TUI for interactive
browsing of normalized records.
- An MCP server (
agentgrep-mcp) that exposes search, discovery,
catalog, and validation tools to any client that speaks Model Context Protocol.
> Pre-alpha. APIs may change.
Install
$ uvx agentgrep --help
Other install methods (pipx, uv add, pip install) and full setup snippets live in the installer widget on agentgrep.org/cli/.
CLI quickstart
Search your prompts across every configured agent — ranked, deduped, newest first:
$ agentgrep search "deploy"
Search prompts and conversations together in one sweep:
$ agentgrep search "deploy" --scope all
Prefer ripgrep-shaped flags? grep mirrors rg / ag against the same records:
$ agentgrep grep "deploy" --scope conversations
Stream JSON so a non-MCP agent or shell pipeline can consume the results:
$ agentgrep find --json
Open the read-only Textual explorer, seeded with a query:
$ agentgrep ui "deploy"
--json and --ndjson make every command pipe-friendly, and any search-shaped subcommand takes --ui to hand the same query to the explorer (e.g. agentgrep grep "deploy" --ui). Agents that don't speak MCP can drive the CLI directly; see for the per-subcommand reference.
MCP server: quickest setup
In Claude Code:
$ claude mcp add agentgrep -- uvx --from agentgrep agentgrep-mcp
For Claude Desktop / Codex / Cursor / Gemini snippets, see .
Library quickstart
from pathlib import Path
import agentgrep
backends = agentgrep.select_backends()
query = agentgrep.SearchQuery(
terms=("hello",),
scope="all",
any_term=False,
regex=False,
case_sensitive=False,
agents=agentgrep.AGENT_CHOICES,
limit=10,
)
for record in agentgrep.run_search_query(Path.home(), query, backends=backends):
print(record.agent, record.title or record.path)
Links
- Documentation:
- Source:
- Issues:
- Changelog: [CHANGES](CHANGES)
- License: [MIT](LICENSE)
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: tony
- Source: tony/agentgrep
- License: MIT
- Homepage: https://agentgrep.org
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.