Living Mindmap
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., "@Living Mindmapadd a node 'prompt caching' under 'LLM cost optimization'"
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.
Living Mindmap
A local-first visual knowledge graph that people edit by hand and AI agents extend through 12 MCP tools, with duplicate protection and provenance on every AI-added node.

The screenshot shows the bundled sample map, "Learning Transformers (sample)". All data in this repository is sample data. There is no hosted demo. The app runs locally, so see Quick start.
In 30 seconds
Problem: Ideas from long AI conversations vanish into chat history.
Build: One SQLite store shared by a React Flow UI, a REST API, and a stdio MCP server with near-duplicate detection.
Result: 42 tests, 0 failures across 160 real MCP calls, 0.5 ms median per call.
Everything is stored in one SQLite file. There are no accounts and no cloud services.
Related MCP server: trailmem
Quick start
Requires Node 20 or newer.
git clone <this repository> mindmap-mcp
cd mindmap-mcp
npm install
npm startOpen http://127.0.0.1:4317 and click Load demo maps (or run npm run seed) to load the sample map. Data lives in ./data/mindmap.db and can be moved with the MINDMAP_DB environment variable. For hot reload during development, run npm run dev.
To confirm the MCP server starts and lists its tools with a real client, run npm run verify:mcp.
Connect an AI client
Replace /ABSOLUTE/PATH/TO/mindmap-mcp with the folder where you cloned the project.
Claude Code:
claude mcp add living-mindmap -e MINDMAP_DB=/ABSOLUTE/PATH/TO/mindmap-mcp/data/mindmap.db -- npx tsx /ABSOLUTE/PATH/TO/mindmap-mcp/src/mcp/index.tsClaude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"living-mindmap": {
"command": "npx",
"args": ["tsx", "/ABSOLUTE/PATH/TO/mindmap-mcp/src/mcp/index.ts"],
"env": { "MINDMAP_DB": "/ABSOLUTE/PATH/TO/mindmap-mcp/data/mindmap.db" }
}
}
}Then try this prompt: "Add our discussion about episodic versus semantic agent memory to my Living Mindmap."
MCP tools
Tool | Purpose |
| Find the right map |
| Compact nodes and edges of a map |
| Full-text search in one map or all maps |
| One node in full with parents, children and sources |
| Add a concept, optionally linked to a parent with a relationship label |
| Replace fields, or enrich with |
| Requires |
| Connect two nodes (idempotent) |
| Remove one connection |
| A node with its descendants, or its ancestors |
| Attach a URL as evidence, without duplicates |
| Markdown or JSON context for a root, branch or list of ids |
Two behaviors are worth knowing. First, create_node rejects near-duplicate titles and returns the candidates, and allow_duplicate: true overrides the check. Second, every node written through MCP carries provenance: ai, and the UI shows a small AI marker. Errors are structured as { error, code, details } and never crash the server.
Architecture
flowchart LR
Human([Person]) --> UI[React + React Flow UI]
UI -->|REST, loopback only| API[Express API]
Agent([AI client]) -->|MCP over stdio| MCP[MCP server]
API --> Store[Store]
MCP --> Store
Store --> DB[(SQLite file, WAL mode)]The web server and the MCP server are separate processes that open the same SQLite file. The UI polls every few seconds, so edits made by an agent appear in an open browser tab.
src/core/ schema, migrations, Store (all reads and writes), search, duplicate detection, AI context builder
src/shared/ pure graph helpers (branches, collapse, tidy layout)
src/server/ Express REST API (loopback only) and static UI hosting
src/mcp/ MCP server (stdio) on top of the same Store
src/web/ React and React Flow UI
tests/ vitest suites for store, graph, context, REST API and MCP tools
scripts/ MCP verification, benchmark, screenshot and browser end-to-end scriptsUsing the web UI
Do this | Get this |
Double-click the canvas or press | New idea at that spot |
| Add a child |
| Add a sibling |
| Add a related idea |
| Select a branch |
Copy as AI Context | Markdown for the selected nodes |
| Search all maps |
Measured results
The benchmark in scripts/bench.ts starts the real stdio server and runs a scripted 16-call task ten times (list, create ten nodes, then read the map back five ways). On Node 26, the last run completed 160 calls with 0 failures and a median round trip of about 0.5 ms (95th percentile about 1.2 ms). Run it yourself with npm run bench. Numbers vary by machine.
Tests
npm test runs 42 vitest tests across 6 files, and all of them pass. The suites cover the store, graph layout, context export, the REST API, the seed data and the MCP tool handlers through an in-memory MCP client. npm run typecheck and npm run lint are clean, and GitHub Actions runs install, typecheck, lint, build, test and the MCP verification on Node 20 and 22. The browser acceptance flow in npm run e2e needs Google Chrome.
Built by
Built by Garfield Greg Lim III. Portfolio
License
MIT, copyright 2026 Garfield Greg Lim III.
This server cannot be deployed
Maintenance
Related MCP Connectors
Shared long-term memory for AI agents: save and recall context as a searchable knowledge graph.
Persistent memory and knowledge graphs for AI agents. Hybrid search, context checkpoints, and more.
Graph-native persistent memory for AI agents — 33 MCP tools, zero-LLM writes.
- MindlifyOAuthco.mindlify
Turn AI conversations into visual knowledge maps. Create, connect, search, and organize thoughts.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables LLMs to build and explore a cognitive neuroscience-inspired knowledge graph with SQLite, supporting search, graph traversal, temporal sequences, and structured reasoning.24MIT
- AlicenseAqualityAmaintenancePersistent, local-first graph memory for AI coding agents. Provides durable cross-session memory via a local SQLite knowledge graph with typed relationships.61MIT
- AlicenseNot gradedqualityAmaintenanceLocal-first, single-file, knowledge-graph memory layer for AI agents.1MIT
- AlicenseNot gradedqualityAmaintenanceLocal-first, source-grounded memory for AI agents, with citations, bitemporal history, review-gated corrections, and MCP tools for search and recall.48 PyPI3Apache 2.0