Sponsored by Deepsite.site

Cursor History

Created By
S2thend25 days ago
Bring your Cursor AI chat history directly into Claude. Search past conversations, export sessions, create backups, and only MCP to migrate chat sessions to new project dir and generate year-in-review reports—all through natural language. Built on the Model Context Protocol for seamless AI assistant integration.
Content

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.

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:

Featurecursor-history-mcp (this project)Other Solutions
Setupnpx cursor-history-mcp - zero installDocker, Python, dependencies
SpeedInstant - direct SQLite readsSlow - requires LLM vectorization
SearchGrep-style text matching - precise & stableVector retrieval - unpredictable results
LLM RequiredNo - works offlineYes - needs Ollama/embeddings
LanguageTypeScript (type-safe)Python
Backup/RestoreBuilt-inNot available
MigrationMove sessions between workspacesNot available
DependenciesMinimal (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

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

Server Config

{
  "mcpServers": {
    "cursor-history": {
      "command": "npx",
      "args": [
        "-y",
        "cursor-history-mcp"
      ]
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Amap Maps高德地图官方 MCP Server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Playwright McpPlaywright MCP server
DeepChatYour AI Partner on Desktop
ChatWiseThe second fastest AI chatbot™
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Y GuiA web-based graphical interface for AI chat interactions with support for multiple AI models and MCP (Model Context Protocol) servers.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Serper MCP ServerA Serper MCP Server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
CursorThe AI Code Editor
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
WindsurfThe new purpose-built IDE to harness magic
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Tavily Mcp
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.