npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@lucianaib/mind-map-mcp

v3.0.0

Published

一个用于生成思维导图的 MCP 服务器

Readme

mind-map-mcp

一个用于生成思维导图的 MCP (Model Context Protocol) 服务器。

功能特性

  • 🧠 根据文本内容自动生成思维导图
  • 🔗 返回可访问的思维导图图片链接
  • 🚀 支持 CodeBuddy、Cursor、Qoder 等 MCP 客户端
  • 🌐 基于 Coze API 的强大思维导图生成能力

创新点

首次使用 Coze 作为核心工作流制作MCP:

  • 无需考虑报错。报错可以直接通过 Coze 找到对应原因
  • 逻辑处理。可以任意修改 Coze 的工作流,更新发布即可,无需重新修改mcp
  • 已于维护

安装

通过 NPM 安装

npm install -g @lucianaib/mind-map-mcp

通过 npx 直接使用

npx @lucianaib/mind-map-mcp

配置

在 CodeBuddy、 Qoder中配置

  1. 打开 CodeBuddy 设置
  2. 找到 MCP 服务器配置
  3. 添加新的服务器:
{
  "mcpServers": {
    "mind-map": {
      "command": "npx",
      "args": ["@lucianaib/mind-map-mcp"]
    }
  }
}

![CodeBuddy 配置成功示例.png](src\CodeBuddy 配置成功示例.png)

在 Cursor 中配置

  1. 打开 Cursor 设置 (Ctrl/Cmd + ,)
  2. 搜索 "MCP"
  3. 在 MCP 服务器配置中添加:
{
  "mind-map": {
    "command": "npx",
    "args": ["@lucianaib/mind-map-mcp"]
  }
}

使用方法

配置完成后,你可以在支持 MCP 的工具中使用以下功能:

生成思维导图

用 MCP 帮我生成一个关于"分布式系统架构"的思维导图

实战生成思维导图.png

或者直接调用工具:

使用 generate_mindmap 工具,内容为:"机器学习的基本概念和应用"

可用工具

generate_mindmap

根据输入内容生成思维导图。

参数:

  • content (string, 必需): 要转换为思维导图的内容描述

返回:

  • 思维导图的图片链接
  • 生成状态信息

开发

本地开发

  1. 克隆仓库:
git clone https://github.com/lfrbmw/Mind-map-mcp.git
cd Mind-map-mcp
  1. 安装依赖:
npm install
  1. 构建项目:
npm run build
  1. 启动开发模式:
npm run dev

项目结构

Mind-map-mcp/
├── src/
│   └── index.ts          # 主要的 MCP 服务器代码
├── dist/                 # 编译后的 JavaScript 文件
├── package.json          # 项目配置
├── tsconfig.json         # TypeScript 配置
└── README.md            # 项目说明

API 说明

本工具使用 Coze API 来生成思维导图。API 详情:

  • 端点: https://api.coze.cn/v1/workflow/run
  • 方法: POST
  • 认证: Bearer Token
  • 返回: 思维导图图片链接

故障排除

常见问题

  1. "未知工具" 错误

    • 确保 MCP 服务器正确配置
    • 检查工具名称是否正确 (generate_mindmap)
  2. API 请求失败

    • 检查网络连接
    • 确认 API 服务状态
  3. 中文编码问题

    • 本工具已处理中文编码,支持中文内容输入

调试模式

启动时会在 stderr 输出调试信息,可以通过查看日志来诊断问题。

许可证

MIT License

贡献

欢迎提交 Issue 和 Pull Request!