{"repo":"lalanikarim/comfy-mcp-server","free":true,"listed":false,"github":"https://github.com/lalanikarim/comfy-mcp-server","clone":"git clone https://github.com/lalanikarim/comfy-mcp-server.git","description":"A server using FastMCP framework to generate images based on prompts via a remote Comfy server.","language":"Python","stars":45,"topics":["comfyui","mcp-server"],"license":"MIT","category":"mcp-servers","readme_excerpt":"Comfy MCP Server A server using FastMCP framework to generate images based on prompts via a remote Comfy server. Overview This script sets up a server using the FastMCP framework to generate images based on prompts using a specified workflow. It interacts with a remote Comfy server to submit prompts and retrieve generated images. Prerequisites - uv package and project manager for Python. - Workflow file exported from Comfy UI. This code includes a sample Flux-Dev-ComfyUI-Workflow.json which is only used here as reference. You will need to export from your workflow and set the environment variables accordingly. You can install the required packages for local development: Configuration Set the following environment variables: - COMFY URL to point to your Comfy server URL. - COMFY WORKFLOW JSON FILE to point to the absolute path of the API export json file for the comfyui workflow. - PROMPT NODE ID to the id of the text prompt node. - OUTPUT NODE ID to the id of the output node with the final image. - OUTPUT MODE to either url or file to select desired output. Optionally, if you have an Ollama server running, you can connect to it for prompt generation. - OLLAMA API BASE to the url where ollama is running. - PROMPT LLM to the name of the model hosted on ollama for prompt generation. Example: Usage Comfy MCP Server can be launched by the following command: Example Claude Desktop Config Functionality generate image(prompt: str, ctx: Context) - Image str This function generates an ","default_branch":null,"files":null,"tree":[],"storefront":"/r/lalanikarim","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lalanikarim/comfy-mcp-server/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}