local-history-mcp is an MCP server whose goal is to connect the Local History of Cursor/VS Code to AI assistants for AI-assisted data recovery and context enhancement.
Purpose: The editor's Local History records file snapshots at save points; unlike undo/redo, it can preserve work content that might otherwise be lost. However, existing AI assistants (such as Claude, Cursor AI, and GitHub Copilot), despite having strong diagnostic capabilities, cannot directly access this local history data. This project provides a direct access channel through MCP and is intended for personal use.
Main capabilities: As an MCP server, it exposes access to the local history of Cursor/VS Code to AI clients compatible with MCP, enabling assistants to read historical snapshot information for data recovery or supplementary context. The materials do not provide specific tool names, interface parameters, the range of supported historical versions, or retrieval methods.
Usage: Two installation paths are provided. One is installation through a package manager (recommended); the materials do not give the specific package name or command. The other is installation from source code. In Cursor, it can be installed via a one-click install button, or configured manually according to Cursor's official MCP documentation. Claude Code (CLI) can be installed directly; the materials do not give the specific command. Claude Desktop requires configuration by referring to the official MCP documentation.
Applicable scenarios: When an AI assistant needs to view the editor's local history to recover content that was saved but later overwritten or lost; when reading historical snapshots during AI-assisted investigation of file changes or supplementation of context.
Limitations: The project is positioned for personal use; the materials do not specify supported operating systems, editor versions, compatibility of history storage paths, permission requirements, or security considerations. The project contains code generated by large language models under human supervision and proofreading.