npm cursor-history-mcpstdioMITupdated 6mo ago
MCP server for browsing, searching, exporting, and backing up your Cursor AI chat history.
¿Qué puedes hacer con cursor 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
Instalación
Añade cursor history a tu cliente. Elige el que uses.
claude mcp add cursor-history-mcp -- npx -y cursor-history-mcpcodex mcp add cursor-history-mcp -- npx -y cursor-history-mcpamp mcp add cursor-history-mcp -- npx -y cursor-history-mcp{
"mcpServers": {
"cursor-history-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-history-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"cursor-history-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-history-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"cursor-history-mcp","command":"npx","args":["-y","cursor-history-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"cursor-history-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-history-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"cursor-history-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-history-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"cursor-history-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-history-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"cursor-history-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"cursor-history-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"cursor-history-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"cursor-history-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y cursor-history-mcpRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
8 herramientas
cursor history expone 8 herramientas a un agente conectado.
- 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
Puntuación
69 / 100
Buena
- Documentación25/25
- Mantenimiento13/25
- Confianza13/20
- Capacidad6/15
- Instalación12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 177 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 8 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Historial de versiones
| Versiones | Publicada |
|---|---|
| 0.2.4Última | 11 ene 2026 |