> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# ComfyUI Agent Tools: MCP, CLI, and In-App Agent

> Use ComfyUI with AI agents through Comfy MCP, Comfy CLI, and Comfy Agent.

> [card] [Comfy MCP](https://docs.comfy.org/agent-tools/mcp.md)
>
> Connect any AI agent to ComfyUI, on Comfy Cloud or on your own machine. **Start here.**

> [card] [Comfy Agent](https://docs.comfy.org/agent-tools/in-app-agent.md)
>
> Built-in ComfyUI assistant for building, editing, and running workflows. **Generally available on Cloud.** Local (Comfy Desktop) coming soon.

> [card] [Comfy CLI](https://docs.comfy.org/agent-tools/cli.md)
>
> ComfyUI in the terminal. Install and update ComfyUI, manage models and nodes, and generate from scripts, CI, or batch jobs.

***

## Which one should I use?

| | Comfy MCP Cloud Connection | Comfy MCP Local Connection | Comfy Agent |
| - | - | - | - |
| **What is it** | Run Comfy Cloud workflows with your own agent. | Drive your own local ComfyUI with your own agent. | Chat with an Agent inside ComfyUI to understand, build, edit, and run a selected workflow. |
| **Best for** | Beginners who don't want to set up ComfyUI locally. People who want to share workflows. | People who have ComfyUI locally. People who have private custom nodes. People who need to interact with the local file system. | Building and editing workflows while viewing the canvas. |
| **Requires** | Your own agent. An active Comfy Cloud subscription. | Your own agent. A local ComfyUI setup. | A Comfy account. No waitlist on Cloud; Comfy Desktop is coming soon. |
| **GPU** | Cloud GPUs (no hardware requirements) | Your local GPU | Cloud GPUs today. Local hardware once Comfy Desktop support ships. |
| **Models** | Comfy Cloud models. You can import your own models. | Local models downloaded to your machine. | Cloud models today. Local models once Comfy Desktop support ships. |
| **Custom nodes** | The custom nodes supported on Comfy Cloud. | You can install any custom node. | Cloud-supported nodes today. Any local node once Comfy Desktop support ships. |

Both MCP columns are the **same product and the same page**. See [Comfy MCP](https://docs.comfy.org/agent-tools/mcp.md) to pick one. You can connect both at once.

***

## What is MCP?

The **Model Context Protocol (MCP)** is an open standard that allows AI assistants to interact with external tools and services through a standardized interface. Instead of an AI agent needing to know custom API formats for every service, MCP provides a uniform way to expose tools.

When you connect an MCP server to Claude Desktop, Claude Code, Cursor, or Amp, the AI assistant can:

* **Generate images** from text descriptions
* **Create videos** from text or images
* **Generate 3D models** from text or images
* **Generate audio and music** using AI models
* **Search models and templates** to find the right tools for your task

...all through natural language conversation, without writing API calls manually.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.