Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
S2thend avatar

Cursor History

  • 32 repo stars
  • Updated March 8, 2026
  • S2thend/cursor-history-mcp

Cursor History MCP is a MCP server that browses, searches, exports, and backs up your Cursor AI chat history for agents.

About

Cursor History MCP is a stdio Model Context Protocol server for browsing, searching, exporting, and backing up Cursor AI chat history. developers who live in Cursor accumulate critical decisions in threads that are hard to grep or share; this server lets Claude or other MCP clients pull prior prompts, fixes, and plans back into context without copy-paste archaeology. It pairs with agent-first development across build and operate when you are iterating on bugs or documenting what the model already tried. Install cursor-history-mcp from npm and point your agent at the server. It does not replace git history or issue trackers—it complements them with the narrative layer of AI sessions. Useful when you want searchable memory of how you shipped a feature or debugged a production incident with Cursor.

  • Browse and search local Cursor AI chat history from MCP tools
  • Export conversations for docs, handoffs, or archival
  • Backup flows to reduce loss when sessions or machines change
  • npm stdio cursor-history-mcp v0.2.4 with no required API keys in server.json

Cursor History by the numbers

  • Data as of Jul 7, 2026 (Skillselion catalog sync)
terminal
claude mcp add cursor-history-mcp -- npx -y cursor-history-mcp

Add your badge

Show developers this MCP server is listed on Skillselion. Paste this into your README.

Listed on Skillselion
repo stars32
Packagecursor-history-mcp
TransportSTDIO
AuthNone
Last updatedMarch 8, 2026
RepositoryS2thend/cursor-history-mcp

What it does

Let your agent search, export, and back up Cursor AI chat history so past debugging and design decisions stay reusable across sessions.

Who is it for?

Best when you rely on Cursor daily and want MCP-accessible search and backup of AI chat logs.

Skip if: Skip if you're on Claude Code-only workflows without Cursor, or anyone and needs cross-team cloud chat sync out of the box.

What you get

Your agent can query and export prior Cursor chats so you reuse decisions and avoid repeating the same debugging loops.

  • Searchable access to prior Cursor AI threads from agent sessions
  • Exported chat backups suitable for docs or incident notes

By the numbers

  • Server version 0.2.4
  • npm identifier cursor-history-mcp with stdio transport
README.md

Cursor History MCP

🇨🇳 中文文档 | 🇫🇷 Français | 🇪🇸 Español

cursor-history-mcp logo

npm version npm downloads License: MIT Node.js TypeScript

Install MCP Server

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

cursor-mcp-setup

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

Recommended MCP Servers

How it compares

Local Cursor chat archive MCP, not a cloud analytics dashboard or generic note-taking skill.

FAQ

Who is Cursor History MCP for?

Developers using Cursor who want their coding agent to search, export, and back up local AI chat history.

When should I use Cursor History MCP?

Use it when you need to recover an old fix, document what the AI suggested, or back up threads before reinstalling or switching machines.

How do I add Cursor History MCP to my agent?

Install cursor-history-mcp from npm, add the stdio MCP server in Cursor or Claude Code, and invoke browse or export tools against your local Cursor data.

Developer Toolsworkflownotes

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.