XMind 生成器 MCP 服务器借助 MCP(模型上下文协议),可生成 XMind 思维导图。它允许大语言模型 (LLMs) 通过 MCP 协议创建结构化的思维导图,为用户提供便捷的思维导图生成体验。
XMind 生成器 MCP 服务器允许大语言模型 (LLMs) 通过 MCP 协议创建结构化的思维导图。以下是使用该服务器的相关信息。
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"xmind-generator": {
"command": "npx",
"args": ["xmind-generator-mcp"],
"env": {
"outputPath": "/path/to/save/xmind/files",
"autoOpenFile": "false"
}
}
}
}
git clone https://github.com/BangyiZhang/xmind-generator-mcp.git
cd xmind-generator-mcp
npm install
npm run build
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"xmind-generator": {
"command": "node",
"args": ["path/to/xmind-generator-mcp/dist/index.js"],
"env": {
"outputPath": "/path/to/save/xmind/files",
"autoOpenFile": "false"
}
}
}
}
path/to/xmind-generator-mcp 替换为您实际克隆项目的路径。⚠️ 重要提示
env部分是可选的。它允许您为服务器设置环境变量:
outputPath:指定输出文件夹的位置,默认为./xmind_output。autoOpenFile:控制是否自动打开生成的思维导图,值为"true"或"false"。
生成一个 XMind 思维导图。
| 属性 | 详情 |
|---|---|
| 参数名 | content |
| 类型 | string |
| 是否必填 | 是 |
| 描述 | 要生成的内容,使用 JSON 格式定义思维导图的结构和内容。 |
{
"title": "我的第一个 XMind 思维导图",
"content": {
"topic": "开始",
"children": [
{
"topic": "步骤 1",
"notes": "执行第一步操作"
},
{
"topic": "步骤 2",
"notes": "执行第二步操作",
"children": [
{
"topic": "子步骤 2.1",
"notes": "详细说明步骤 2 的子步骤"
}
]
}
]
}
}
生成的 XMind 文件将保存到您指定的 outputPath 或默认文件夹中。
npx xmind-generator-mcp --generate-mind-map --content='{
"title": "项目计划",
"content": {
"topic": "项目概述",
"children": [
{
"topic": "目标",
"notes": "完成产品开发"
},
{
"topic": "时间表",
"notes": "截止日期:2024-12-31",
"children": [
{
"topic": "阶段 1",
"notes": "需求分析",
"end_date": "2024-01-15"
},
{
"topic": "阶段 2",
"notes": "开发",
"end_date": "2024-03-15"
}
]
}
]
}
}'
此项目使用 MIT 许可证。