# ravi-labs/mindmap-mcp-server [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/ravi-labs/mindmap-mcp-server  
**GitHub Stars:** 6  
**npm Downloads (last month):** 255  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/ravi-labs-mindmap-mcp-server

## Description
Local-first memory & context-handoff across AI tools — capture context in one tool, resume it in another, with graceful decay, a persona layer, and a portable memory passport.

## Tools
Capabilities this server exposes over MCP:

- **mindmap_capture** — Silently save a portable context summary from the current session so it can be resumed later in any tool. This is the effortless 'capture' half of the loop. New captures start as 'captured' (warm tier); they become trusted 'promoted' memories the first time you resume them.

CALL THIS PROACTIVELY (you don't need to be asked) when: a substantive discussion is wrapping up; the user says they're done / switching tasks / "remember this" / "save this"; a key decision, plan, or conclusion was reached; or the user signals they'll continue later. Write the summary so a future session in a DIFFERENT tool could pick up with full context. Skip trivial one-off exchanges.

Args:
  - title (string): short topic title
  - summary (string): the portable context to inject into a future session (markdown ok)
  - key_points (string[]): scannable discussion points (optional)
  - tags (string[]): topic tags for filtering (optional)
  - source (string): Origin tool, e.g. 'claude-code', 'chatgpt', 'chat', 'cowork', 'claude-desktop'.
  - links (string[]): ids of related threads to connect (optional)
  - kind ('discussion'|'brainstorm'): mark brainstorm sessions so they can be resumed/clustered as ideas (default 'discussion')
  - next_steps (string[]): open work / what to do next — capture this so resuming can CONTINUE the thread, not just re-read it (optional but high-value)

Returns: the created thread id and its formatted record.
- **mindmap_resume** — Restart a topic by describing it in plain words — "pick up the promotion-roadmap discussion", "continue the buyer-service refactor". Resolves your description to the best match, then reassembles the WHOLE topic: the anchor memory plus its linked + closely-related fragments (a topic is usually spread across several sessions/tools), merged into one thread to continue from. Promotes the anchor on reuse. If captured, surfaces "where you left off" (next steps) so you can keep going, not just re-read.

CALL THIS PROACTIVELY at the START of a session when the user references prior work — "let's continue", "restart the X discussion", "the X project", or any topic that may have history.

Args:
  - query (string): topic / what you want to restart, in natural language
  - id (string): resume a SPECIFIC memory by id — use after the user picks from mindmap_resume_options
  - source (string): only resume memories from this origin tool (optional)
(Provide query OR id.)

Returns: a merged topic thread (anchor + related fragments) + where you left off + which workspace to continue in, or near-misses.
- **mindmap_resume_options** — When the user's description is ambiguous or could match SEVERAL different topics, list the distinct candidate topics — each with the workspace it lived in — so you can ASK the user which one to resume instead of guessing. Read-only: promotes nothing. After the user picks, call mindmap_resume with that choice's id.

Args:
  - query (string): the user's natural-language description
  - source (string): restrict to one origin tool (optional)
Returns: up to 5 distinct candidate topics (id, title, workspace, source, last used).
- **mindmap_brainstorm** — Start (or continue) a brainstorm on a topic WITH your shared memory. This pulls your prior thinking on the topic — past brainstorms first, then related discussions and your persona — so an idea you explored in one tool continues seamlessly in another. It does NOT replace your own brainstorming ability: use this to load context, then brainstorm with your full capability (and any brainstorming skill you have), then save the result.

CALL THIS PROACTIVELY when the user wants to brainstorm / ideate / "think through" / "explore options" on something that may have history. Reusing a past brainstorm promotes it (promote-on-reuse).

Flow: 1) call this with the topic → get prior context; 2) brainstorm, building on it; 3) save what's worth keeping with mindmap_capture(kind="brainstorm").

Args:
  - topic (string): what you're brainstorming about
Returns: a brainstorm pack — persona + prior idea-threads to build on.
- **mindmap_search** — Search across all saved context (every tier, every tool) to relocate a past discussion. Read-only — does not change freshness or tiers (use mindmap_resume to actually pull a memory forward).

Args:
  - query (string): keywords; empty string browses by recency
  - source/tag/tier: optional filters
  - include_archived (boolean): include forgotten traces (default false)
  - limit (number): max results (default 10)

Returns: ranked list of matching memories.
- **mindmap_list** — List saved memories with optional filters, newest-used first. Read-only.

Args: source/tag/tier filters, include_archived (default false), limit (default 20).
Returns: list of memories.
- **mindmap_get** — Fetch the full content of one memory by id. Read-only (does not change freshness).

Args: id (string). Returns: the full thread.
- **mindmap_transcript** — Reconstruct and return the FULL original conversation for a memory (every user + assistant turn), read live from its source transcript. The summary is the distilled gist; this is the complete discussion when you need the detail.

Only available for transcript-backed sources (Claude Code, Cursor, Copilot). Cowork / Claude desktop-app sessions saved no transcript, so this returns a notice instead.

