comfy-ui-mcp-server MCP server
顾名思义
概述
comfy-ui-mcp-server 是一个连接本地 ComfyUI 与 Claude 的 MCP 服务器,提供笔记存储系统和相关功能。
安装
1. 配置 Claude Desktop
根据您的操作系统,编辑配置文件:
- MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%/Claude/claude_desktop_config.json
添加以下配置:
"mcpServers": {
"comfy-ui-mcp-server": {
"command": "uvx",
"args": [
"comfy-ui-mcp-server"
]
}
}
对于开发环境,使用:
"mcpServers": {
"comfy-ui-mcp-server": {
"command": "uv",
"args": [
"--directory",
"E:/Claude/comfy-ui-mcp-server",
"run",
"comfy-ui-mcp-server"
]
}
}
主要功能
笔记存储系统
- 通过
note://
URI 方案访问笔记 - 每个笔记包含名称、描述和内容
命令
summarize-notes
: 创建所有已保存笔记的摘要- 支持
style
参数(简要/详细)
- 支持
工具
add-note
: 添加新笔记- 需要
name
和content
参数
- 需要
开发指南
构建与发布
# 同步依赖
uv sync
# 构建包
uv build
# 发布到 PyPI
uv publish
调试
使用 MCP Inspector 进行调试:
npx @modelcontextprotocol/inspector uv --directory E:/Claude/comfy-ui-mcp-server run comfy-ui-mcp-server
启动后,通过浏览器访问提供的 URL 开始调试。