Rewind MCP server
Rewind exposes itself over the Model Context Protocol, so any MCP client — Claude Code, Cursor, Claude Desktop — can query an agent's own history.
Tools it exposes
search_history(query, limit)— semantic search across an agent's past events.find_similar_failures(context)— “have I failed on something like this before?” over runs a human flagged and forked.get_run(run_id)— the full timeline of a run.
Add it to Claude Code
Point the server at your Rewind API with REWIND_API_URL, then add it to .mcp.json:
{
"mcpServers": {
"rewind": {
"command": "npx",
"args": ["-y", "@rewind/mcp-server"],
"env": { "REWIND_API_URL": "https://your-api-url" }
}
}
}Cursor / VS Code
Cursor reads .cursor/mcp.json; VS Code reads .vscode/mcp.json (with a servers key instead of mcpServers). The command and env are the same.
Try it
Once connected, ask your agent: “what have my past sessions learned about the refund flow?” — it queries Rewind and returns a synthesis of past runs.