Cursor History MCP
C

Cursor History MCP

An MCP server based on the Model Context Protocol for browsing, searching, exporting, and backing up Cursor AI chat history, supporting offline fast retrieval and cross-workspace migration.
2.5 points
4.6K

What is Cursor History MCP?

Cursor History MCP is a server based on the Model Context Protocol (MCP) that allows you to directly access and manage your Cursor IDE chat history through AI assistants like Claude. You can use natural language to search past conversations, export sessions, create backups, and even generate annual review reports.

How to use Cursor History MCP?

Simply run the server via npx and then configure it in Claude Code or Claude Desktop. After configuration, you can directly ask the AI assistant about your Cursor chat history, such as 'List my chat sessions' or 'Search for conversations about authentication'.

Use cases

Cursor History MCP is an ideal tool when you need to review previous programming discussions, find specific solutions, back up important conversations, migrate sessions across different workspaces, or generate an annual summary of programming activities.

Main Features

Session Browsing
View a list of all chat sessions, including metadata such as time and title
Full-text Search
Search for specific content in all sessions using grep-style text matching
Session Export
Export sessions in Markdown or JSON format for easy sharing or archiving
Full Backup
Create a full backup of all chat history to ensure data security
Data Recovery
Restore chat history from a backup file (Note: this will overwrite existing data)
Session Migration
Move or copy sessions between different workspaces
Annual Review
Generate an annual data package containing statistics, topic analysis, and prompt templates
Advantages
⚡ Ultra-fast response: Read the SQLite database directly without vectorization processing
🔍 Precise search: Use text matching instead of vector retrieval, with stable and predictable results
📦 Zero-configuration installation: Run directly via npx without complex settings
🌐 Offline work: Run completely locally without the need for external services or API keys
💾 Data portability: Complete backup, recovery, and migration functions
🛠️ Lightweight: Approximately 50KB package size without heavy dependencies
Limitations
Only supports the chat history of Cursor IDE
Requires a Node.js 20+ runtime environment
The recovery and migration functions will overwrite existing data (use with caution)
Search is based on text matching and does not support semantic similarity search

How to Use

Run the MCP Server
Run the Cursor History MCP server directly via npx
Configure Claude Code
Add the server configuration in the MCP settings of Claude Code
Configure Claude Desktop
Add the server configuration in the Claude Desktop configuration file
Start Using
After configuration, you can interact with the AI assistant through natural language to manage your Cursor history

Usage Examples

Find Past Solutions
When you remember discussing a programming problem before but forget the specific details, you can search for relevant conversations
Export Important Conversations
Export important technical discussions as documents for easy sharing or reference
Annual Programming Review
Generate an annual summary report to understand your programming habits and interest changes
Workspace Migration
When changing the working environment, migrate important chat sessions to a new workspace

Frequently Asked Questions

What do I need to install to use this tool?
Is this tool safe? Will it leak my chat data?
Why choose this tool over other similar tools?
Will the recovery and migration functions cause data loss?
Which language versions of the documentation are supported?

Related Resources

GitHub Repository
Project source code and latest version
npm Package Page
npm package information and download statistics
Model Context Protocol Official Website
Official documentation and specifications of the MCP protocol
Chinese Documentation
Chinese usage instructions for the project
Issue Feedback
Submit bug reports or feature requests

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "cursor-history": {
      "command": "npx",
      "args": ["-y", "cursor-history-mcp"]
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

A
Airweave
Airweave is an open - source context retrieval layer for AI agents and RAG systems. It connects and synchronizes data from various applications, tools, and databases, and provides relevant, real - time, multi - source contextual information to AI agents through a unified search interface.
Python
8.1K
5 points
V
Vestige
Vestige is an AI memory engine based on cognitive science. By implementing 29 neuroscience modules such as prediction error gating, FSRS - 6 spaced repetition, and memory dreaming, it provides long - term memory capabilities for AI. It includes a 3D visualization dashboard and 21 MCP tools, runs completely locally, and does not require the cloud.
Rust
5.8K
4.5 points
M
Moltbrain
MoltBrain is a long-term memory layer plugin designed for OpenClaw, MoltBook, and Claude Code, capable of automatically learning and recalling project context, providing intelligent search, observation recording, analysis statistics, and persistent storage functions.
TypeScript
6.9K
4.5 points
B
Bm.md
A feature-rich Markdown typesetting tool that supports multiple style themes and platform adaptation, providing real-time editing preview, image export, and API integration capabilities
TypeScript
5.9K
5 points
S
Security Detections MCP
Security Detections MCP is a server based on the Model Context Protocol that allows LLMs to query a unified security detection rule database covering Sigma, Splunk ESCU, Elastic, and KQL formats. The latest version 3.0 is upgraded to an autonomous detection engineering platform that can automatically extract TTPs from threat intelligence, analyze coverage gaps, generate SIEM-native format detection rules, run tests, and verify. The project includes over 71 tools, 11 pre-built workflow prompts, and a knowledge graph system, supporting multiple SIEM platforms.
TypeScript
6.7K
4 points
P
Paperbanana
Python
8.2K
5 points
B
Better Icons
An MCP server and CLI tool that provides search and retrieval of over 200,000 icons, supports more than 150 icon libraries, and helps AI assistants and developers quickly obtain and use icons.
TypeScript
7.3K
4.5 points
A
Assistant Ui
assistant - ui is an open - source TypeScript/React library for quickly building production - grade AI chat interfaces, providing composable UI components, streaming responses, accessibility, etc., and supporting multiple AI backends and models.
TypeScript
7.9K
5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
35.5K
5 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
22.3K
4.5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
25.4K
4.3 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
75.2K
4.3 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
66.3K
4.5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
32.5K
5 points
C
Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
98.9K
4.7 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
51.1K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase