Back to Home
xxczaki icon

local-history-mcp

Verified Safe

by xxczaki

Overview

Access Cursor/VS Code Local History through the Model Context Protocol for AI-powered data recovery, enabling AI assistants to retrieve lost work and enhance context awareness.

Installation

Run Command
npx local-history-mcp

Environment Variables

  • LOG_LEVEL
  • NODE_ENV

Security Notes

The server primarily operates on local file system data, specifically editor history. File paths provided as arguments are explicitly checked for absolute paths and normalized to prevent path traversal. Regex creation for search functionality is sanitized. Communication occurs via standard I/O (stdio), limiting direct network exposure. The `restore_from_history` tool includes a backup option, which is a good safety measure. The main security considerations would be the potential for an AI agent to misuse the restore feature if not properly constrained, but this falls more on the agent's permissioning than a vulnerability in the server itself.

Similar Servers

Stats

Interest Score39
Security Score9
Cost ClassMedium
Avg Tokens3000
Stars11
Forks4
Last Update2025-12-04

Tags

MCP ServerVS CodeCursorLocal HistoryAI-powered data recovery