loading…
Search for a command to run...
loading…
MCP server for browsing, searching, exporting, and backing up your Cursor AI chat history directly into Claude via natural language.
MCP server for browsing, searching, exporting, and backing up your Cursor AI chat history directly into Claude via natural language.
🇨🇳 中文文档 | 🇫🇷 Français | 🇪🇸 Español
npm version npm downloads License: MIT Node.js TypeScript
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.
There are other Cursor history tools out there (like the Python-based Cursor-history-MCP). Here's what makes this one different:
| Feature | cursor-history-mcp (this project) | Other Solutions |
|---|---|---|
| 📦 Setup | ✅ npx cursor-history-mcp - zero install |
❌ Docker, Python, dependencies |
| ⚡ Speed | ✅ Instant - direct SQLite reads | ❌ Slow - requires LLM vectorization |
| 🔍 Search | ✅ Grep-style text matching - precise & stable | ❌ Vector retrieval - unpredictable results |
| 🤖 LLM Required | ✅ No - works offline | ❌ Yes - needs Ollama/embeddings |
| 🛠️ Language | ✅ TypeScript (type-safe) | ⚠️ Python |
| 💾 Backup/Restore | ✅ Built-in | ❌ Not available |
| 🚚 Migration | ✅ Move sessions between workspaces | ❌ Not available |
| 📋 Dependencies | ✅ Minimal (just Node.js) | ❌ Docker, LanceDB, Ollama, FastAPI |
npx - no Docker containers, no Python environments, no API keys, no LLM setup.No installation required! Run directly via npx:
npx cursor-history-mcp

Add to your Claude Code MCP settings:
{
"mcpServers": {
"cursor-history": {
"command": "npx",
"args": ["-y", "cursor-history-mcp"]
}
}
}
Add to your Claude Desktop configuration (~/.claude/claude_desktop_config.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 |
Generate a personalized annual report from your Cursor AI chat history — discover your coding patterns, favorite topics, and development journey.
| 📊 Chat Stats | Total questions, active months, monthly activity |
| 🏷️ Topic Discovery | Auto-detected coding topics and interests |
| 📈 Trend Tracking | How your focus shifted throughout the year |
| 🔑 Keywords | Your most-used terms and phrases |
| 🔒 Privacy Safe | Sensitive data automatically masked |
| 📝 LLM Prompt | Ready-to-use prompt for a polished report |
After configuring, ask your AI assistant:
Contributions are welcome! Whether it's bug reports, feature requests, documentation improvements, or code contributions—all PRs and issues are appreciated.
MIT
Run in your terminal:
claude mcp add cursor-history-mcp -- npx Security
Low riskAutomated heuristic from public metadata — not a security guarantee.