MemoryLake
Back to all articles
TutorialMay 25, 20266 min read

Export Claude Code Memory and Import to Cursor — 2026 Guide

Claude Code lives in your terminal; Cursor lives in an IDE. The rule contents transfer cleanly — but slash commands, MCP wiring, and chat history won't. Here's the real translation.

The short answer

Claude Code has no native push to Cursor. You'll copy CLAUDE.md content into .cursorrules (or split into .cursor/rules/*.mdc for structured behavior), convert slash commands into Notepads, and re-add MCP servers to Cursor's MCP configuration. Plan 15–30 minutes per repo. A shared MCP-based memory layer like MemoryLake lets both tools read the same source.

Why people switch from Claude Code to Cursor

Three drivers in 2026:

  • Inline IDE editing. Cursor's Tab acceptance and inline edits feel faster for high-frequency small changes.
  • VS Code ecosystem. Cursor's compatibility with VS Code extensions matters for teams already on that ecosystem.
  • Visual diff and review flow. Some teams prefer Cursor's visual presentation over the terminal-only review in Claude Code.

What "memory" means in Claude Code vs Cursor

Similar intent, different surfaces.

Claude Code memory centers on `CLAUDE.md` at the repo root (project-level guidance), `~/.claude/CLAUDE.md` (user-global guidance), custom slash commands (saved as .md files under .claude/commands/), and MCP servers configured in Claude Code settings.

Cursor memory spans `.cursorrules` (legacy single-file project rules), *`.cursor/rules/.mdc` (structured per-rule format with metadata), Notepads (reusable prompts), and user-level Rules for AI** in Settings.

A CLAUDE.md usually becomes a .cursorrules. Slash commands become Notepads. User-global guidance becomes user-level Rules for AI.

Step 1: Export your Claude Code memory

Claude Code stores everything as plain files you can read.

  1. Read the repo's `CLAUDE.md`. Copy contents into a working text file.
  2. Read `~/.claude/CLAUDE.md`. Copy global guidance into user-guidance.txt.
  3. *List `.claude/commands/.md`.** Each one becomes a Notepad on the Cursor side.
  4. Document MCP servers. Open Claude Code settings and note each MCP server's name, endpoint URL, and authentication.

End state: a claude-code-export/ folder per repo containing CLAUDE.md, user-guidance.txt, commands/, and mcp-list.md.

Step 2: Import into Cursor

Cursor offers two paths: legacy single-file or structured per-rule.

  1. Quick path: create `.cursorrules`. Paste your CLAUDE.md content as a starting point.
  2. *Structured path: split into `.cursor/rules/.mdc.** For each logical section in CLAUDE.md, create an .mdc` file with frontmatter (description, globs, alwaysApply) and the section as the body.
  3. Convert slash commands to Notepads. Open Cursor's Notepads panel and create one Notepad per command, pasting its content.
  4. Translate user-global guidance. Open Cursor Settings → Rules for AI and paste your ~/.claude/CLAUDE.md content.
  5. Re-add MCP servers. Open Cursor's MCP configuration (e.g., .cursor/mcp.json) and add each MCP server from mcp-list.md with its endpoint and Bearer token.
  6. Probe. Open Cursor's chat or Cmd-K and ask the model to perform a task that uses a moved rule.

What you'll still lose after migrating

  • Slash command ergonomics. /<name> invocation in the terminal doesn't map to Cursor's Notepad pull pattern.
  • Terminal-native flow. Long-running multi-step tasks were a Claude Code strength; the IDE workflow changes the cadence.
  • Per-tool chat history. Claude Code's session history stays in the terminal.
  • Ongoing sync. New CLAUDE.md edits next week won't appear in .cursorrules unless you redo the copy.

The better way: one memory layer, every tool

If you bounce between Claude Code and Cursor, per-tool files drift. Anything broader than the repo (cross-repo conventions, team standards) lives in two places.

MemoryLake stores those rules once and exposes them through MCP. Both Cursor and Claude Code support MCP, so the same project context flows into both from a single endpoint.

  • One source of truth. Update once; both tools see the change.
  • Cross-repo standards. Team conventions live above any single repo.
  • Drop-in for the next tool. Add Windsurf or a future agent with a config change.

Connect MemoryLake in 3 steps

Step 1: Create a project and load your context

Sign in to MemoryLake, open Project Management, and click Create Project. Name it "Claude Code ↔ Cursor shared rules." Drag reference docs (style guides, ADRs as PDF, Word, Markdown, or images) into the Document Drive under My Space, then open the Documents Tab and click Add Documents. Paste your CLAUDE.md, user guidance, and slash command bodies into the Memories Tab via Add Memory.

Step 1: Create a project and load your context
Step 1: Create a project and load your context

Step 2: Generate an MCP Server endpoint

Open the MCP Servers Tab inside the project, click Add MCP Server, describe it (e.g., "Shared dev rules"), and click Generate. MemoryLake returns a Key ID, a Secret, and an Endpoint URL. Copy the Secret immediately — it is shown only once.

Step 2: Generate an MCP Server endpoint
Step 2: Generate an MCP Server endpoint

Step 3: Point both tools at the endpoint

In Claude Code's settings, add a MemoryLake MCP server with the endpoint URL and the Secret as a Bearer token. In Cursor's MCP configuration (e.g., .cursor/mcp.json), add the same entry. Restart both clients.

Step 3: Point both tools at the endpoint
Step 3: Point both tools at the endpoint

Native migration vs MemoryLake

DimensionNative Claude Code → CursorMemoryLake bridge
Steps required7–10 manual3 one-time
Estimated time15–30 min per repo~5 min setup
Preserves slash command patternNo (Notepad rebuild)Memories survive verbatim
Cross-repo standardsPer-repo onlyShared once
Syncs ongoing changesNoYes
Works with a third tool laterNo (rebuild)Yes (add MCP)

Frequently asked questions

Can I just rename `CLAUDE.md` to `.cursorrules`?

For simple cases, the rename works because both are plain text. If you want .mdc structure, you'll split the file manually.

Do my Claude Code slash commands become Notepads automatically?

No. You create each Notepad by hand.

Will Cursor see my Claude Code MCP servers?

No. They share the MCP protocol but use separate configuration files. You add each server to Cursor's MCP config.

How long does the migration usually take?

Plan 15–30 minutes per repo, longer if you have many slash commands or MCP servers.

Can I keep Claude Code and Cursor in sync going forward?

Yes — connect both to a shared MemoryLake Project via the MCP Server endpoint so rule updates propagate to both.