MCP server for browsing, searching, and exporting Cursor AI chat history
npm install cursor-history-mcp






MCP server for browsing, searching, exporting, and backing up your Cursor AI chat history.
Bring your Cursor AI chat history directly into Claude. Search past conversations, export sessions, create backups, and generate year-in-review reports—all through natural language. Built on the Model Context Protocol for seamless AI assistant integration.
Free, open-source, and MIT licensed. Built by the community, for the community.
No installation required! Run directly via npx:
``bash`
npx cursor-history-mcp
Add to your Claude Code MCP settings:
`json`
{
"mcpServers": {
"cursor-history": {
"command": "npx",
"args": ["-y", "cursor-history-mcp"]
}
}
}
Add to your Claude Desktop configuration (~/.claude/claude_desktop_config.json):
`json`
{
"mcpServers": {
"cursor-history": {
"command": "npx",
"args": ["-y", "cursor-history-mcp"]
}
}
}
| Tool | Description |
|------|-------------|
| cursor_history_list | List chat sessions with metadata |cursor_history_show
| | View full conversation content |cursor_history_search
| | Search across all sessions |cursor_history_export
| | Export session to Markdown or JSON |cursor_history_backup
| | Create backup of all history |cursor_history_restore
| | Restore from backup (destructive) |cursor_history_migrate
| | Move/copy sessions between workspaces (destructive) |cursor_history_year_pack` | Generate year-in-review data package with stats, topics, and prompt template |
|
After configuring, ask your AI assistant:
- "List my Cursor chat sessions"
- "Show me session #1"
- "Search my Cursor history for 'authentication'"
- "Export session #1 as markdown"
- "Backup my Cursor chat history"
- Node.js 20+
- Cursor IDE installed with existing chat history
Contributions are welcome! Whether it's bug reports, feature requests, documentation improvements, or code contributions—all PRs and issues are appreciated.
- Open an issue
- Submit a pull request
MIT