A local MCP (Model Context Protocol) server that lets AI coding agents search your past OpenCode conversations — before they start exploring files or re-doing work you already did.
opencode-history-mcp is an MCP project maintained in the crottolo/opencode-history-mcp repository. The maintainer describes its purpose as “A local MCP (Model Context Protocol) server that lets AI coding agents search your past OpenCode conversations — before they start exploring files or re-doing…”. Read the project documentation for the complete scope.
The documented pypi package is opencode-history-mcp. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.
Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.
Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.
| Tool | What it does |
|---|---|
| search_history | Full-text search (FTS5) over user prompts and assistant responses. Ranked by relevance + recency + activity. |
| find_related_work | Higher-precision match on session titles and original task descriptions. Best first call for "have we done this before?" |
| find_sessions_by_file | Find every session that modified or mentioned a specific file. |
| list_sessions | Browse sessions in a directory, sorted by date/messages/cost/tokens. |
| get_session_detail | Full metadata for one session: task, files touched, cost, tokens, sub-agent count. |
| get_session_messages | Read the actual paginated message history of a session. |
| get_stats | Aggregate stats: session/message counts, cost, time range, activity distribution. |
{
"mcpServers": {
"opencode-history": {
"command": "uvx",
"args": [
"opencode-history-mcp"
]
}
}
}From the project documentation. Replace placeholders and example paths before connecting.
Read, search and edit files inside allowed directories with the Model Context Protocol reference Filesystem server.
Retrieve version-aware library documentation and code examples with Context7 MCP, using resolve-library-id and query-docs.
Bridge Claude with OpenAI Codex CLI for AI-to-AI collaboration, code review, and second opinions
MCP server that provides architecture design expertise to AI coding agents
A Model Context Protocol (MCP) server for analyzing code dependencies
Heimdall bridges Claude Desktop and your macOS system, giving AI the power to monitor hardware, control applications, and interact with your workflow.