Install
$ agentstack add mcp-paolojn-claude-code-vcr ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
claude-code-vcr
claude-code-vcr is a local-only MCP server for querying and replaying past Claude Code sessions from inside a current Claude Code session.
It reads Claude Code's existing JSONL logs from ~/.claude/projects/**/.jsonl. It does not record new data, run a daemon, write to session logs, or send telemetry.
Why
Claude Code already records session history locally. claude-code-vcr makes that history queryable through MCP, so you can ask Claude to list, replay, search, and compare previous work without leaving the chat.
Install
From GitHub:
npm install -g github:PaoloJN/claude-code-vcr
From npm after npm publish:
npm install -g claude-code-vcr
For local development from this repo:
npm install
npm run build
npm install -g .
MCP Config
Add this to a project's .mcp.json after global install:
{
"mcpServers": {
"claude-code-vcr": {
"command": "claude-code-vcr"
}
}
}
For local development without global install, point Claude Code at the built file:
{
"mcpServers": {
"claude-code-vcr": {
"command": "node",
"args": ["/path/to/claude-code-vcr/dist/index.js"]
}
}
}
Tools
list_recent_sessions: returns recent sessions with UUID, project, timestamps, first user prompt, turn count, and tool-call summary.replay_session: returns structured user/assistant turns and tool calls for one session UUID.search_sessions: searches prompts, assistant text, tool names, and tool inputs.diff_sessions: compares two sessions by first prompt, assistant text, turn count, and tool names.regression_check: summarizes reference session shapes next to aCLAUDE.mdhash for read-only regression review.
All tools accept an optional root argument for tests or custom Claude Code log roots. By default, claude-code-vcr reads ~/.claude/projects and skips project paths/files with a personal path token.
CLI
The package is primarily an MCP server, but it also includes a small CLI for quick terminal checks and demos:
claude-code-vcr list --limit 5
claude-code-vcr search "better-auth" --days 7
claude-code-vcr replay
claude-code-vcr diff
To regenerate the README demo:
vhs assets/demo.tape
Safety Model
- Local-only: no hosted service, network calls, analytics, or telemetry.
- Read-only: session JSONL files are opened for reading and never modified.
- No daemon: the process runs only when invoked by an MCP client.
- Personal-path guard: broad scans skip paths/files with a
personaltoken by default.
Example Prompts
Ask Claude:
Use claude-code-vcr to list my 5 most recent sessions in this project.
Use claude-code-vcr to replay session and summarize the tool calls.
Use claude-code-vcr to search sessions from the last 7 days for "regression_check".
Use claude-code-vcr to diff sessions and .
Development
npm test
npm run typecheck
npm run build
To smoke-test the binary's registered tool list:
npx tsx src/index.ts --tools
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: PaoloJN
- Source: PaoloJN/claude-code-vcr
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.