Local-first MCP memory & context-handoff server β€” capture context in one AI tool, resume it in another. Graceful decay, no cloud.

🧠 Mind Map β€” MCP memory & context-handoff server

Ever lose the thread of a discussion across Claude Code, Claude Desktop, and yourother AI tools? Mind Map is a small, local-first MCPserver that acts as a shared memory layer across all your local MCP clients.

You capture context at the end of a session, and resume it in any othertool β€” no more re-explaining your project from scratch. Memory you stop usingcools and decays gracefully into one-line traces (it's never silentlydeleted), so your shelf stays small and trustworthy instead of becoming anotherhaystack.

Local-first by design. It runs on your machine; your memories are plainfiles in ~/.mindmap that never leave your control. No account, no cloud, noserver to trust. Install once with npx @ravi-labs/mindmap-mcp-server install.

ChatGPT and other cloud/web clients are out of scope for now β€” they can'treach a local server without a public endpoint, which conflicts withlocal-first. See Future.

The idea in one loop

  1. Capture (effortless) β€” at the end of a discussion, save a portable summary.
  2. Resume (promote-on-reuse) β€” pull it forward in a new session. The act ofreusing it is what promotes it to trusted memory. Throwaway sessions neverget promoted, so they never clutter your shelf.
  3. Consolidate (automatic) β€” a background pass cools unused memory throughtiers (πŸ”₯ hot β†’ 🌀️ warm β†’ ❄️ cold) and collapses cold items to a searchableone-line trace. The moat isn't storing things β€” it's forgetting well.
  4. Tidy (opt-in, gamified) β€” a cleanliness score rewards pruning, nothoarding.

Install (one command)

Once published to npm, the whole install is:

npx @ravi-labs/mindmap-mcp-server install

This auto-detects your local MCP clients (Claude Desktop, Cursor, Windsurf)and writes the config for you, and configures Claude Code via its CLI ifpresent. Restart your client and Mind Map's tools are there. Preview first withnpx @ravi-labs/mindmap-mcp-server install --dry-run; undo withnpx @ravi-labs/mindmap-mcp-server uninstall.

Data lives in ~/.mindmap/ by default β€” override with the MINDMAP_DIR env var.

Manual setup (if you prefer)

Every client uses the same command β€” npx -y @ravi-labs/mindmap-mcp-server over stdio.

Claude Code:

claude mcp add mindmap -- npx -y @ravi-labs/mindmap-mcp-server

Claude Desktop β€” edit claude_desktop_config.json(macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "mindmap": {
      "command": "npx",
      "args": ["-y", "@ravi-labs/mindmap-mcp-server"]
    }
  }
}

Cursor / Windsurf / other clients β€” same command + args shape in thatclient's MCP config. Add an env block to relocate data:

{ "command": "npx", "args": ["-y", "@ravi-labs/mindmap-mcp-server"],
  "env": { "MINDMAP_DIR": "/path/to/my/memory" } }

From source (development)

git clone https://github.com/ravi-labs/mindmap-mcp-server.git && cd mindmap-mcp-server
npm install && npm run build
node dist/index.js install --local   # points clients at this checkout

Tools

Tool What it does
mindmap_capture Silently save a context summary (the effortless half of the loop).
mindmap_resume Find + return the best context for a topic; promotes on reuse.
mindmap_search Read-only search across every tier and tool.
mindmap_list Browse memories with filters.
mindmap_get Fetch one memory's full content.
mindmap_promote Explicitly bless a memory as trusted (β†’ hot).
mindmap_update Trim / edit / retag β€” the human curation moment.
mindmap_link Connect related threads (the lightweight "map").
mindmap_prune Run the consolidation pass on demand (dry_run to preview).
mindmap_forget Soft-archive to a trace, or hard delete.
mindmap_health Gamified cleanliness score (opt-in).
mindmap_tidy Batch of stalest memories to keep / trim / forget.
mindmap_config View / change decay windows and toggles.

How it stores things

~/.mindmap/
β”œβ”€β”€ threads/<id>.json   # one file per memory (human-readable JSON)
β”œβ”€β”€ index.json          # fast list/search index
└── config.json         # tunable thresholds + gamification toggle

Plain files you own and can inspect, grep, back up, or sync yourself. Tiers mapto the mental model: hot = mem, warm = files, cold = drive (trace).

Tuning decay

// defaults (mindmap_config to change at runtime)
{
  "hotWindowMs":  7 days,    // active memory stays hot this long
  "warmWindowMs": 30 days,   // then warm; past it β†’ cold trace
  "promotedLongevityFactor": 2,  // blessed memories decay 2Γ— slower
  "gamification": true
}

Develop

npm run dev      # watch mode (tsx)
npm run build    # type-check + emit dist/
npm test         # end-to-end smoke tests (stdio + http) in throwaway data dirs

Future

ChatGPT / cloud clients (parked). A cloud client can't reach a local serverwithout exposing it publicly (a tunnel or a host), which breaks the local-firstpromise. An HTTP transport already ships in the codebase(TRANSPORT=http, with bearer-token auth + origin allow-listing) for anyone whochooses to self-host β€” but it's intentionally not the default path. RevisitingChatGPT later likely means an opt-in hosted tier with per-user encryption, adeliberate trust decision rather than a default.

Other directions:

  • Auto-capture hooks per client so the "capture" step is invisible.
  • Embedding-based semantic recall (current search is token-overlap).
  • Richer graph view of linked threads.
  • OAuth + per-user data isolation (only needed if a hosted tier ever happens).

License

MIT

MCP Server Β· Populars

MCP Server Β· New

    w1ckedxt

    Cynical Sally

    Brutally honest senior-engineer code reviews for Claude Code, Cursor & Windsurf - and your terminal. Scores, evidence-backed issues, usable fixes.

    Community w1ckedxt
    Minidoracat

    MCP Feedback Enhanced

    Enhanced MCP server for interactive user feedback and command execution in AI-assisted development, featuring dual interface support (Web UI and Desktop Application) with intelligent environment detection and cross-platform compatibility.

    Community Minidoracat
    caidish

    InstrMCP: Instrumentation Control MCP Server

    AI's quantum device physics laboratory's instrumentation control

    Community caidish
    ahmedeltaher

    Azan-MCP

    Azan + Prayer Time + MCP + AI Agents + Islamic + Salah + A lightweight MCP library to calculate prayer times and trigger Azan with a single tool call. If you’re building an AI agent or prayer application, there’s no need to deal with astronomical calculations, timezones, or edge cases again.

    Community ahmedeltaher
    Agent-Pattern-Labs

    Geometra

    The Browser for the Singularity! No browser. Just computed geometry going straight to pixels. MCP replacement for Playwright too!

    Community Agent-Pattern-Labs