xmind-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| read_structureA | 读取 XMind 文件的节点树结构,返回带层级和节点 ID 的文本。支持 max_depth/max_nodes 防止大文件撑爆上下文。 |
| read_allA | 一步到位:读取节点树 + 图片 + notes/labels/markers/超链接/样式元数据。默认把每个图片节点的原图作为图片一起返回,交给多模态模型直接看。 |
| list_imagesB | 列出 XMind 文件中所有包含图片的节点(ID + 标题 + 图片引用)。 |
| get_imageA | 读取节点的图片本身并作为图片返回,多模态模型可直接看图(图表、截图、手写内容都能理解)。默认把长边压到 1024 并转 JPEG,控制 token 成本。 |
| get_previewA | 返回整图预览,让模型先看一眼整体版式和配色。优先用 XMind 保存时生成的缩略图(最接近软件里的真实效果);没有缩略图时自动用 matplotlib 自绘一张近似图。 |
| find_nodeA | 按标题关键词搜索节点,返回节点 ID、标题和层级路径,方便编辑工具使用。 |
| get_nodeB | 读取单个节点的完整信息:标题、层级、类型、父节点、路径、备注、标记、标签、超链接、图片、样式、子节点。 |
| analyze_fileA | 对 XMind 文件做统计和体检:节点数、最大深度、备注/图片/标记统计、重复标题、空标题、特殊节点。 |
| add_nodeB | 在指定父节点下添加子节点,可用 before_id/after_id 指定插入到某个兄弟节点前后。 |
| update_nodeB | 更新节点属性。传入 None 或省略的字段不会被修改。 |
| delete_nodeA | 删除节点及其所有子节点。不能删除根主题。 |
| move_nodeA | 把节点移动到新的父节点下,可用 before_id/after_id 指定插入位置。 |
| save_fileA | 保存对 XMind 文件的修改。可另存为新文件或覆盖原文件。示例: output_path='D:\docs\output.xmind' |
| repair_fileA | 修复打不开的 XMind 文件:自动补全 metadata.json、content.xml、默认主题、revisionId 等 XMind 必需内容;若 content.json 缺失或损坏,会重建空白画布并保留 zip 内的附件资源。覆盖保存前会自动备份原文件。 |
| export_markdownC | 把 XMind 节点树导出为 Markdown 大纲。 |
| create_fileA | 从零新建一个 XMind 文件。topics 为嵌套结构:[{"title": "...", "notes": "...", "children": [...]}]。 |
| import_markdownA | 把传入的 Markdown 文本逐行原样转成新的 XMind 文件:所有文字(标题、列表、表格、代码块、引用)都会保留,不做概括或精简。必须把完整原文传给 markdown 参数;如果 Markdown 在磁盘上,请改用 import_markdown_file。 |
| import_markdown_fileA | 直接读取磁盘上的 Markdown 文件并逐行原样转成新的 XMind 文件:所有文字(标题、列表、表格、代码块、引用)都会保留,不做概括或精简。模型只需传文件路径,不要自行改写内容。 |
| apply_to_matchingB | 按标题关键词批量修改节点:设置样式、添加/移除标记、添加/移除标签。 |
| export_textA | 把 XMind 节点树导出为纯文本大纲(带缩进层级)。 |
| set_node_styleA | 设置节点样式:重要程度(极其重要/重要/删去/默认)、字体、字号(8/10/12/14/18/24/36/48/60)、文字颜色、加粗/斜体/删除线/下划线/大小写变换、背景色、边框色/线型/宽度、节点形状(矩形/圆角矩形/下划线/双下划线/圆形/椭圆形/菱形/平行四边形/跑道/切角矩形/六边形/竖胶囊)、连线颜色/线宽、对齐。传 None 表示不修改该项。颜色用 #RRGGBB、#RRGGBBAA 或「4E0D58 60%」透明度写法。 |
| set_sheet_layoutA | 切换工作表的布局结构,支持中文名:思维导图 / 逻辑图 / 括号图 / 组织结构图 / 树形图 / 时间轴 / 鱼骨图 / 矩阵图 / 树型表格,也支持 XMind 内部 ID。 |
| set_branch_styleB | 设置某个节点向外分支的连线样式:分支类型(圆角折线/折线/直线/曲线/圆弧/手绘/圆角手绘)、终点样式(圆点/三角形/菱形/双箭头等)、粗细(极细/细/中等/粗/极粗)、颜色、线型。 |
| set_theme_styleA | 设置主题级默认样式,影响整个层级的节点:中心主题 / 分支主题 / 第三层级主题 / 细分主题 / 自由主题。参数与 set_node_style 一致(font_color、font_size、shape、background_color 等,不含 importance)。 |
| add_imageA | 给节点插入一张本地图片(复制进 xmind 包并更新引用,支持 png/jpg/gif/bmp/webp)。 |
| add_summaryA | 给父节点的连续子节点区间添加概要(summary)。start_id/end_id 必须是父节点的直属子节点。 |
| add_boundaryA | 给父节点的连续子节点区间添加边界(boundary)。start_id/end_id 必须是父节点的直属子节点。 |
| add_relationshipB | 在指定工作表中添加一条关系线(relationship),连接两个任意节点。 |
| remove_relationshipC | 按 ID 删除一条关系线。 |
| remove_boundaryC | 按 ID 删除一个边界。 |
| apply_style_presetA | 一键给整张图套用配色预设。可选:清新蓝、暖阳橙、莫兰迪绿。 |
| set_hyperlinkA | 给节点设置超链接。url 为空则移除超链接。 |
| add_markerA | 给节点添加标记图标。常用:priority-1~9(优先级)、task-start/task-oct/task-quarter/task-half/task-3q/task-done/task-pause(任务进度)、smiley-、flag-、star-*。 |
| remove_markerC | 移除节点的指定标记图标。 |
| add_labelC | 给节点添加一个标签。 |
| remove_labelC | 移除节点的一个标签。 |
| add_nodesB | 批量添加多个子节点到指定父节点下。 |
| duplicate_nodeA | 把节点(含其整棵子树)复制到新父节点下,生成新的 ID。 |
| list_backupsA | 列出某个 xmind 文件已有的自动备份(新到旧),包含路径、大小和时间。 |
| restore_backupA | 把指定备份恢复到目标文件(覆盖前会把当前文件再备份一份,保证可逆)。 |
| export_svgA | 把节点树导出为示意图 SVG 文件(用于人工查看美化效果;模型可继续用 analyze_style 获取结构化反馈)。 |
| analyze_styleA | 样式审计:输出当前工作表各主题层级的默认样式、整张图的颜色/字体/形状使用统计,可选列出每个节点的有效样式。 |
| list_attachmentsA | 列出 xmind 包内的附件/图片资源,标注哪些被节点引用、哪些未被引用。 |
| remove_unused_attachmentsB | 找出未被任何节点引用的附件/图片,保存时移除,减小文件体积。 |
| batch_update_titlesB | 按关键词或正则批量替换节点标题,返回被修改的节点。 |
| delete_empty_nodesA | 删除所有空标题的普通节点(含其子树),跳过根主题和概要/批注节点。 |
| merge_duplicate_nodesA | 合并标题相同的兄弟节点:保留第一个,其余节点的子节点并入后删除。 |
| notes_to_childrenB | 把节点备注的每一行转成一个子节点(默认转换后清空备注)。 |
| children_to_notesC | 把节点的直接子节点标题合并成备注(默认转换后删除子节点)。 |
| auto_numberA | 给节点自动编号:decimal 按每个父节点 1.2.3. 编号;hierarchical 按 1. / 1.1. / 1.1.1. 层级编号。已有编号会被替换。 |
| list_sheetsA | 列出文件中的所有工作表:索引、标题、根主题、节点数。 |
| add_sheetC | 新增一张工作表。 |
| rename_sheetC | 重命名工作表。 |
| delete_sheetB | 删除工作表(至少保留一张)。 |
| move_sheetC | 移动工作表顺序。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 55 tools
Most tools target a clearly distinct resource+action (e.g. add_marker vs add_label vs add_boundary, set_node_style vs set_sheet_layout vs set_theme_style). A few pairs overlap enough to risk misselection: read_structure vs read_all vs get_node, read_all vs read_structure, export_markdown vs export_text, import_markdown vs import_markdown_file, and apply_style_preset vs set_theme_style. Descriptions do draw the boundaries, so an attentive agent can pick correctly, but the surface is dense enough that mistakes are plausible.
The dominant convention is snake_case verb_noun or verb_object (get_node, add_marker, remove_label, set_node_style, list_sheets, delete_sheet). There are minor deviations like auto_number, notes_to_children, children_to_notes, and apply_to_matching (no object named), but nothing that breaks predictability. No camelCase/snake_case mixing.
55 tools for a rich file format (nodes, sheets, styles, boundaries, summaries, relationships, markers, labels, images, attachments, backups, import/export) is defensible, but it is heavy and several narrow tools could be consolidated. The remove_* family (remove_boundary, remove_relationship, remove_marker, remove_label), the sheet trio (rename/move/add) and the import pair suggest a surface that grew organically. Agents must scan a large catalog to find the right tool for simple tasks.
Coverage is broad: full node CRUD plus move/duplicate, sheet lifecycle, style presets and theme/branch/node styles, visual elements (boundary, summary, relationship, marker, label, hyperlink, image), import/export in several formats, backups/repair, and analysis/inspection tools. Minor gaps remain, such as no way to remove a summary (only add_summary exists) and no dedicated standalone note getter/setter outside update_node. These are workarounds, not dead ends.