cursor-chats-bridge
cursor-chats-bridge
A read-only bridge that lets Claude Code see what you're doing in Cursor — in real time and across sessions.
If you use Claude Code and Cursor in parallel — for example: agent-driven edits in Cursor while planning/auditing with Claude — this skill plugs Cursor's local chat database into Claude as an MCP server, plus journals new messages every 5 minutes so Claude can answer questions like "what was Cursor doing this morning?" even when Claude wasn't running.
Read-only by design. Never modifies Cursor's data.
What you get
Once installed, Claude Code gains seven tools (all prefixed mcp__cursor-chats__):
Tool | What it does |
| List every Cursor workspace seen across your chat history, with hash IDs and paths. |
| List Cursor chats, optionally filtered by workspace ID, path substring, or auto via Claude's |
| Fetch the messages of a specific chat (by composer UUID). |
| Convenience: fetch the live messages of the currently-open Cursor chat for a workspace. |
| Substring search across chat names, subtitles, and message text. |
| Read the append-only journal of new messages captured by the background poller. |
| Aggregate stats over a time window: messages by role, conversations touched, recent text snippets. |
Plus a Windows scheduled task ClaudeCursorChatPoller that runs every 5 minutes, detects new messages in each workspace's active chat, and appends them to a JSON-lines journal under ~/.claude/mcp/cursor-chats/journal.ndjson.
Why it exists
Cursor's chat data lives locally in a SQLite KV store (%APPDATA%\Cursor\User\globalStorage\state.vscdb), but with two annoying constraints:
Only the currently-open chat per workspace keeps its messages stored locally — older chats are archived to Cursor's cloud, leaving only metadata.
There's no public API.
So a live MCP query alone isn't enough: if you ask "what did Cursor do this morning?" at 3 PM, the relevant messages may already be archived. The poller solves that by capturing messages as they appear, with workspace tagging so different Claude projects can filter cleanly.
Architecture
┌──────────────────────────────────────────────────────────────────┐
│ Windows Task Scheduler >> pythonw poller.py >> /5 min, 24/7│
└──────────────────────────────────────────────────────────────────┘
│
▼ (read mode=ro,immutable=1)
┌──────────────────────────────────┐
│ Cursor SQLite globalStorage │ ← live, written by Cursor
│ state.vscdb / cursorDiskKV │
└──────────────────┬───────────────┘
│
▼ (append-only)
┌──────────────────────────────────┐
│ ~/.claude/mcp/cursor-chats/ │
│ ├─ active_snapshot.json │
│ ├─ journal.ndjson │
│ └─ poller.log (errors) │
└──────────────────┬───────────────┘
│
▼ (on-demand)
┌──────────────────────────────────┐
│ MCP server (server.py) │
│ exposes 7 tools │
└──────────────────┬───────────────┘
│
▼
Claude CodeFor deeper internals (SQLite key patterns, workspace identification, edge cases), see references/architecture.md.
Requirements
Windows 10 / 11 (Linux/macOS not yet supported — uses
schtasksand the Windows Cursor path)Python 3.10+ with
pythonw.exeavailable (silent runner for the scheduled task)Claude Code CLI on
PATH(claude --versionshould work)Cursor installed and opened at least once (the SQLite is created on first run)
The installer checks all of these and fails fast with actionable errors if something is missing.
Install
As a Claude Code skill (recommended)
Drop the folder into your Claude Code skills directory:
~/.claude/skills/cursor-chats-bridge/On Windows:
C:\Users\<you>\.claude\skills\cursor-chats-bridge\.Restart Claude Code (or just open a new session).
Ask Claude something like "install the cursor-chats bridge" or "set up the Claude-Cursor connection" — the skill description is tuned to trigger on those phrasings.
Claude reads
SKILL.md, runsscripts/install.ps1, and reports the result.Restart Claude Desktop (full quit from the system tray) to load the MCP server.
Manual install (no Claude needed)
If you'd rather skip the agentic step:
powershell -ExecutionPolicy Bypass -File "C:\Users\<you>\.claude\skills\cursor-chats-bridge\scripts\install.ps1"The script:
Verifies prerequisites (Python,
pythonw.exe,claudeCLI, Cursor SQLite path)Copies
server.pyandpoller.pyto~/.claude/mcp/cursor-chats/Installs the Python
mcppackage via pip if missingRemoves any prior
cursor-chatsMCP registration, then adds it (default scope:local)Creates / updates the
ClaudeCursorChatPollerscheduled task (every 5 min, silent viapythonw.exe)Runs the poller once to seed the snapshot/journal
Re-running is safe: every step uses force-overwrite semantics. State files (active_snapshot.json, journal.ndjson) are preserved.
Installer flags
Flag | Effect |
| Suppress progress output. |
| Skip creating the scheduled task (one-shot use / debugging). |
| MCP registration scope. Default |
Verify
After install + Claude restart:
claude mcp list
schtasks /Query /TN ClaudeCursorChatPoller /FO LISTBoth should show entries; the claude mcp list line should report ✓ Connected for cursor-chats.
In a Claude session, you can then ask:
"List my Cursor workspaces." "What's the latest message from my Cursor agent?" "Summarize what I did with Cursor this morning."
How Claude uses it (typical patterns)
The MCP doesn't poll on its own — Claude calls the tools when it makes sense. The background poller (separate process) handles continuous capture, so journal queries answer "what happened while you weren't looking" without keeping a live conversation open.
Examples:
Pickup — "continue what I was doing with Cursor" → Claude calls
get_active_chatto fetch the live conversation, summarizes, asks where to take over.Recap — "recap of my Cursor activity since 9 AM" → Claude calls
get_journal_summary(window_minutes=N)and walks you through what changed.Cross-check — "is what Cursor is suggesting consistent with our plan?" → Claude reads the latest Cursor messages, compares to its own context, flags discrepancies.
Search — "where did I discuss the SQL backfill with Cursor?" → Claude calls
search_chats("backfill"), then drills into a hit withget_chat.
Privacy & security
Read-only by SQLite enforcement (
mode=ro,immutable=1). Even a buggy script cannot modify Cursor's data.All data stays local. The journal and snapshots are under
~/.claude/, protected by Windows ACLs at the user-profile level. Nothing is uploaded.Credentials caveat. Your Cursor chats may contain pasted API keys, passwords, etc. The journal stores message text verbatim. If that's a concern, be selective about what you paste into Cursor, or filter the journal post-hoc.
MCP scope. Default
localmeans the bridge is only active in the project where you ran the installer. Use-Scope userto make it global.
Uninstall
powershell -ExecutionPolicy Bypass -File "<skill-dir>\scripts\uninstall.ps1"Removes the scheduled task, unregisters the MCP from Claude, and deletes ~/.claude/mcp/cursor-chats/ by default. Pass -KeepData to preserve active_snapshot.json and journal.ndjson.
Limits & known issues
Windows only. macOS/Linux variants are doable (cron instead of
schtasks,~/Library/Application Support/Cursor/...path on macOS) but not implemented yet.Cursor schema dependency. The bridge reads undocumented Cursor internals. If Cursor renames
cursorDiskKVor changes the composer JSON shape between versions, the scripts may need a one-line patch. Checkpoller.logif the journal stops growing.Active chat only. Older / archived chats give metadata only. Live messages exist only for the currently-open chat per workspace.
No backfill. The poller skips historical messages on first sight of a workspace (would otherwise flood the journal). Only future messages are captured.
Cursor must be open for new messages to land in the SQLite. If Cursor is closed, the poller still runs cleanly but writes no new entries.
Project layout
cursor-chats-bridge/
├── SKILL.md # YAML frontmatter + Claude-facing instructions
├── README.md # this file
├── scripts/
│ ├── server.py # MCP server (Python, ~300 lines)
│ ├── poller.py # Background poller (Python, ~180 lines)
│ ├── install.ps1 # Idempotent installer
│ └── uninstall.ps1 # Clean removal
└── references/
└── architecture.md # Deep technical doc (SQLite layout, edge cases)Contributing
Pull requests welcome — especially for:
macOS / Linux support (cron + Library/Application Support paths)
Schema-resilience: helpers to detect Cursor version changes early
Optional journal rotation / compression
Better triggering of the skill on non-French queries
License
MIT — do whatever you want, no warranty. See LICENSE.
Disclaimer
This is a third-party tool, not affiliated with Anthropic or Cursor. It reads Cursor's local data through unofficial means and may break with future Cursor versions. Use at your own discretion, especially on machines where you handle sensitive data.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jherard-fr/cursor-chats-bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server