mindkeeper-mcp
Enables cloud sync of the mindmap to a private GitHub Gist for backup and restore.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mindkeeper-mcp Capture idea: improve onboarding flow"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mindkeeper-mcp
An MCP server that captures ideas from conversations and organises them into a persistent mindmap — and keeps org charts: people, teams, companies and projects, how they are linked, and how that changed over time. Ideas are stored as nodes that can be linked to a parent, tagged, searched, exported, and synced to the cloud — surviving across sessions.
Data is stored in ~/.mindkeeper/mindmap.json with atomic writes and automatic backups.
Features
Persistent — mindmap survives across conversations and restarts
Hierarchical — nest ideas under parents to build tree structure
Searchable — weighted full-text search across text and tags
Deduplication — same idea under the same parent is never added twice
Safe writes — atomic temp-file → backup → rename strategy
Concurrency-safe — serialised write queue prevents file corruption
Export — Markdown, Mermaid diagram, OPML, JSON, or interactive HTML (with PNG/SVG download)
Import — build a mindmap from your Claude.ai conversation history
Cloud sync — backup and restore via private GitHub Gist
Org charts — typed entities (person, company, team, role, project), cross-links for many-to-many relations, re-parenting, and who-reports-to-whom queries
Change history — every edit is logged with an optional effective date, so you can see the chart as of any day and diff two dates
CSV in and out — import an org chart from a spreadsheet (id,name,title,manager,kind), export it back, or export Mermaid / mindkeeper-map JSON
Related MCP server: MyChatArchive MCP Server
Installation
Global install (recommended)
npm install -g mindkeeper-mcpLocal install
git clone https://github.com/icedsg/mindkeeper-mcp
cd mindkeeper-mcp
npm install
npm run buildConfiguration
Claude Desktop
Edit claude_desktop_config.json. The quickest way to open it: in Claude Desktop, go to Settings → Developer → Edit Config.
Alternatively, find the file at:
Platform | Location |
macOS |
|
Windows |
|
Linux |
|
Global install:
{
"mcpServers": {
"mindkeeper": {
"command": "mindkeeper-mcp"
}
}
}Local install (absolute path):
{
"mcpServers": {
"mindkeeper": {
"command": "node",
"args": ["/absolute/path/to/mindkeeper-mcp/build/index.js"]
}
}
}After editing the config, restart Claude Desktop for the server to connect.
Claude Code (CLI)
# Global install
claude mcp add mindkeeper -- mindkeeper-mcp
# Local install
claude mcp add mindkeeper -- node /path/to/mindkeeper-mcp/build/index.jsAutomatic topic capture (recommended)
Add this to your Claude Desktop system prompt (Settings → Profile → Custom Instructions) to make mindkeeper capture your topics automatically:
You have mindkeeper-mcp connected.
- After each of my messages, if I mention a new topic, question, goal, or interest — call add_idea to record it. Only capture what I say, never your own responses.
- Before adding, call search_ideas to avoid duplicates.Tools
Tool | Description |
| Capture a new idea, optionally attached to a parent node |
| Edit the text or tags of an existing idea |
| Remove an idea; children are orphaned (kept, not deleted) |
| Full-text search across idea text and tags |
| Retrieve the full tree, or a subtree from a given node |
| Export as a nested Markdown list |
| Export as a Mermaid flowchart — paste into GitHub, Notion, or Obsidian |
| Export as OPML — import into MindNode, OmniOutliner, or XMind |
| Export raw JSON — use with the online visualizer |
| Generate a self-contained interactive HTML file saved to |
| Parse a |
| Push or pull the mindmap to/from a private GitHub Gist |
| Show current cloud sync configuration |
| Add a typed entity (person, company, team, role, project, idea) with attributes such as title or email |
| Record a relation outside the tree, e.g. a person |
| Remove a relation |
| Re-parent a node and its subtree (new manager, new team); refuses cycles |
| Recorded changes, newest first, with before/after values and effective dates |
| The map or org chart as it stood on a date |
| Who joined, left, moved or was renamed between two dates, plus links added/removed |
| Projects a person, team or company is on (tree or links) |
| People in a project, company or team |
| A person's manager and direct (or all) reports |
| Org chart as a Mermaid flowchart TB and mindkeeper-map JSON (with links) |
| CSV: id,name,title,manager,kind plus other attributes |
| Build or update an org chart from a CSV; edits land in the history |
Every write tool (add_idea, update_node, delete_node, add_entity, link_entities, unlink_entities, move_node, import_csv) also takes an optional effectiveDate (YYYY-MM-DD or ISO) for changes that happened earlier than today.
Usage examples
Capture a top-level idea:
add_idea text="Product strategy for Q3" tags=["strategy","q3"]Add a sub-idea under an existing node:
add_idea text="Launch in EU market" parentId="<id from previous call>" tags=["launch"]Refine an idea:
update_node nodeId="<id>" newText="Launch in EU market — target Germany first"Find related ideas:
search_ideas query="EU launch"See the whole map:
get_mindmapExport for a document:
export_markdownVisualize interactively:
export_html # opens in browser — drag, zoom, download PNG or SVG from the toolbarOr paste into an online renderer:
export_json # drop the output into the visualizer at the project websiteOrg chart walkthrough
The examples/ folder has a made-up 40-person company to try the org tools on:
northwind-jan.csv: the January team asid,name,title,manager,kind,emailnorthwind-mindmap.json: the same company after a year of changes (hires, leavers, a reorg, title changes, three projects with people linked to them), with the dated history, built bybuild-sample.mjsthrough the server's own tools
To start from the finished sample, copy it over your map first (back yours up: it replaces ~/.mindkeeper/mindmap.json).
Or start from the CSV and ask your assistant, one prompt at a time:
"Import examples/northwind-jan.csv as our org chart, effective 2026-01-05." →
import_csv filePath="examples/northwind-jan.csv" effectiveDate="2026-01-05"(managers by CSV id, everyone is aperson)"Add a project Atlas API under Daniel Okafor; Priya leads it and Liam works on it." →
add_entity name="Atlas API" kind="project" parentId=<Daniel>, thenlink_entities from=<Priya> to=<Atlas> type="leads"andtype="works on""Ben Carter left on 31 March. Tariq Aziz joined Sofia's team on 2 March as ML Engineer." →
delete_node nodeId=<Ben> effectiveDate="2026-03-31",add_entity name="Tariq Aziz" kind="person" parentId=<Sofia> attrs={"title":"ML Engineer"} effectiveDate="2026-03-02""From 1 June, Sofia reports to Maya as VP Data, and Support moves under Laura." →
move_node nodeId=<Sofia> newParentId=<Maya> effectiveDate="2026-06-01",add_entitywith the same name and parent to setattrs.title,move_node nodeId=<Fatima> newParentId=<Laura>"Who reports to Daniel, all the way down?" →
reports_of personId=<Daniel> all=true"Which projects is Daniel's org on?" →
projects_of entityId=<Daniel> includeReports=true"Who's on Customer insights?" →
members_of groupId=<Customer insights>(people under it and people linked to it)"What did the org look like on 31 January?" →
snapshot_as_of date="2026-01-31""What changed between January and July?" →
diff_between dateA="2026-01-31" dateB="2026-07-31": joined, left, moved (old and new manager), changed fields, links added and removed"Give me the org chart." →
export_orgchart(Mermaidflowchart TBto paste into GitHub/Notion, plus JSON for mindkeeper-map.js) orexport_htmlfor an interactive page"Export it as CSV so I can edit it in a spreadsheet." →
export_csv; edit, thenimport_csvthe file again: rows whoseidis an existing node update it, and the moves and title changes land in the history
To see the same company drawn in the browser, with the January vs July diff highlighted, open the org chart and reorg samples of mindkeeper-js.
Cloud sync
Create ~/.mindkeeper/config.json:
{
"cloud": {
"provider": "github_gist",
"token": "ghp_YOUR_PERSONAL_ACCESS_TOKEN"
}
}Generate a token at github.com/settings/tokens with the gist scope. The first sync_cloud direction="push" auto-creates a private Gist and saves the gistId back to config.
Visualizer
Export your mindmap as JSON and drop it into the browser-based visualizer at icedsg.github.io/mindkeeper-mcp/visualize.html for zoomable, draggable, multi-layout exploration.
Import from Claude.ai
Turn your entire Claude.ai conversation history into a structured mindmap in three steps.
Step 1 — Export your Claude.ai data
Open claude.ai and go to Settings → Account
Scroll to Export Data and click Export
Claude emails you a download link within a few minutes
Download the ZIP and unzip it — find
conversations.jsoninside
Step 2 — Import and build the mindmap
Tell Claude:
Import my Claude export from /path/to/conversations.json into my mindmapReplace the path with the actual location:
Windows:
C:\Users\YourName\Downloads\claude-export\conversations.jsonMac/Linux:
/Users/YourName/Downloads/claude-export/conversations.json
Claude reads every conversation, clusters them by theme, and populates the mindmap. Trivial or very short conversations are skipped automatically.
Step 3 — Visualise the result
Export the mindmap as HTMLThe HTML file is saved to ~/.mindkeeper/mindmap-export.html and opens in any browser — no server needed. Inside the file, use the toolbar buttons to download a PNG or SVG image.
Data storage
The mindmap is stored in ~/.mindkeeper/mindmap.json. A backup is kept at ~/.mindkeeper/mindmap.json.bak and is overwritten on every save.
To reset: delete or rename mindmap.json. The server creates a fresh empty map on next use.
Development
npm run dev # tsx watch mode — restarts on file change
npm run build # compile TypeScript to ./build
npm test # run test suite (requires bash)Troubleshooting
Server not found after global install
Ensure npm's global bin directory is on your PATH:
npm config get prefix # e.g. /usr/local
# Add /usr/local/bin to PATH if missingPermission denied on ~/.mindkeeper
mkdir -p ~/.mindkeeper
chmod 755 ~/.mindkeeperMindmap is empty after restart
Check the file exists and is valid JSON:
cat ~/.mindkeeper/mindmap.json | node -e "process.stdin.resume(); let d=''; process.stdin.on('data',c=>d+=c); process.stdin.on('end',()=>console.log(JSON.parse(d).rootId))"If the file is corrupt, restore from backup:
cp ~/.mindkeeper/mindmap.json.bak ~/.mindkeeper/mindmap.jsonstdio errors in Claude Desktop logs
The server logs all operations to stderr (visible in Claude Desktop's MCP logs). Normal log lines start with [mindkeeper]. Anything else is an unexpected error.
License & Credits
MIT License — see LICENSE.
Open-source dependencies:
Package | License | Used for |
MIT | MCP server protocol | |
MIT | Node ID generation | |
ISC | Force graph & tree views in the web visualizer |
Original work:
mindkeeper-map.js — the interactive mindmap renderer used in the exported HTML and web visualizer is original code with no external dependencies. Algorithms: slot-based tree layout, cubic-bezier links, canvas measureText node sizing, per-node drag coexisting with canvas pan.
Available Tools
13 toolsadd_ideaA
Capture a new idea or concept into the persistent mindmap. ONLY use this when the user themselves has expressed an idea, question, goal, task, topic, or interest — including casual searches ('how to cook biryani'), projects they mention, or anything they bring up. NEVER invent, generate, or seed example nodes. NEVER add content Claude thought of. Before adding, check if the same idea already exists (use search_ideas) to avoid duplicates. Attach it to an existing node with parentId to build hierarchical structure. Returns the new node with its ID (needed for future parentId references).
Inputs: text (required), parentId, tags.
cloud_statusA
Check whether cloud sync is configured and show the current config (token is masked). Returns the provider, gistId (if any), and setup instructions if not configured.
Inputs: no named parameters.
delete_nodeA
Remove a node from the mindmap. Child nodes are orphaned (kept in the map but disconnected from the tree). Use search_ideas first if you are unsure of the nodeId.
Inputs: nodeId (required).
export_htmlA
Generate a self-contained interactive HTML mindmap and save it to ~/.mindkeeper/mindmap-export.html. After calling this tool, tell the user to open the file in their browser — no server required. The diagram is draggable, zoomable, and uses a side-branch layout with curved connections. The toolbar inside the HTML has buttons to download the diagram as PNG or SVG.
Inputs: no named parameters.
export_jsonA
Export the full mindmap as raw JSON — the exact contents of mindmap.json. Use this to save a backup, import into the visualizer at the project website, or inspect the raw data structure.
Inputs: no named parameters.
export_markdownA
Export the full mindmap as a Markdown nested list, ready to copy into a document or note. Tags are shown inline. Orphaned nodes are listed in a separate section.
Inputs: no named parameters.
export_mermaidA
Export the full mindmap as a Mermaid flowchart diagram. Paste the output into any Markdown renderer that supports Mermaid (GitHub, Notion, Obsidian) to get a visual graph.
Inputs: no named parameters.
export_opmlB
Export the full mindmap as OPML (Outline Processor Markup Language). OPML is supported by dedicated mindmap apps such as MindNode, OmniOutliner, and XMind for import.
Inputs: no named parameters.
get_mindmapA
Retrieve the mindmap as a nested tree. With no arguments, returns the full tree from the root plus any orphaned nodes. Pass nodeId to get just that subtree (the node and all its descendants).
Inputs: nodeId.
import_claude_exportA
Read a conversations.json file exported from Claude.ai and return a structured list of conversations. The user must first download their data at claude.ai → Settings → Account → Export Data, unzip the archive, and provide the path to conversations.json. After calling this tool, YOU (the AI) must analyze the returned conversation list and: 1) identify major topic clusters across the conversations, 2) call add_idea to create a root topic node for each cluster, 3) call add_idea to add notable sub-topics or recurring themes as children, 4) skip trivial, one-off, or very short conversations. Group by theme, not by conversation title. Aim for a clean, meaningful mindmap hierarchy. When done, call export_html so the user can visualize the result.
Inputs: filePath (required).
search_ideasA
Search the mindmap for nodes matching a query string. Scores nodes by exact match > substring > per-token matches in text and tags. Use this to find a node ID before updating/deleting, or to surface related ideas.
Inputs: query (required).
sync_cloudA
Sync the mindmap with GitHub Gist cloud storage. Requires ~/.mindkeeper/config.json with cloud credentials (see README). Use direction='push' to upload local state, 'pull' to download and overwrite local. First push auto-creates a private Gist and saves the gistId back to config.
Inputs: direction (required).
update_nodeA
Edit the text or tags of an existing node. Use this when an idea has been refined, clarified, or its scope has changed. Does not change parent/child relationships — use add_idea + delete_node to restructure.
Inputs: nodeId (required), newText (required), newTags.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
Each tool has a clearly distinct purpose: adding, updating, deleting, searching, retrieving, exporting in various formats, cloud sync, and import. There is no overlap or ambiguity between any of the tools.
All tool names follow a consistent verb_noun pattern in snake_case (e.g., add_idea, delete_node, export_html). No mixing of conventions or confusing abbreviations.
13 tools is well-scoped for a mindmap server. They cover CRUD operations, multiple export formats, cloud sync, and an import feature, without being excessive or sparse.
The toolset covers most core operations (CRUD, search, export, sync). A minor gap is the lack of a direct move/reparent operation, requiring workarounds (delete + add). Otherwise, the surface is comprehensive.
Related MCP Connectors
Turn AI conversations into visual knowledge maps. Create, connect, search, and organize thoughts.
Create mindmaps of any topic from Claude, Cursor or any AI agent. Every node can be an AI chat.
Build and edit real mind maps from a chat: brainstorm, plan, organise notes. Free, never metered.
Voice notes that organize themselves. Capture by Siri, AI auto-tags, semantic search retrieves.
Related MCP Servers
- AlicenseBqualityDmaintenancePersonal knowledge graph with 16 MCP tools. Auto-links, deduplicates, tracks themes, synthesizes insights.178MIT
- AlicenseNot gradedqualityCmaintenanceEnables semantic search across your local AI conversation history (ChatGPT, Claude, etc.) and provides tools to retrieve context, capture thoughts, and get profile summaries.72AGPL 3.0
- FlicenseNot gradedqualityDmaintenanceBuilds a persistent knowledge graph from notes and conversations, enabling semantic search, entity exploration, and GTD task management from any MCP-compatible AI assistant.3-
- AlicenseAqualityDmaintenanceBuilds a dynamic knowledge graph from your notes and uses LLM reasoning to discover blindspots, hidden cross-domain connections, track concept evolution, and spark creative inspiration.82Apache 2.0