ComfyUI MCP Server
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 MCP ServerGenerate an image of a castle using a txt2img workflow"
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
An MCP server for interacting with ComfyUI instances running on your local network. This server provides tools for generating images and checking generation status through ComfyUI's API.
Installation
Clone this repository
Install dependencies:
npm installBuild the server:
npm run buildRelated MCP server: comfyui-mcp
Configuration
The server requires the following environment variables:
COMFYUI_SERVER_URL(optional): The URL of your ComfyUI instance. Defaults tohttp://127.0.0.1:8188
MCP Tools
generate_image
Generates an image using a ComfyUI workflow.
Parameters:
workflow(required): A ComfyUI workflow JSON objectwait(optional): Whether to wait for the image generation to complete. Defaults to true
Example:
const result = await mcp.useTool('comfyui-server', 'generate_image', {
workflow: {
"3": {
"inputs": {
"seed": 5,
"steps": 20,
"cfg": 8,
"sampler_name": "euler",
"scheduler": "normal",
"denoise": 1,
"model": ["4", 0],
"positive": ["6", 0],
"negative": ["7", 0],
"latent_image": ["5", 0]
},
"class_type": "KSampler"
},
// ... rest of your workflow
}
});Returns:
{
"promptId": "abc123",
"imagePath": "temp/ComfyUI_00042.png"
}check_status
Check the status of a prompt.
Parameters:
promptId(required): The prompt ID to check
Example:
const status = await mcp.useTool('comfyui-server', 'check_status', {
promptId: "abc123"
});Returns:
{
"status": {
"completed": true,
"executing": false
},
"hasImages": true
}Development
To run the server in development mode with automatic reloading:
npm run devNotes
Generated images are saved in a
tempdirectory in the current working directoryThe server will automatically clean up old images on startup
Requests will timeout after 5 minutes if the image generation doesn't complete
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.
Related MCP Servers
- AlicenseBqualityCmaintenanceA server that integrates ComfyUI with MCP, allowing users to generate images and download them through natural language interactions.422Apache 2.0
- AlicenseAqualityCmaintenanceMCP server for ComfyUI — text-to-image, variations, img2img refine, upscale, image proxy, and workflow runner.15481MIT
- Flicense-qualityBmaintenanceMCP server that connects local ComfyUI to AI agents, enabling natural language control of ComfyUI for creating workflows, generating images, and managing the queue.
- AlicenseAqualityDmaintenanceMCP server that provides image generation, captioning, and tagging via ComfyUI API, configurable for agent tools.43MIT
Related MCP Connectors
MCP server for Flux AI image generation
MCP server for NanoBanana AI image generation and editing
MCP server for Wan AI video generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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/a-misen/mcp-comfyui'
If you have feedback or need assistance with the MCP directory API, please join our Discord server