local-history-mcp

xxczaki/local-history-mcp
★ 15 stars TypeScript 🤖 AI/LLM Updated 3d ago
MCP server for accessing VS Code/Cursor's Local History
View on GitHub →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "local-history-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "xxczaki/local-history-mcp"
      ]
    }
  }
}

README Excerpt

<img width="300" alt="Demo" align="right" src="https://github.com/user-attachments/assets/30dd1ac2-b1de-485f-9735-4813076587e5" /> > Access Cursor/VS Code Local History through the Model Context Protocol for AI-powered data recovery This MCP server bridges the gap between AI assistants and editor Local History, enabling data recovery and enhanced context awareness. Unlike undo/redo, Local History captures file snapshots at save points, preserving work that would otherwise be lost.

Tools (6)

get_file_historyget_history_entryget_history_statslist_history_filesrestore_from_historysearch_history_content

Topics

aiartificial-intelligencecursordata-recoveryllmlocal-historymcpmcp-servermodel-context-protocolvisual-studio-codevs-code