cursor_history_backup
Create a backup of all Cursor AI chat history. Saves a portable archive that can be restored later.
Search everything you have ever asked Cursor, open the session that had the answer, and export or back it up before it goes.
LABSCO SUMMARY
Search is plain text matching over the local store, which means results are predictable and immediate — you get the sessions that literally contain the phrase, rather than whatever an embedding model thought was close. The archive side is the other half of the value and the part to handle carefully: back up before restoring, since restore overwrites current history and migrating in move mode deletes the original session.
A reader and archive tool for Cursor's local AI chat history. It reads Cursor's SQLite store directly — no vectors, no embedding model, no separate service — and can also move, back up and restore that history.
Cursor installed with existing chat history, and Node.js 20+. It runs as npx cursor-history-mcp — nothing to install, no account, no key, and it works offline since everything is read from the local database. Note that restore and migrate change that history: restore overwrites it, and a move deletes the source session. MIT.
One command — npx -y cursor-history-mcp
USE CASES
Search every past session for the error message or API name, read the context around each hit, then open the session that had it.
Export it as Markdown and keep it somewhere the rest of the team can read.
Create a portable backup archive, then restore it on the other side — after backing up whatever is already there.
Copy or move sessions into the right workspace, so a project's history sits with the project.
Generate the sanitised summary of statistics, topics and keywords, and let the included prompt template turn it into a readable report.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
cursor_history_backupCreate a backup of all Cursor AI chat history. Saves a portable archive that can be restored later.
cursor_history_exportExport a Cursor AI chat session to Markdown or JSON format. Returns the formatted content.
cursor_history_listList Cursor AI chat sessions. Returns recent sessions with metadata including workspace, message count, and timestamps.
cursor_history_migrate⚠️ DESTRUCTIVE: Move or copy chat sessions between workspaces. When moving (not copying), the original session is deleted. Consider creating a backup first using cursor_history_backup.
cursor_history_restore⚠️ DESTRUCTIVE: Restore Cursor AI chat history from a backup file. This operation OVERWRITES your current chat history. Consider creating a backup of your current data first using cursor_history_backup.
cursor_history_searchSearch across all Cursor AI chat sessions for a keyword or phrase. Returns matching sessions with context around each match.
cursor_history_showShow the full content of a specific Cursor AI chat session including all messages, tool calls, and AI responses.
cursor_history_year_packGenerate a year-in-review data package from Cursor AI chat history. Produces a sanitized JSON summary with statistics, topics, and keywords, plus a prompt template for LLM-based report generation. Read-only operation.
BEFORE YOU INSTALL
8 tools when we connected.
Both documented clients run the server on your machine.
CONTEXT COST
Rated by the size of the 8 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx -y cursor-history-mcp{
"mcpServers": {
"cursor-history": {
"command": "npx",
"args": [
"-y",
"cursor-history-mcp"
]
}
}
}