Skip to main content
Glama
metacoma

freeplane-mcp

by metacoma

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: xmind-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-mcp

Streamable HTTP

.venv/bin/freeplane-mcp --transport http --port 8000

Konfiguration

Umgebungsvariable

CLI-Option

Standard

FREEPLANE_GRPC_HOST

--grpc-host

127.0.0.1

`FREEPLANE_GRPC_GAP»

--grpc-port

50051

FREEPLANE_GRPC_TIMEOUT

10

FREEPLANE_MCP_TRANSPORT

--transport

stdio

FREEPLANE_MCP_HOST

--host

127.0.0.1

FREEPLANE_MCP_PORT

--port

8000

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? Punkt

  • node — fügt unterhalb von insert_node_id ein

  • selected — 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

Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Persistent memory and knowledge management for AI agents with semantic search and 50+ tools.

  • Shared long-term memory vault for AI agents with 20 MCP tools.

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/metacoma/mcp-freeplane'

If you have feedback or need assistance with the MCP directory API, please join our Discord server