# Local History

> Use this tool when you need to recover lost code, analyze file changes, or access historical context in your editor. It provides programmatic access to Local History data, solving problems like data loss and limited AI context awareness. The tool accepts platform-agnostic history directories as input and outputs file histories, specific history entries, and statistics, making it ideal for developers working on data recovery, code analysis, and AI-assisted development projects.

Canonical page: https://skillsregistry.net/skills/xxczaki-local-history  
JSON: https://api.skillsregistry.net/v1/skills/xxczaki-local-history

## Description

This MCP server provides direct access to Cursor/VS Code Local History data for AI-powered data recovery and enhanced context awareness, built by xxczaki using TypeScript with the MCP SDK and pino logging. The implementation bridges the gap between AI assistants and editor Local History by parsing history directories across platforms (Windows, macOS, Linux), offering six specialized tools for listing files with history, retrieving complete file histories, accessing specific history entries, restoring files to previous states with backup creation, searching across all history content, and generating statistics. Designed for developers who need programmatic access to their editor's Local History for data recovery scenarios, code analysis, and situations where current AI assistants cannot access this valuable historical context that captures file snapshots at save points.

## Trust

- **Trust score (0–1):** 0.64
- **Verification tier:** scanned
- **Last scanned:** 2026-09-01

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** monitoring
- **Updated:** 2026-09-01

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/xxczaki-local-history)
- **Repository:** <https://github.com/xxczaki/local-history-mcp>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "xxczaki-local-history"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/xxczaki-local-history` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/xxczaki-local-history/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
