MCPcopy Index your code
hub / github.com/S2thend/cursor-history-mcp

github.com/S2thend/cursor-history-mcp @v0.2.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.4 ↗ · + Follow
92 symbols 216 edges 24 files 14 documented · 15% updated 4mo agov0.2.4 · 2026-01-11★ 331 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Cursor History MCP

cursor-history-mcp logo

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.

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

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

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 63
Interface 29

Languages

TypeScript100%

Modules by API surface

src/tools/year-pack/types.ts15 symbols
src/tools/year-pack/topics.ts13 symbols
src/tools/year-pack/sanitizer.ts13 symbols
src/tools/year-pack/analyzer.ts13 symbols
src/types.ts10 symbols
src/tools/year-pack/index.ts6 symbols
src/errors.ts4 symbols
src/tools/year-pack/prompt.ts3 symbols
src/tools/year-pack/stopwords.ts2 symbols
src/tools/backup.ts2 symbols
src/index.ts2 symbols
tsup.config.ts1 symbols

For agents

$ claude mcp add cursor-history-mcp \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page