ComfyUI MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ComfyUI MCPlist available models"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ComfyUI MCP
Minimal MCP server that wraps ComfyUI HTTP routes so an LLM client can:
inspect server status, models, features, node metadata
submit workflows via
/promptinspect or manage queue/history
interrupt runs
upload input images
Python requirement: 3.10+ (the official mcp SDK requires it).
This server targets ComfyUI local server routes documented in:
https://docs.comfy.org/development/comfyui-server/comms_routes
https://docs.comfy.org/development/comfyui-server/api-key-integration
1) Install
cd /Users/apple/projects/comfyui-mcp
python3.10 -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install -e .Related MCP server: ComfyUI MCP
2) Configure
export COMFYUI_BASE_URL="http://127.0.0.1:8188"
export COMFYUI_ROUTE_PREFIX=""
export COMFYUI_TIMEOUT_SECONDS="60"
# optional: for reverse proxies or cloud-style gateways
export COMFYUI_BEARER_TOKEN=""Notes:
COMFYUI_ROUTE_PREFIXcan be set to/apiif your endpoint is exposed only under/api/*.ComfyUI native server supports both prefixed and non-prefixed routes.
For paid API nodes in workflow payloads, pass
api_key_comfy_orgincomfyui_submit_prompt.
3) Run (stdio transport)
cd /Users/apple/projects/comfyui-mcp
source .venv/bin/activate
comfyui-mcp4) Example MCP client config
{
"mcpServers": {
"comfyui": {
"command": "/Users/apple/projects/comfyui-mcp/.venv/bin/comfyui-mcp",
"env": {
"COMFYUI_BASE_URL": "http://127.0.0.1:8188",
"COMFYUI_ROUTE_PREFIX": ""
}
}
}
}Exposed tools
comfyui_get_system_statscomfyui_get_featurescomfyui_list_modelscomfyui_get_object_infocomfyui_get_queuecomfyui_manage_queuecomfyui_get_historycomfyui_manage_historycomfyui_submit_promptcomfyui_interruptcomfyui_upload_image
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Ericsunsk/comfyui-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server