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-mcpgenerate an image of a serene lake at sunset"
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 server
A stdio MCP server that exposes a remote ComfyUI instance through an on-demand GPU wrapper. The wrapper lives in wrapper/ and is built as a Docker image. It starts ComfyUI on first generation request, keeps it alive while you use it, and cold-stops it after an idle timeout.
This repo contains:
comfyui_mcp/server.py— stdio MCP server that talks to the wrapper over HTTP.wrapper/— Dockerized FastAPI wrapper that manages the ComfyUI process.hermes/mcp.json— sample Hermes MCP config.
Tools
Tool | Description |
| Wrapper health check. |
| Whether ComfyUI is running and how long it has been idle. |
| Generate a PNG image from a prompt. Cold-starts ComfyUI if needed. |
| Ask the wrapper to shut ComfyUI down immediately. |
All tools return the same {ok, data} / {ok, error} shape used by sam-os.
Related MCP server: comfyui-mcp
Running the wrapper
cd wrapper
# place v1-5-pruned-emaonly.safetensors in this directory first
docker compose up -d --buildThe wrapper API is exposed on port 8002 (ComfyUI direct is on 8190).
Running the MCP server
python -m venv .venv
.venv/bin/pip install -r requirements.txt # or pip install -e .
COMFYUI_WRAPPER_URL=http://192.168.2.51:8002 .venv/bin/python -m comfyui_mcp.serverHermes config
Copy hermes/mcp.json into your Hermes MCP config and adjust paths.
Environment variables
COMFYUI_WRAPPER_URL— base URL of the wrapper (default:http://192.168.2.51:8002)
This server cannot be installed
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/SwayamJoshi87/comfyui-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server