MCP XMind 服务器
用于分析和查询 XMind 思维导图的模型上下文协议服务器。该工具提供了强大的功能,可用于搜索、提取和分析 XMind 文件的内容。
特征
- 🔍 跨思维导图的智能模糊搜索
- 📝 任务管理和跟踪
- 🌲 分层内容导航
- 🔗 链接和参考提取
- 📊 多文件分析
- 🏷️ 标签和标记支持
- 📂 目录扫描
- 🔒 安全目录访问
安装
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 XMind 服务器:
npx -y @smithery/cli install @41px/mcp-xmind --client claude
手动安装
npm install @modelcontextprotocol/sdk adm-zip zod
npm install --save-dev typescript @types/node
用法
启动服务器
node dist/index.js <allowed-directory> [additional-directories...]
可用工具
- read_xmind
- 解析和分析 XMind 文件
- 提取完整的思维导图结构
- 获取待办任务
- list_xmind_directory
- 读取多个 xmind 文件
- 搜索xmind文件
- 提取节点
- 按id提取节点
- 搜索节点
示例
搜索节点
{
"name": "search_nodes",
"arguments": {
"path": "/path/to/file.xmind",
"query": "project",
"searchIn": ["title", "notes"],
"caseSensitive": false
}
}
提取节点
{
"name": "extract_node",
"arguments": {
"path": "/path/to/file.xmind",
"searchQuery": "Feature > API"
}
}
列出任务
{
"name": "get_todo_tasks",
"arguments": {
"path": "/path/to/file.xmind"
}
}
配置
开发配置
用于开发的claude_desktop_config.json
示例:
{
"xmind": {
"command": "node",
"args": [
"/Users/alex/Src/mcp-xmind/dist/index.js",
"/Users/alex/XMind"
]
}
}
生产配置
使用 npmjs 进行生产的示例claude_desktop_config.json
:
{
"xmind": {
"command": "npx",
"args": [
"-y",
"@41px/mcp-xmind",
"/Users/alex/XMind"
]
}
}
安全
- 仅允许访问指定目录
- 路径规范化和验证
- 无效访问尝试的错误处理
发展
建筑
类型检查
MCP 检查器
npx @modelcontextprotocol/inspector node dist/index.js /Users/alex/XMind