OpenViSTAI · Agents · Blockchain · Crypto
Menu
MCP & Tooling

Comfyui MCP Server

Comfyui MCP Server is a Python Model Context Protocol server that connects AI-agent clients to a local ComfyUI instance and exposes tool calls for generating and refining images, audio and video.

Independent OpenViST project profile, based on linked sources.

Comfyui MCP Server — Set up the server and connect an MCP client
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when an agent should call tools against your own locally running ComfyUI instance, especially for workflows that involve iterative generation, job tracking or asset handling.

Who it is for

  • Developers connecting MCP-compatible agents to a local ComfyUI installation.
  • Teams building conversational workflows for generating and revising media.
  • ComfyUI users who want agents to run workflows and manage generation jobs or assets.

Documented uses

  • Generate images from a prompt and refine an existing asset with parameter overrides.
  • Call song-generation workflows and run other available ComfyUI workflows with custom parameters.
  • Check job status, inspect or cancel jobs, browse assets and retrieve asset metadata.
  • Publish generated assets into a project's web directory, subject to the documented publish setup.
Before you choose

Requirements & limits

The README documents a local Python server and a streamable HTTP endpoint at 127.0.0.1:9000/mcp. The public repository identifies an Apache-2.0 license.

  • ComfyUI must be installed and running locally; this server delegates generation to it.
  • The test-client path can try image generation without an AI client, while agent use requires connecting an MCP-compatible client.
  • The server exposes distinct tools for image generation, song generation, workflow execution, job handling and asset management.
  • The view_image tool supports images only, not audio or video.
  • Asset IDs are session-scoped and become invalid after a server restart.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Set up the server and connect an MCP client

Run the server against local ComfyUI and configure an AI client to reach its MCP endpoint.

Before you start

  • Python and the project requirements
  • A locally installed ComfyUI instance
  • An MCP-compatible AI client

Steps

  1. Clone the repository, enter its directory and install dependencies with the command below.

    Documented command
    pip install -r requirements.txt
  2. Start ComfyUI locally with the command below.

    Documented command
    python main.py --port 8188
  3. Run the command below from the repository directory; the documented endpoint is http://127.0.0.1:9000/mcp.

    Documented command
    python server.py
  4. Add that endpoint to the client's project-scoped .mcp.json as a streamable HTTP server, then restart the client.

Expected outcome

The AI client can connect to the MCP server and call its available tools.

Guide limitations

  • Some clients use http rather than streamable-http as the transport type.
  • The server binds to localhost by default; the README cautions against public exposure without authentication or a reverse proxy.
Source-based practical guide

Try image generation with the included test client

Call the server's image-generation tool with a prompt, without configuring an AI client.

Before you start

  • The repository dependencies installed
  • ComfyUI running locally
  • The MCP server running

Steps

  1. From the repository directory, run the command below for the default prompt.

    Documented command
    python test_client.py
  2. To provide a prompt, run the command below or use the documented --prompt option.

    Documented command
    python test_client.py -p "a beautiful sunset over mountains"

Expected outcome

The test client lists tools and server defaults, calls `generate_image`, and prints asset information.

Guide limitations

  • The prompt is the only required generation parameter in this test flow; other parameters use server defaults.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
15 November 2026
Original website title
joenorton/comfyui-mcp-server · Official homepage title · retained in its source language