一个用于分析和查询XMind思维导图的Model Context Protocol服务器。此工具提供了强大的搜索、提取和分析XMind文件内容的能力。
要通过Smithery自动安装XMind Server for Claude Desktop,请执行以下命令:
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 <允许的目录> [附加目录...]
read_xmind
get_todo_tasks
list_xmind_directory
read_multiple_xmind_files
search_xmind_files
extract_node
extract_node_by_id
search_nodes
{
"name": "search_nodes",
"arguments": {
"path": "/path/to/file.xmind",
"query": "项目",
"searchIn": ["标题", "笔记"],
"caseSensitive": false
}
}
{
"name": "extract_node",
"arguments": {
"path": "/path/to/file.xmind",
"searchQuery": "特性 > 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"
]
}
}
npm run build
npm run type-check
npx @modelcontextprotocol/inspector node dist/index.js /Users/alex/XMind