Repository avatar
AI Tools
v0.2.4
active

cursor-history

io.github.S2thend/cursor-history

MCP server for browsing, searching, exporting, and backing up your Cursor AI chat history

Documentation

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

ToolDescription
cursor_history_listList chat sessions with metadata
cursor_history_showView full conversation content
cursor_history_searchSearch across all sessions
cursor_history_exportExport session to Markdown or JSON
cursor_history_backupCreate backup of all history
cursor_history_restoreRestore from backup (destructive)
cursor_history_migrateMove/copy sessions between workspaces (destructive)
cursor_history_year_packGenerate 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