S2thend

Cursor History MCP

Community S2thend
Updated

MCP server for browsing, searching, and exporting Cursor AI chat history.

Cursor History MCP

npm versionnpm downloadsLicense: MITNode.jsTypeScript

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

MCP Server · Populars

MCP Server · New

    TalkToHumans

    LinkedIn MCP Server

    Safe LinkedIn MCP server for Claude, ChatGPT, Cursor & Codex. Your Agents read LinkedIn DMs, search your network, enrich profiles and draft messages you send.

    Community TalkToHumans
    bex-co

    Beancount.io Backend

    💰 Double-entry bookkeeping made easy — plain-text accounting for humans and AI agents. Polished iOS & Android app built with React Native + Expo.

    Community bex-co
    nkapila6

    mcpsurfr

    Local web search MCP server, formerly mcp-local-rag. Multi-engine deep research with on-device re-ranking. ✨ no API keys ✨

    Community nkapila6
    convex

    mcp.ts

    The open-source reactive database for app developers

    Community convex
    convex

    convex-backend

    The open-source reactive database for app developers

    Community convex