Args: id (string). Returns: the full discussion as turns, or why it's unavailable.
- **mindmap_promote** — Explicitly bless a memory as trusted: marks it 'promoted' and moves it to the hot tier so it ranks first and decays slower. Use when you know a memory matters even if you haven't resumed it yet.

Args: id (string). Returns: the updated thread.
- **mindmap_update** — Edit a memory — the human curation moment. Trim a stale summary, refine key points, retitle, or retag. Any omitted field is left unchanged. Set append=true to append to summary/key_points instead of replacing.

Args: id, title?, summary?, key_points?, tags?, append (default false).
Returns: the updated thread.
- **mindmap_link** — Connect two memories so related threads (e.g. planning in Chat + code in Claude Code) cross-reference each other. Bidirectional. This is the lightweight 'map' connective tissue.

Args: id (string), target_id (string). Returns: confirmation.
- **mindmap_prune** — Run the consolidation pass that the background thread runs automatically: recompute every memory's tier by age + usage, cooling unused ones and collapsing cold ones to a one-line trace (still searchable, never deleted). Nothing is destroyed.

Args: dry_run (boolean, default false) — preview changes without writing.
Returns: what moved between tiers.
- **mindmap_forget** — Forget a memory. By default this is a soft forget: status→archived, kept only as a searchable one-line trace (recall never hard-fails). Set hard=true to permanently delete the file.

Args: id (string), hard (boolean, default false).
Returns: confirmation.
- **mindmap_health** — The opt-in gamified curation surface. Reports a cleanliness score — the share of memory that is still live (hot+warm) vs stale — which rewards pruning, not hoarding. Also lists stale candidates worth a tidy pass.

Args: none. Returns: health report.
- **mindmap_tidy** — Return a small batch of the stalest memories for a quick keep / trim / forget review — the opt-in curation game. Read-only: it only suggests. Act on items with mindmap_promote (keep), mindmap_update (trim), or mindmap_forget.

Args: limit (number, default 5). Returns: stalest cold memories.
- **mindmap_config** — View or change Mind Map settings: decay windows, the promoted longevity factor, and the gamification toggle. Omit all args to just view current settings.

Args (all optional): hot_window_days, warm_window_days, promoted_longevity_factor, gamification.
Returns: the effective config.
- **mindmap_persona** — Return the user's persona — a distilled profile of how they work (stack, style, communication, constraints), so you can make aligned defaults and AVOID re-asking things they've already established.

CALL THIS PROACTIVELY at the start of a session before asking the user setup-style questions (their stack, preferences, conventions). Apply high-confidence facts silently; only ask when something needed isn't covered.

Args:
  - project (string, optional): include preferences scoped to this project on top of global ones.
Returns: an "About this user" block + fact count.
- **mindmap_persona_set** — Save a durable preference about how the user works, so future sessions don't re-ask. Use this when the user states a lasting preference — "I prefer X", "always Y", "never Z", "I'm on macOS", "we use Postgres". (For saving a *discussion*, use mindmap_capture instead — this is for standing preferences.)

Args:
  - text (string): the preference, e.g. "Prefers concise, code-first answers"
  - category: identity | stack | style | communication | constraints | workflow | goals
  - polarity ('prefer'|'avoid'|'fact'): default 'prefer'
  - project (string, optional): scope to one project instead of global
