ComfyUI_MCP
3
ComfyUI_MCP Server is a Model Context Protocol server for ComfyUI, designed to be extensible and configuration-driven. It enables automation and integration of AI tools like txt2img and img2img, supporting custom workflows through JSON configurations and decorator modules.
FAQ
- ComfyUI not started or wrong address: Please check
config.ini
- Dependencies not installed: Please run
uv pip install -r pyproject.toml
- New tool not effective: Make sure
register_xxx_tool(mcp)
is implemented and placed in thetools/
directory - Parameter validation failed: Please check the JSON template and actual parameter types/ranges. (Export the same-named API with
_api
suffix from the custom workflow of the target ComfyUI instance and place it in thetools/
directory) - Inspector cannot connect: Make sure the MCP server is running and the port is not occupied
- Logs not generated or no output: Please check the
logging
configuration inconfig.ini
to ensure thelog_path
exists and has write permissions. - MCP service transport mode switch ineffective: Please confirm that the
transport
parameter inconfig.ini
has been correctly modified and restart the service.