Back to MCP directory
publicPublicdnsLocal runtime

comfy-ui-mcp-server

一个连接本地ComfyUI的MCP服务器,提供笔记存储和摘要生成功能

article

README

🚀 用于连接本地 comfyUI 的 MCP 服务器

本项目是一个用于连接到本地 comfyUI 的服务器,实现了简单的笔记存储系统,提供了多种实用功能,如笔记访问、摘要生成、添加笔记等。

🚀 快速开始

安装

Claude Desktop

  • MacOS:配置文件路径为 ~/Library/Application\ Support/Claude/claude_desktop_config.json
  • Windows:配置文件路径为 %APPDATA%/Claude/claude_desktop_config.json%
开发/未发布的服务器配置 ``` "mcpServers": { "comfy-ui-mcp-server": { "command": "uv", "args": [ "--directory", "E:\Claude\comfy-ui-mcp-server", "run", "comfy-ui-mcp-server" ] } } ```
已发布的服务器配置 ``` "mcpServers": { "comfy-ui-mcp-server": { "command": "uvx", "args": [ "comfy-ui-mcp-server" ] } } ```

✨ 主要特性

资源

该服务器实现了一个简单的笔记存储系统,具备以下功能:

  • 采用自定义的 note:// URI 方案来访问单个笔记。
  • 每个笔记资源包含名称、描述和 text/plain MIME 类型。

提示语句

服务器提供了一个提示语句功能:

  • summarize-notes:可对所有存储的笔记生成摘要。
    • 支持可选的 "style" 参数,用于控制详细程度(简要/详细)。
    • 能根据风格偏好生成包含所有当前笔记内容的提示语句。

工具

服务器实现了一个实用工具:

  • add-note:用于向服务器添加新的笔记。
    • 该工具接受 "name" 和 "content" 作为必填字符串参数。
    • 会更新服务器状态并通知客户端资源更改。

📦 安装指南

构建和发布

为了准备分发包,可按以下步骤操作:

  1. 同步依赖项并更新锁定文件:
uv sync
  1. 构建分发版本:
uv build

此操作将在 dist/ 目录下创建源代码和轮格式发行版。 3. 发布到 PyPI:

uv publish

⚠️ 重要提示 您需要通过环境变量或命令行参数设置 PyPI 凭据:

  • 令牌:--tokenUV_PUBLISH_TOKEN
  • 或者用户名/密码:--username/UV_PUBLISH_USERNAME--password/UV_PUBLISH_PASSWORD

🔧 技术细节

调试

由于 MCP 服务器通过标准输入输出运行,调试可能具有挑战性。为了获得最佳的调试体验,我们强烈推荐使用 MCP 检查器

您可以通过以下命令启动 MCP 检查器:

npx @modelcontextprotocol/inspector uv --directory E:\Claude\comfy-ui-mcp-server run comfy-ui-mcp-server

启动后,检查器会在浏览器中显示一个 URL,您可以在该 URL 处开始调试。

📚 详细文档

配置

[待定:添加您特定实现的配置详细信息]

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client