Xmind Generator MCP Server

by BangyiZhang
Verified

local-only server

The server can only run on the client’s local machine because it depends on local resources.

Xmind 生成器 MCP 服务器

用于生成 Xmind 思维导图的 MCP(模型上下文协议)服务器。该服务器允许法学硕士 (LLM) 通过 MCP 协议创建结构化思维导图。

特征

  • 生成具有分层主题结构的 Xmind 思维导图
  • 支持主题注释、标签和标记
  • 保存思维导图到本地文件
  • 轻松与 Claude Desktop 和其他 MCP 客户端集成

先决条件

  • Node.js :需要版本 18 或更高版本
  • Xmind :安装Xmind桌面应用程序来打开和编辑生成的思维导图
  • Claude Desktop :需要使用此工具作为扩展

使用 Claude Desktop 进行设置

选项 1:使用 npx(推荐)

  1. 创建或编辑 Claude Desktop 配置文件:
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  2. 添加以下配置:
    { "mcpServers": { "xmind-generator": { "command": "npx", "args": ["xmind-generator-mcp"], "env": { "outputPath": "/path/to/save/xmind/files", "autoOpenFile": "false" } } } }
  3. 重启Claude桌面
  4. 开始在对话中使用 Xmind 生成器

选项 2:本地安装

  1. 克隆存储库:
    git clone https://github.com/BangyiZhang/xmind-generator-mcp.git cd xmind-generator-mcp npm install npm run build
  2. 创建或编辑 Claude Desktop 配置文件:
    • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  3. 添加以下配置:
    { "mcpServers": { "xmind-generator": { "command": "node", "args": ["path/to/xmind-generator-mcp/dist/index.js"], "env": { "outputPath": "/path/to/save/xmind/files", "autoOpenFile": "false" } } } }
  4. path/to/xmind-generator-mcp替换为克隆项目的实际路径
  5. 重启Claude桌面
  6. 开始在对话中使用 Xmind 生成器

注意env部分是可选的。它允许您为服务器设置环境变量:

  • outputPath :Xmind 文件的默认保存目录或文件路径。此设置可以通过工具调用中的outputPath参数进行覆盖。
  • autoOpenFile :控制生成的 Xmind 文件是否自动打开。设置为“false”表示禁用自动打开(默认为“true”)。

可用工具

生成思维导图

从主题的层次结构生成 Xmind 思维导图。

参数:

  • title (字符串):思维导图的标题(根主题)
  • topics (数组):思维导图中要包含的主题数组
    • title (字符串):主题的标题
    • ref (字符串,可选):主题的参考 ID
    • note (字符串,可选):主题的注释
    • labels (字符串数组,可选):主题的标签
    • markers (字符串数组,可选):主题的标记(格式:“Category.name”,例如“Arrow.refresh”)
    • children (数组,可选):子主题数组
  • relationships (数组,可选):主题之间的关系数组
  • outputPath (字符串,可选):Xmind 文件的自定义输出路径。如果已设置,则覆盖环境变量。

例子

以下是如何使用generate-mind-map工具的示例:

{ "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" } ] } ] }

执照

麻省理工学院

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

MCP 服务器允许 LLM 创建具有分层主题结构的结构化 Xmind 思维导图,支持注释、标签和标记等功能。

  1. Features
    1. Prerequisites
      1. Setup with Claude Desktop
        1. Option 1: Using npx (Recommended)
        2. Option 2: Local Installation
      2. Available Tools
        1. generate-mind-map
      3. Example
        1. License
          ID: 4gw0cpeozg