xmind generator mcp
An MCP server that allows LLMs to create structured Xmind mind maps with hierarchical topic structures, supporting features like notes, labels, and markers.
An MCP server that allows LLMs to create structured Xmind mind maps with hierarchical topic structures, supporting features like notes, labels, and markers.
An MCP (Model Context Protocol) server for generating Xmind mind maps. This server allows LLMs to create structured mind maps through the MCP protocol.
~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%Claudeclaude_desktop_config.json
Add the following configuration:
{
"mcpServers": {
"xmind-generator": {
"command": "npx",
"args": ["xmind-generator-mcp"],
"env": {
"outputPath": "/path/to/save/xmind/files",
"autoOpenFile": "false"
}
}
}
}
Restart Claude Desktop
Clone the repository:
git clone https://github.com/BangyiZhang/xmind-generator-mcp.git
cd xmind-generator-mcp
npm install
npm run build
Create or edit the Claude Desktop configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%Claudeclaude_desktop_config.json
Add the following configuration:
{
"mcpServers": {
"xmind-generator": {
"command": "node",
"args": ["path/to/xmind-generator-mcp/dist/index.js"],
"env": {
"outputPath": "/path/to/save/xmind/files",
"autoOpenFile": "false"
}
}
}
}
Replace path/to/xmind-generator-mcp
with the actual path to your cloned project
Note: The env
section is optional. It allows you to set environment variables for the server:
- outputPath
: Default directory or file path where Xmind files will be saved. This can be overridden by the outputPath
parameter in the tool call.
- autoOpenFile
: Controls whether generated Xmind files are automatically opened after creation. Set to "false" to disable auto-opening (default is "true").
Generates an Xmind mind map from a hierarchical structure of topics.
Parameters:
- title
(string): The title of the mind map (root topic)
- topics
(array): Array of topics to include in the mind map
- title
(string): The title of the topic
- ref
(string, optional): Reference ID for the topic
- note
(string, optional): Note for the topic
- labels
(array of strings, optional): Labels for the topic
- markers
(array of strings, optional): Markers for the topic (format: "Category.name", e.g., "Arrow.refresh")
- children
(array, optional): Array of child topics
- relationships
(array, optional): Array of relationships between topics
- outputPath
(string, optional): Custom output path for the Xmind file. This overrides the environment variable if set.
Here's an example of how to use the generate-mind-map
tool:
{
"title": "Project Plan",
"topics": [
{
"title": "Research",
"ref": "topic:research",
"note": "Gather information about the market",
"children": [
{
"title": "Market Analysis",
"labels": ["Priority: High"]
},
{
"title": "Competitor Research",
"markers": ["Task.quarter"]
}
]
},
{
"title": "Development",
"children": [
{
"title": "Frontend",
"markers": ["Arrow.refresh"]
},
{
"title": "Backend"
}
]
}
]
}
MIT