ComfyUI MCP
An open-source, self-hosted MCP server that wraps ComfyUI to expose image generation capabilities via HTTP/SSE. It allows AI agents like Claude Code or Cursor to request images using SDXL presets without requiring local installation of PyTorch or heavy dependencies on the client side, acting as a middleware that communicates with a backend ComfyUI instance.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Generate images via SDXL presets for AI agents
- Expose ComfyUI inference to MCP-compatible clients
- Manage GPU resources with intelligent arbiter
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
ghcr.io/germaniu/comfyui-mcp:0.1.1
{
"transport": "stdio",
"identifier": "ghcr.io/germaniu/comfyui-mcp:0.1.1",
"registryType": "oci",
"packageArguments": [
{
"type": "positional",
"value": "--stdio"
}
],
"environmentVariables": [
{
"name": "COMFYUI_URL",
"format": "string",
"default": "http://127.0.0.1:8188",
"description": "Loopback URL of the ComfyUI engine. Inside a container 127.0.0.1 is the container itself, so point it at the host running ComfyUI (e.g. http://host.docker.internal:8188 or the LAN IP)."
},
{
"name": "COMFYUI_PUBLIC_URL",
"format": "string",
"description": "LAN base URL used to build direct image download links."
},
{
"name": "MCP_AUTH_TOKEN",
"format": "string",
"description": "Only applies when the container runs in HTTP mode. If set, every HTTP request must carry an Authorization: Bearer header."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"comfyui-mcp-0-1-1": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"COMFYUI_URL=<YOUR_COMFYUI_URL>",
"-e",
"COMFYUI_PUBLIC_URL=<YOUR_COMFYUI_PUBLIC_URL>",
"-e",
"MCP_AUTH_TOKEN=<YOUR_MCP_AUTH_TOKEN>",
"ghcr.io/germaniu/comfyui-mcp:0.1.1",
"--stdio"
],
"env": {
"COMFYUI_URL": "<YOUR_COMFYUI_URL>",
"COMFYUI_PUBLIC_URL": "<YOUR_COMFYUI_PUBLIC_URL>",
"MCP_AUTH_TOKEN": "<YOUR_MCP_AUTH_TOKEN>"
}
}
}
}Cline
{
"mcpServers": {
"comfyui-mcp-0-1-1": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"COMFYUI_URL=<YOUR_COMFYUI_URL>",
"-e",
"COMFYUI_PUBLIC_URL=<YOUR_COMFYUI_PUBLIC_URL>",
"-e",
"MCP_AUTH_TOKEN=<YOUR_MCP_AUTH_TOKEN>",
"ghcr.io/germaniu/comfyui-mcp:0.1.1",
"--stdio"
],
"env": {
"COMFYUI_URL": "<YOUR_COMFYUI_URL>",
"COMFYUI_PUBLIC_URL": "<YOUR_COMFYUI_PUBLIC_URL>",
"MCP_AUTH_TOKEN": "<YOUR_MCP_AUTH_TOKEN>"
}
}
}
}VS Code
{
"servers": {
"comfyui-mcp-0-1-1": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"COMFYUI_URL=<YOUR_COMFYUI_URL>",
"-e",
"COMFYUI_PUBLIC_URL=<YOUR_COMFYUI_PUBLIC_URL>",
"-e",
"MCP_AUTH_TOKEN=<YOUR_MCP_AUTH_TOKEN>",
"ghcr.io/germaniu/comfyui-mcp:0.1.1",
"--stdio"
],
"env": {
"COMFYUI_URL": "<YOUR_COMFYUI_URL>",
"COMFYUI_PUBLIC_URL": "<YOUR_COMFYUI_PUBLIC_URL>",
"MCP_AUTH_TOKEN": "<YOUR_MCP_AUTH_TOKEN>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"comfyui-mcp-0-1-1": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"COMFYUI_URL=<YOUR_COMFYUI_URL>",
"-e",
"COMFYUI_PUBLIC_URL=<YOUR_COMFYUI_PUBLIC_URL>",
"-e",
"MCP_AUTH_TOKEN=<YOUR_MCP_AUTH_TOKEN>",
"ghcr.io/germaniu/comfyui-mcp:0.1.1",
"--stdio"
],
"env": {
"COMFYUI_URL": "<YOUR_COMFYUI_URL>",
"COMFYUI_PUBLIC_URL": "<YOUR_COMFYUI_PUBLIC_URL>",
"MCP_AUTH_TOKEN": "<YOUR_MCP_AUTH_TOKEN>"
}
}
}
}Let your agent find its tools
Find servers like ComfyUI MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.