Cursor History MCP
Best MCP server for browsing, searching, backup, and exporting Cursor AI chat history.
Cursor History MCP
๐จ๐ณ ไธญๆๆๆกฃ | ๐ซ๐ท Franรงais | ๐ช๐ธ Espaรฑol
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.
Why This Project?
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 |
Key Advantages
- Blazing Fast: No embedding or vectorization step. Reads directly from Cursor's native SQLite database, so results are instant.
- Grep-Style Search: Uses direct text matching instead of vector retrieval. More lightweight, predictable, and stable for most use casesโno hallucinated results, no embedding drift, and exact matches every time.
- Zero Configuration: Run with
npx- no Docker containers, no Python environments, no API keys, no LLM setup. - Works Offline: Everything runs locally without any external services or AI models.
- Data Portability: Full backup, restore, and cross-workspace migration capabilities to keep your chat history safe and portable.
- Lightweight: ~50KB package vs multi-GB Docker images with vector databases.
Installation
No installation required! Run directly via npx:
npx cursor-history-mcp
Configuration
Cursor

Claude Code
Add to your Claude Code MCP settings:
{
"mcpServers": {
"cursor-history": {
"command": "npx",
"args": ["-y", "cursor-history-mcp"]
}
}
}
Claude Desktop
Add to your Claude Desktop configuration (~/.claude/claude_desktop_config.json):
{
"mcpServers": {
"cursor-history": {
"command": "npx",
"args": ["-y", "cursor-history-mcp"]
}
}
}
Available Tools
| 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 |
๐ Year in Review
Generate a personalized annual report from your Cursor AI chat history โ discover your coding patterns, favorite topics, and development journey.
What You Get
| ๐ 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 |
Try It
- "Generate my 2025 Cursor year in review"
- "Create a year pack for ~/myapp"
- "Generate my 2025 year in review in English"
Usage Examples
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"
Requirements
- Node.js 20+
- Cursor IDE installed with existing chat history
Contributing
Contributions are welcome! Whether it's bug reports, feature requests, documentation improvements, or code contributionsโall PRs and issues are appreciated.
License
MIT
Server Terkait
Scout Monitoring MCP
sponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
sponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Advanced Unity MCP Integration
An MCP server for Unity, enabling AI assistants to interact with projects in real-time, access scene data, and execute code.
vHAL MCP Server
Search Android Vehicle Hardware Abstraction Layer (vHAL) documentation and source code from a local repository clone.
OpenGrok
OpenGrok MCP Server is a native Model Context Protocol (MCP) VS Code extension that seamlessly bridges the gap between your organization's OpenGrok indices and GitHub Copilot Chat. It arms your AI assistant with the deep, instantaneous repository context required to traverse, understand, and search massive codebases using only natural language.
Game Asset Generator
Generate 2D and 3D game assets using AI models hosted on Hugging Face Spaces.
gopls-mcp
The essential MCP server for Go language: Exposing compiler-grade semantics to AI Agents and LLM for deterministic code analysis and minimal token usage.
Interactive Feedback MCP
Provides interactive user feedback and command execution for AI-assisted development.
n8n-MCP
Provides AI assistants with access to n8n node documentation, properties, and operations.
MCPStore
An enterprise-grade MCP tool management solution for simplifying AI Agent tool integration, service management, and system monitoring.
Sugar
Autonomous AI development system for Claude Code with task queue management and workflow automation.
Hyperlane MCP Server
Integrates with the Hyperlane protocol for cross-chain messaging and smart contract interactions.