Opencode History MCP
UnclaimedMCP server for searching your local OpenCode conversation history
Set up this server
01 / Choose your client
02 / Before you connect
Authentication is not specified. Check the project instructions before connecting.
Project instructions03 / Add the configuration
claude mcp add --transport stdio 'opencode-history-mcp' -- 'uvx' 'opencode-history-mcp'04 / Check it in your client
Open your client’s MCP settings and confirm the server connects and lists its tools. A copied configuration does not confirm a working connection.
More in Databases
Browse the full directoryUnclaimed listing
Is this your MCP server?
This listing was auto-indexed from the public record. Claim it to edit the page, set compatibility and unlock growth tools. Takes under two minutes.
Claim this serverSecurity profile
Claimed and verified servers get a weekly static scan that shows what the code can reach: external services, environment variables, shell commands, agent configuration folders, plus any dependencies with known advisories. Claim this listing to get one. How the security profile works
7 of 7 tools
Documented tools (7)
From project documentation. A server handshake does not verify each tool’s description or behavior.
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.
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.
list_sessions
Browse sessions in a directory, sorted by date/messages/cost/tokens.
search_history
Full-text search (FTS5) over user prompts and assistant responses. Ranked by relevance + recency + activity.
Tool change history
FAQ
Questions about Opencode History MCP Server
- How do I connect Opencode History MCP Server to Claude?
- Run `claude mcp add opencode-history-mcp -- uvx opencode-history-mcp` in Claude Code, or add the same command and arguments under mcpServers in Cursor's mcp.json or Claude Desktop's claude_desktop_config.json, then restart the client. The blocks above are ready to paste.
- Is Opencode History MCP Server free?
- The listed licence is MIT. Check the upstream terms for permitted use and commercial requirements; a public repository does not by itself mean the software is free or open source. Connected APIs and hosted services may have separate charges.
- What can Opencode History MCP Server do?
- Opencode History MCP Server documents 7 tools to the agent, including find_related_work, find_sessions_by_file, get_session_detail. The descriptions above come from project documentation. A live handshake does not test individual tool behavior.