需要哪些依赖?
必须在本地安装并在 8188 端口运行 ComfyUI。需要 Python 3.8+ 以及 `requirements.txt` 中列出的包。模型必须放在 `<ComfyUI_dir>/models/checkpoints/` 下。
@joenorton
基本信息
面向本地 ComfyUI 的轻量级 Python MCP(Model Context Protocol)服务器
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"comfyui-mcp-server": {
"command": "python",
"args": [
"main.py",
"--port",
"8188"
]
}
}
}工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
这是一个轻量级 MCP(Model Context Protocol)服务器,让 AI 智能体借助本地 ComfyUI 实例生成并迭代优化图像、音频和视频。它通过自然对话提供 generate_image、generate_song、regenerate、view_image、任务管理和发布等工具。
克隆仓库,使用 pip install -r requirements.txt 安装依赖,确保 ComfyUI 已在本地运行(默认端口 8188),然后用 python server.py 启动服务器。添加一个 .mcp.json 文件,填写服务器 URL http://127.0.0.1:9000/mcp,并使用 "type": "streamable-http" 或 "type": "http",即可连接 AI 客户端(例如 Cursor、Claude、n8n)。附带的 test_client.py 可以在没有 AI 客户端的情况下验证配置。
regenerate 迭代优化(无需重新编写提示词)(filename, subfolder, type) 标识资产,确保后续操作可靠view_image 为智能体提供可选的视觉反馈必须在本地安装并在 8188 端口运行 ComfyUI。需要 Python 3.8+ 以及 `requirements.txt` 中列出的包。模型必须放在 `<ComfyUI_dir>/models/checkpoints/` 下。
服务器使用 Streamable HTTP 传输(基于 HTTP,而非 WebSocket),默认绑定到 `http://127.0.0.1:9000/mcp`。客户端可以使用 `"type": "streamable-http"` 或 `"type": "http"` 进行连接。
资产存储在运行 ComfyUI 的本机上,且是临时性的:`asset_id` 引用仅在 MCP 服务器运行期间、且在 24 小时 TTL(可配置)之内有效。服务器重启后资产会丢失。
没有内置认证。服务器仅绑定到 localhost,在没有反向代理或认证层的情况下不应公开暴露。
资产注册表是临时的(服务器重启后丢失),资产在 24 小时后过期(可通过 `COMFY_MCP_ASSET_TTL_HOURS` 配置),`view_image` 仅支持图像格式(PNG、JPEG、WebP、GIF)。工作流必须包含 `PARAM_*` 占位符,才能被自动暴露为工具。
This open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,

DeepMark helps teachers deliver rapid, consistent marking with meaningful feedback for every student — in a fraction of the time. What once took a week, now takes one free period.
Open-source MCP to use Blender with any LLM

Couples therapist Figs O'Sullivan (LMFT, 17 years, endorsed by Sue Johnson, creator of EFT) inside your AI. Ask relationship questions answered from his clinical writing, name the pattern in a fight, get a three-step rep

Model Context Protocol Servers
评论