> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-matt-router-pricing-pika-and-guard.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ComfyUI Agent 工具：MCP、CLI 与内置代理

> 通过 Comfy MCP、Comfy CLI 和 Comfy Agent 将 ComfyUI 与 AI 代理配合使用。

<CardGroup cols={2}>
  <Card title="Comfy MCP" icon="bolt" href="/zh/agent-tools/mcp">
    将任何 AI 代理连接到 ComfyUI，无论是在 Comfy Cloud 上还是在您自己的机器上。**从这里开始。**
  </Card>

  <Card title="Comfy Agent" icon="comments" href="/zh/agent-tools/in-app-agent">
    ComfyUI 内置助手，用于构建、编辑和运行工作流。**已在 Cloud 上正式发布。** 本地版（Comfy Desktop）即将推出。
  </Card>

  <Card title="Comfy CLI" icon="terminal" href="/zh/agent-tools/cli">
    终端中的 ComfyUI。安装和更新 ComfyUI，管理模型和节点，并通过脚本、CI 或批处理作业生成。
  </Card>
</CardGroup>

***

## 我该用哪个？

| | Comfy MCP<br />云端连接 | Comfy MCP<br />本地连接 | Comfy Agent |
| - | - | - | - |
| **是什么** | 使用您自己的代理运行 Comfy Cloud 工作流。 | 使用您自己的代理驱动您自己的本地 ComfyUI。 | 在 ComfyUI 内与 Agent 聊天，以理解、构建、编辑并运行已选择的工作流。 |
| **最适合** | 不想在本地设置 ComfyUI 的初学者。<br />想要分享工作流的人。 | 在本地拥有 ComfyUI 的人。<br />拥有私有自定义节点的人。<br />需要与本地文件系统交互的人。 | 在查看画布的同时构建和编辑工作流。 |
| **需要** | 您自己的代理。<br />有效的 Comfy Cloud 订阅。 | 您自己的代理。<br />本地 ComfyUI 环境。 | 一个 Comfy 账户。Cloud 上无需候补名单；Comfy Desktop 即将推出。 |
| **GPU** | 云端 GPU（无硬件要求） | 您的本地 GPU | 目前为云端 GPU。Comfy Desktop 支持发布后可使用本地硬件。 |
| **模型** | Comfy Cloud 模型。<br />您可以导入您自己的模型。 | 下载到您机器上的本地模型。 | 目前为云端模型。Comfy Desktop 支持发布后可使用本地模型。 |
| **自定义节点** | Comfy Cloud 支持的自定义节点。 | 您可以安装任何自定义节点。 | 目前为 Cloud 支持的节点。Comfy Desktop 支持发布后可使用任何本地节点。 |

MCP 两列是**同一个产品和同一个页面**。请参阅 [Comfy MCP](/zh/agent-tools/mcp) 选择其一。您可以同时连接两者。

***

## 什么是 MCP？

**Model Context Protocol (MCP)** 是一个开放标准，允许 AI 助手通过标准化接口与外部工具和服务交互。AI 代理无需为每个服务学习自定义 API 格式，MCP 提供了一种统一的工具暴露方式。

将 MCP 服务器连接到 Claude Desktop、Claude Code、Cursor 或 Amp 后，AI 助手可以：

* **生成图像**：根据文字描述
* **创建视频**：从文字或图像生成
* **生成 3D 模型**：从文字或图像生成
* **生成音频和音乐**：使用 AI 模型
* **搜索模型和模板**：为任务找到合适的工具

……全部通过自然语言对话完成，无需手动编写 API 调用。


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