Skip to main content
MCP server CX Codex

Mindswap — MCP server for Claude Code: project memory and handoffs

Mindswap keeps tasks, decisions and blockers in local files so a fresh session or another AI client can resume work without a full re-brief.

MIT ★ 7 updated 2026-05-03

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add mindswap -- npx -y mindswap
Open on GitHub

What Mindswap does

Mindswap writes project context to a .mindswap/ directory next to your code: HANDOFF.md, state.json, decisions.log, memory.json, config.json, plus branches/ and history/. Running npx mindswap save records the active task, git state and decisions. resume prints a short briefing for the next session, and ask searches what was stored and returns citations.

Memory comes in two scopes. Repo memory sits in .mindswap/, personal memory in ~/.mindswap/; --global and --scope all extend writes and lookups across both, so a preference can follow you between projects. Search runs on a local SQLite index that reindex rebuilds, and sync moves continuity state between machines.

Clients connect through npx -y mindswap, and npx mindswap mcp-install writes the entry into supported editors. Install the package itself as a dev dependency with npm. The repo has to be initialised first: without npx mindswap init there is no place for save to write, so setup and import of existing AI context come before anything else.

What it helps with

  • rebuild the thread of a task after a session reset
  • log a decision and the reason behind it
  • search stored memory for why JWT was picked
  • hand off work from one AI client to another
  • carry personal preferences across projects

Example prompts for the agent

  • Run npx mindswap init and import the existing context from this repo.
  • Record the current task and git state with npx mindswap save.
  • Ask project memory: npx mindswap ask "Why did we choose JWT?"

How to install Mindswap

Platform CLI

claude mcp add mindswap -- npx -y mindswap

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Mindswap

How do I install Mindswap in Claude Code?

Add the server with claude mcp add mindswap -- npx -y mindswap. The package itself goes in via npm install mindswap --save-dev.

What does Mindswap do?

It stores the project's task, decisions and blockers in local files, then serves them to the next session or another client as a ready briefing.

Where does Mindswap keep its data?

Repo data lives in .mindswap/ inside the project and personal memory in ~/.mindswap/. The search index is a local SQLite file.

Similar MCP servers

All MCP servers for Agent setup: memory, context, orchestration →

Project sponsors

Companies that keep this analytics open