animatool-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
animatool-mcp
暂不支持 Cherry Studio
Cherry Studio 的 MCP 客户端未正确处理 ImageContent 类型,会将 base64 图片数据作为纯文本字符串返回,而非渲染为图片。请使用正确实现 MCP 规范的客户端。
一个独立的 MCP Server + Python 客户端:通过标准 ComfyUI Server API(/prompt、/history/<id>、/view?...)在本地或云端 ComfyUI 上执行 Anima 工作流,并把生成图片以 base64 形式返回给 Cursor/Claude 等 MCP 客户端原生显示。
重要:本项目不需要安装到
ComfyUI/custom_nodes/。但你仍然需要一台可访问的 ComfyUI Server(本机或云端),并且云端已经把模型权重放到models/下(按文件名加载)。
安装
方式一:使用 uvx (推荐)
无需手动安装 Python 包,直接在 Cursor 配置中使用 uvx 运行(需安装 uv):
{
"mcpServers": {
"animatool": {
"command": "uvx",
"args": ["--from", "comfyui-animatool", "animatool-mcp"],
"env": {
"COMFYUI_URL": "http://127.0.0.1:8188"
}
}
}
}方式二:使用 pip
pip install comfyui-animatoolRelated MCP server: ComfyUI MCP
Cursor 配置(MCP)
如果你使用 pip 安装,请在 .cursor/mcp.json 中配置:
{
"mcpServers": {
"animatool": {
"command": "animatool-mcp",
"env": {
"COMFYUI_URL": "http://127.0.0.1:8188"
}
}
}
}然后重启 Cursor,确保 MCP 状态为 Running。
云端/远程 ComfyUI(推荐做法)
COMFYUI_URL 该填什么?
本机默认:
http://127.0.0.1:8188带路径前缀的反代:例如
https://example.com/comfy/(注意建议以/结尾,避免丢路径前缀)
1) 最佳实践:用隧道/VPN 让 ComfyUI 变成“内网可达”
ComfyUI 默认几乎没有鉴权能力,把它直接暴露到公网非常危险。建议使用:
Tailscale / ZeroTier / Cloudflare Tunnel / 自建 VPN
或者反向代理 + HTTPS + 鉴权(Bearer / Basic / 自定义 Header)
2) 配置鉴权(可选)
本项目支持“有些云端需要、有些不需要”的混合场景。你可以在 .cursor/mcp.json 里通过 env 注入:
Bearer Token
{
"mcpServers": {
"animatool": {
"command": "animatool-mcp",
"env": {
"COMFYUI_URL": "https://your-host.example.com:8188",
"ANIMATOOL_BEARER_TOKEN": "YOUR_TOKEN"
}
}
}
}Basic Auth
{
"mcpServers": {
"animatool": {
"command": "animatool-mcp",
"env": {
"COMFYUI_URL": "https://your-host.example.com:8188",
"ANIMATOOL_BASIC_USER": "user",
"ANIMATOOL_BASIC_PASS": "pass"
}
}
}
}自定义 Header(通用,推荐)
{
"mcpServers": {
"animatool": {
"command": "animatool-mcp",
"env": {
"COMFYUI_URL": "https://your-host.example.com:8188",
"ANIMATOOL_HEADERS_JSON": "{\"X-API-Key\":\"xxx\",\"CF-Access-Client-Id\":\"...\",\"CF-Access-Client-Secret\":\"...\"}"
}
}
}
}Windows/JSON 转义提示:
ANIMATOOL_HEADERS_JSON本身是一个 JSON 字符串,所以内部的双引号需要转义(如上所示)。
3) 自签名证书/SSL 校验
如果你的云端是自签名证书,可以临时关闭校验(不推荐长期使用):
{
"mcpServers": {
"animatool": {
"command": "animatool-mcp",
"env": {
"COMFYUI_URL": "https://your-host.example.com:8188",
"ANIMATOOL_SSL_VERIFY": "false"
}
}
}
}CLI(可选)
用于本地自测(不依赖 MCP 客户端):
animatool-generate --comfyui-url http://127.0.0.1:8188 --json-file payload.json生态系统 (Ecosystem)
animatool-mcp 是 AnimaTool 生态的一部分,推荐搭配以下项目使用以获得最佳体验:
1. ComfyUI-AnimaTool
本项目的官方 ComfyUI 插件版本。如果你是 ComfyUI 重度用户,推荐直接安装插件版,它包含了完整的 expert 知识库和更多高级功能。
2. SillyTavern MCP Client
想在 SillyTavern (酒馆) 里画图?
使用 SillyTavern MCP Client 连接本工具(支持 stdio/http)。
搭配 SillyTavern Tool Use Fix 获得最佳的图片显示体验(自动合并消息、原生渲染)。
环境变量速查
环境变量 | 说明 | 默认值 |
| ComfyUI Server base URL |
|
| 请求超时秒 |
|
| 轮询间隔秒 |
|
| SSL 校验 |
|
| Bearer Token | (空) |
| Basic Auth | (空) |
| 自定义 Header JSON | (空) |
| 是否保存图片到本地 |
|
| 本地保存目录 |
|
| models 目录(用于本机预检查) | (空) |
| 是否启用预检查 |
|
常见问题
Q: 报错连接不上 /prompt?
检查
COMFYUI_URL是否可达(云端建议先在浏览器访问COMFYUI_URL/system_stats)如果有鉴权,请确认
/prompt、/history、/view都在同一套鉴权规则下常见坑:反代只给
/prompt放行了,但/view被 401/403 拦住,会导致“生成成功但取图失败”
Q: 报错找不到模型?
本工具提交的是一个包含 UNETLoader/CLIPLoader/VAELoader 的工作流模板,加载的是云端磁盘上的文件名。请确认云端 models/ 下至少存在:
models/diffusion_models/anima-preview.safetensorsmodels/text_encoders/qwen_3_06b_base.safetensorsmodels/vae/qwen_image_vae.safetensors
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Remote MCP for RunComfy: ComfyUI deployments, hosted models, LoRA training. 31 tools.
Generate detailed AI image prompts from image URLs or base64 data using a remote MCP server.
Generate images from Claude, ChatGPT, Cursor and Codex with 12 top AI image models. Up to 4 images per call, SVG vectorization, background removal, upscaling and image-to-video. Remote MCP with OAuth, no API keys.
Generate images from Claude, ChatGPT, Cursor and Codex with 12 top AI image models and 10 tools: up to 4 images per call, SVG vectorization, editing and more. Remote MCP with OAuth, no API keys. Pay per image, no subscription.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to generate anime-style images using ComfyUI and Anima models, with MCP support for native image display in chat clients.140AGPL 3.0
- FlicenseNot gradedqualityDmaintenanceMCP server that connects local ComfyUI to AI agents, enabling natural language control of ComfyUI for creating workflows, generating images, and managing the queue.1-
- AlicenseNot gradedqualityDmaintenanceEnables AI image generation from text prompts by wrapping local ComfyUI as a Streamable HTTP MCP server, supporting synchronous generation, queue management, and history tracking.1MIT
- AlicenseNot gradedqualityCmaintenanceTurns curated ComfyUI workflows into typed MCP tools and REST endpoints, enabling image generation and job management through natural language or HTTP calls.MIT