XMind MCP Server
Click on "Install 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., "@XMind MCP ServerCreate a mind map about product launch"
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.
🧠 XMind MCP Server
An MCP server for incremental editing of XMind mind maps. Existing XMind MCP tools require the LLM to output an entire mind map as one monolithic JSON blob -- that's token-expensive, error-prone, and makes it impossible to edit existing files. xmind-mcp takes a different approach: 19 atomic tools that let an LLM read, create, and surgically edit .xmind files one operation at a time using stable topic IDs.
Built with FastMCP (Python) and managed with Poetry.
Unfortunately, XMind does not support live-reloading files from disk. If you have the file open in XMind while making changes via MCP tools, you'll need to close and reopen it to see the updates.
🚀 Quick Start
Prerequisites
Python 3.12+
Install
git clone https://github.com/sc0tfree/xmind-mcp.git
cd xmind-mcp
poetry installConfigure Your MCP Client
Add the following to your MCP configuration (e.g. .cursor/mcp.json for Cursor, or ~/Library/Application Support/Claude/claude_desktop_config.json for Claude Desktop):
{
"mcpServers": {
"xmind": {
"command": "poetry",
"args": ["-C", "/path/to/xmind-mcp", "run", "xmind-mcp"]
}
}
}Restart the application after editing.
Related MCP server: Markdown Editor MCP Server
🛠️ Tools
All tool names are prefixed with xmind_ to avoid collisions with other MCP servers.
Map Management
Tool | What it does |
| Create a new |
| Read the full tree structure with all IDs (supports |
| Recursively list |
Topic CRUD
Tool | What it does |
| Add a single child topic to a parent |
| Add a whole branch with nested children in one call |
| Update title, notes, labels, markers, href, task status, or structure class |
| Remove a topic and all its descendants |
| Move a topic to a different parent or reorder among siblings |
Search & Query
Tool | What it does |
| Get full JSON details of a topic and its subtree by ID |
| Full-text search across titles, notes, and labels |
Sheet Management
Tool | What it does |
| Add a new sheet to the file |
| Rename a sheet |
| Delete a sheet (cannot delete the last one) |
Relationships
Tool | What it does |
| Create a connection line between two topics |
| Remove a relationship |
Annotations
Tool | What it does |
| Add a visual boundary grouping child topics |
| Remove a boundary |
| Add a summary topic spanning a range of children |
| Remove a summary |
⚙️ How It Works
Every tool follows the same pattern:
Load the
.xmindfile (a ZIP containingcontent.json)Find the target topic/sheet by its stable UUID
Mutate the in-memory structure
Validate against a JSON schema
Save back to the ZIP
Files are small (KB range), so this round-trip is instant. The LLM workflow is:
xmind_open_map → see the tree with IDs → xmind_add_topic / xmind_update_topic / etc.💡 Practical Example
User: Create a mind map about our product launch
LLM: xmind_create_map("~/Desktop/launch.xmind", "Product Launch")
xmind_add_topic(path, root_id, "Marketing")
xmind_add_topic(path, root_id, "Engineering")
xmind_add_topic(path, root_id, "Sales")
xmind_add_subtree(path, marketing_id, [
{"title": "Social Media", "children": [{"title": "Twitter"}, {"title": "LinkedIn"}]},
{"title": "Blog Posts"},
])
User: Add a note to Engineering about the timeline
LLM: xmind_update_topic(path, engineering_id, notes="Target launch: Q2 2026")
User: Actually, move Sales under Marketing
LLM: xmind_move_topic(path, sales_id, marketing_id)Each call is a single, focused operation. No need to regenerate the entire tree.
🧪 Development
Run Tests
poetry run pytest -v70+ automated tests cover every tool with round-trip validation (create/modify -> reload from disk -> assert correctness -> schema validation).
Interactive Tests
A visual test harness that builds a real .xmind file through 6 stages, pausing at each checkpoint so you can open it in XMind and verify:
poetry run interactive-testsProject Structure
xmind_mcp/
server.py # FastMCP server with all 19 tools
xmind_file.py # XMindFile class: ZIP I/O, tree traversal, lookups
validator.py # JSON schema for content.json validation
utils.py # UUID generation
tests/
test_tools.py # Round-trip tests for every tool
test_xmind_file.py # XMindFile unit tests
test_validator.py # Schema validation tests
manual_checkpoint.py # Interactive 6-stage visual test
conftest.py # Shared fixturesThis server cannot be installed
Maintenance
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
- AlicenseAqualityDmaintenanceProvides powerful Markdown document editing capabilities with thread-safe operations, atomic transactions, and comprehensive validation.Last updated103MIT
- AlicenseCquality-maintenanceProvides semantic editing tools for Markdown files, allowing structured manipulation of document elements through hierarchical paths rather than raw text operations. Supports navigation, search, content replacement, element insertion/deletion, undo functionality, and YAML frontmatter management.Last updated152
- FlicenseBqualityDmaintenanceGenerates ProcessOn mind maps from Markdown content. Provides tools to check API key validity and create mind maps.Last updated24096
- AlicenseAqualityDmaintenanceConverts XMind mind map files into structured Markdown documents, preserving hierarchy and optionally including metadata.Last updated22MIT
Related MCP Connectors
Create, validate, edit, export (markdown/svg/png/mermaid), and search JSON Canvas files.
MCP-native open-source Notion alternative: read & write pages, databases and kanban boards.
Formula-backed WorkPaper tools for workbook readback, input edits, and JSON persistence.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/sc0tfree/xmind-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server