freeplane-mcp
freeplane-mcp
Ein MCP-Server, der KI-Agenten wie Claude Desktop, Cursor und opencode das Lesen und Ändern einer laufenden Freeplane-Mindmap über das freeplane_plugin_grpc gRPC-Plugin ermöglicht.
Im Gegensatz zu einmaligen „Markdown → Bild“-MCP-Servern werden Änderungen live auf die aktuell geöffnete Freeplane-Mindmap angewendet.
Architecture
MCP client (Claude / Cursor / opencode)
│
│ stdio or Streamable HTTP (MCP SDK)
▼
freeplane-mcp (Python, FastMCP)
│
│ gRPC (grpcio)
▼
Freeplane + org.freeplane.plugin.grpc
(port 50051)Related MCP server: mindmapio-mcp
Requirements
Python 3.10+
Freeplane mit installiertem und laufendem gRPC-Plugin
Standard-freeplane-gRPC-Port:
50051– (standard Freeplane gRPC port, im Kontext: Freeplane mit installiertem und laufendem gRPC-Plugin).
Installation
cd ~/spaces/freeplane-mcp
python -m venv .venv
.venv/bin/pip install -e .Ausführen
stdio
Standardtransport für Claude Desktop, Cursor, opencode usw.:9;
.venv/bin/freeplane-mcpStreamable HTTP
.venv/bin/freeplane-mcp --transport http --port 8000Konfiguration
Umgebungsvariable | CLI-Option | Standard |
|
|
|
`FREEPLANE_GRPC_GAP» |
|
|
| — |
|
|
|
|
|
|
|
|
|
|
MCP-Werkzeuge
export_map
Exportiert die aktuelle Mindmap als kanonisches JSON.
Die unterstützten Felder umfassen:
text, id, children, note, detail, link, tags, icons, attributes, background_color, folded und relationships.
import_map
Importiert eine Mindmap aus kanonischem JSON.
Unterstützte insert_mode-Werte:
root— fügt unterhalb des Wurzelknotens der Mindmap ein; Standard? Punktnode— fügt unterhalb voninsert_node_ideinselected— fügt unterhalb des aktuell ausgewählten Knotens ein
Test
Aktuelle Mindmap exportieren:
.venv/bin/python -c "
import sys; sys.path.insert(0, '.')
from freeplane_mcp.freeplane_grpc import FreeplaneGrpcClient
c = FreeplaneGrpcClient()
print(c.export_map())
"Eine Mindmap importieren und erneut exportieren:
.venv/bin/python -c "
import sys; sys.path.insert(0, '.')
from freeplane_mcp.freeplane_grpc import FreeplaneGrpcClient
c = FreeplaneGrpcClient()
c.import_map('{\"text\": \"Hello from MCP\", \"children\": [{\"text\": \"child 1\"}]}')
print(c.export_map())
"MCP-Client-Konfiguration
Beispielkonfiguration für stdio:
{
"mcpServers": {
"freeplane": {
"command": "/home/bebebeka/spaces/freeplane-mcp/.venv/bin/freeplane-mcp"
}
}
}HTTP-Konfiguration:
{
"mcpServers": {
"freeplane": {
"url": "http://127.0.0.1:8000/mcp"
}
}
}Hinweise zum JSON-Format
Das kanonische JSON-Format wird durch JsonHelper.java des Plugins definiert.
Der Import unterstützt _fp_import_root_node:
{"_fp_import_root_node": "root", "mindmap": {...}}fügt unterhalb des Wurzelknotens der Mindmap ein.
{"_fp_import_root_node": "ID_...", "mindmap": {...}}fügt unterhalb eines bestimmten Knotens ein.
Ohne den Wrapper wird die Mindmap unterhalb des aktuell ausgewählten Knotens eingefügt.
Auch das Legacy-Format wird unterstützt:
{"node text": {"child node": "note"}}Lizenz
MIT
Available Tools
2 toolsexport_mapA
Export the current Freeplane mind map to canonical JSON.
Returns the whole map as a JSON string. Each node has at least "text" and "id"; optional fields include "children", "note", "detail", "link", "tags", "icons", "attributes", "background_color", "folded" and "relationships".
Inputs: no named parameters. Returns: result
import_mapA
Import a mind map (canonical JSON) into the running Freeplane instance.
Inputs: map_json (required), insert_mode, insert_node_id. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
export_map and import_map have clearly opposite purposes and there is no overlap. An agent can unambiguously determine which to call based on the direction of data transfer.
Both tool names follow the same verb_noun pattern: export_map and import_map. The naming is simple, predictable, and perfectly matches the server's purpose.
Two tools is a very minimal set, but each covers one half of the map exchange workflow. It feels slightly thin for a general MCP server, though the scope is focused.
The two tools provide a complete round-trip: export the map as JSON and import it back. For this server's apparent purpose of whole-map synchronization, there are no obvious gaps.
Maintenance
Related MCP Connectors
Read and write your Matryoshka Mind Map (nested mind map / TODO app) from AI agents.
Mind maps with a full document in every node. Read, search and edit your maps from AI tools.
Read and edit your MindMapist mind maps: branches, notes, styles and tables.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to read and write XMind mind map files, allowing generation, editing, and analysis of mind maps directly in XMind.MIT
- AlicenseAqualityBmaintenanceEnables AI agents to build and interact with mind maps on mindmap.io. Agents can create, read, update, and delete maps and nodes, run prompts on nodes, and auto-expand topics into follow-up questions.13MIT
- AlicenseNot gradedqualityCmaintenanceA local MCP server that combines a browser mind map UI with a Streamable HTTP MCP endpoint, letting AI agents create, edit, and manage mind maps in real time through tools like mindmap_apply_op.11 npmMIT
- AlicenseAqualityNot gradedmaintenanceMCP server for MindNode that lets AI agents read mind maps as Markdown outlines and view rendered previews. It also supports creating new mind maps from outlines and opening maps in the app.517 npm1MIT