Returns: the saved fact.
- **mindmap_persona_forget** — Remove or mute a persona fact (e.g. it's wrong or out of date). Get ids from mindmap_persona. Default mutes (recoverable); hard=true deletes.

Args: id (string), hard (boolean, default false). Returns: confirmation.
- **mindmap_persona_learn** — Derive persona facts from your existing memories. If you've configured an LLM (mindmap_llm), it extracts richer facts — style, constraints, workflow; otherwise it runs a no-LLM keyword heuristic over your stack/tools. Either way, inferred facts get lower confidence than declared ones and never override what you've explicitly set.

Args: none. Returns: how many facts were added/updated and which path ran.
- **mindmap_llm** — Mind Map runs fully WITHOUT an LLM. This is opt-in: plug in your OWN provider to unlock smarter features (LLM-assisted persona inference, richer summaries).

Security: Mind Map stores only the provider + model name. It NEVER stores your API key — the key is read from your environment (ANTHROPIC_API_KEY / OPENAI_API_KEY / GOOGLE_API_KEY; ollama needs none). Set the env var yourself.

Args (all optional — omit all to just see status):
  - provider: none | anthropic | openai | google | ollama
  - model: override the default model
  - baseUrl: for ollama / self-hosted (default http://localhost:11434)
Returns: current provider/model, whether it's ready, and a rough cost note.
- **mindmap_audit** — Show a transparent ledger of everything Mind Map knows — each memory's provenance (where it came from), trust (promote-on-reuse count), tier, last use, and when it will fade to a one-line trace. Use when the user asks "what do you know about me?", "what's stored?", or wants to review/clean their memory.

Args: limit (number, optional, default 30). Returns: the ledger rows.
- **mindmap_passport_export** — Export all memories + persona to a single portable JSON file you own — to back up, move to another machine, or hand to a fork. This is your context, extractable.

Args: path (string, optional) — output file (default ~/mindmap-passport-<date>.json). Returns: the file path and counts.
- **mindmap_passport_import** — Bring context IN. Either a Mind Map passport file (from another machine), or pull your conversations OUT of a walled garden by pointing at its exported data file:
  - kind 'passport' (default): a Mind Map passport JSON
  - kind 'chatgpt': ChatGPT's exported conversations.json
  - kind 'claude': Claude.ai's exported conversations.json
The cloud chats themselves can't be reached live, but their EXPORT FILES are yours — this imports them as distilled memories.

Args: file (string, required), kind ('passport'|'chatgpt'|'claude', default 'passport'). Returns: import counts.
- **mindmap_persona_sync** — Project the user's persona into the native instruction files of their AI tools (Claude CLAUDE.md, Cursor rules, Copilot instructions, Windsurf rules), so even non-MCP tools know how they work — from one source. Writes only inside a managed block; never clobbers the user's own content. By default writes the global Claude config + any detected project tools.

Args:
  - targets (string[], optional): specific target ids (claude-global, claude-project, cursor, copilot, windsurf)
  - force (boolean, optional): write even if a tool isn't detected
Returns: per-target outcomes.
- **mindmap_import** — Scan your local AI-tool history and import any NEW sessions into Mind Map — across Claude Code, Cursor, Copilot, and Cowork. Use this when the user says things like "import my sessions", "sync mind map", "update mind map with my latest work", "pull in my recent sessions", or "refresh my memory". (Mind Map also auto-imports periodically if enabled, but this does it on demand, now.)

Args:
  - source ('all'|'code'|'cursor'|'copilot'|'cowork'): limit to one source (default all)
  - reimport (boolean): also refresh already-imported sessions in place (default false)
Returns: how many sessions were imported / refreshed / skipped.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mindmap-mcp-server": {
    "command": "npx",
    "args": ["-y","@ravi-labs/mindmap-mcp-server"],
    "env": {
      "MINDMAP_DIR": "",
      "ANTHROPIC_API_KEY": "",
      "OPENAI_API_KEY": "",
      "GOOGLE_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `MINDMAP_DIR`, `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `GOOGLE_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What ravi-labs/mindmap-mcp-server does

The ravi-labs/mindmap-mcp-server MCP server provides a local memory layer for AI-assisted work. It stores discussion summaries, key points, tags, links, next steps, and source information so a later session can recover the context of a topic. Memories can be captured from one tool and resumed from another, including related fragments that were linked or matched to the same topic.

The server also maintains a separate persona layer for durable facts about a user's stack, communication style, constraints, and workflow. That profile can be read, updated, inferred from existing memories, muted, or synchronized into supported instruction files.

## How it works

New captures begin in a warm tier. Reusing a memory promotes its anchor to trusted status, while unused memories move through hot, warm, and cold tiers as consolidation runs. Cold items become searchable one-line traces rather than being silently removed. Explicit forgetting can archive a memory or permanently delete its file when the hard option is selected.

Resume accepts a natural-language topic or a specific memory ID. If several topics match, the options tool can return candidate topics for selection. A resumed result includes the anchor, related fragments, and available next steps. Search and listing are read-only, while promotion, editing, linking, pruning, and forgetting change stored state.

## Setup and configuration

Install the npm package with `npx @ravi-labs/mindmap-mcp-server install`. The installer detects Claude Desktop, Cursor, and Windsurf, and configures Claude Code through its CLI when available. Manual setup uses `npx -y @ravi-labs/mindmap-mcp-server` over stdio. A dry-run install is available, and `uninstall` removes the generated configuration.

The default data directory is `~/.mindmap`; set `MINDMAP_DIR` to use another location. The server does not require an LLM. An optional provider can be configured for richer persona inference and summaries, using Anthropic, OpenAI, Google, or Ollama. API keys remain in the environment rather than being stored by Mind Map.

## Tools and capabilities

The tool set covers:

- Capturing and resuming discussions or brainstorms across sessions.
- Searching, listing, fetching, auditing, linking, updating, promoting, pruning, and forgetting memories.
- Loading, declaring, learning, removing, and synchronizing persona facts.
- Importing local history from Claude Code, Cursor, Copilot, and Cowork.
- Importing Mind Map passports or exported ChatGPT and Claude conversation files.
- Exporting memories and persona data to a portable JSON passport.
- Reviewing memory health, stale items, and configurable decay settings.
- Reconstructing full transcripts when the source provides transcript-backed data.

## Limitations and notes

The server is designed for local MCP clients and runs over stdio. Cloud or web clients cannot connect directly without a public endpoint, which is outside the local-first setup. Transcript reconstruction is available only for Claude Code, Cursor, and Copilot sources; Cowork and Claude Desktop records do not include a source transcript.

Imported data is distilled into memories rather than treated as a live connection to cloud conversations. Cursor history import requires Node 22.5 or newer because it reads Cursor's local SQLite data. Memory consolidation is non-destructive unless `mindmap_forget` is called with `hard=true`.

_Full upstream README: https://allmcps.com/mcp/ravi-labs-mindmap-mcp-server/readme_

