Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

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

README.md

Cursor History MCP

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

<p align="center"> <img src="docs/cursor-history-mcp-logo.jpg" alt="cursor-history-mcp logo" width="200"> </p>

![npm version](https://www.npmjs.com/package/cursor-history-mcp) ![npm downloads](https://www.npmjs.com/package/cursor-history-mcp) ![License: MIT](https://opensource.org/licenses/MIT) ![Node.js](https://nodejs.org/) ![TypeScript](https://www.typescriptlang.org/)

![Install MCP Server](https://cursor.com/install-mcp?name=cursor-history&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImN1cnNvci1oaXN0b3J5LW1jcCJdfQ==)

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

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Search servers.