comfy-ae-video-factory-mcp
Provides tools for video transcoding, cutting, frame extraction, and concatenation using FFmpeg.
Generates publish-ready packages for TikTok.
Generates publish-ready packages for YouTube.
Generates publish-ready packages for YouTube Shorts.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@comfy-ae-video-factory-mcpcreate a video from image.jpg and prepare for TikTok"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Comfy AE Video Factory MCP
An MCP Server for AI short video automation pipelines: connecting ComfyUI image-to-image/image-to-video, FFmpeg post-processing, After Effects template packaging, review, and multi-platform publishing preparation.
Design Goal: Enable Cursor / Claude Desktop / ChatGPT MCP clients to call these tools to automatically complete the "Generate → Package → Review → Export → Publishing Package" workflow.
Capabilities
Invoke local or cloud ComfyUI workflows
Query ComfyUI task history
Analyze videos using FFprobe
Transcode, crop, extract frames, and concatenate using FFmpeg
Generate JSX scripts for automatic After Effects asset replacement
Invoke aerender to render After Effects templates
Create standardized video production task manifests
Generate publishing package configurations for Douyin / Xiaohongshu / Bilibili / YouTube Shorts / TikTok
Provide basic content review placeholder interfaces for future integration with third-party review APIs
Related MCP server: Media-infrastructure
Installation
npm install
npm run buildRunning
npm startConfiguration in MCP Clients
{
"mcpServers": {
"comfy-ae-video-factory": {
"command": "node",
"args": ["/absolute/path/comfy-ae-video-factory-mcp/dist/index.js"],
"env": {
"COMFY_LOCAL_URL": "http://127.0.0.1:8188",
"VIDEO_FACTORY_ROOT": "/absolute/path/workspace",
"FFMPEG_BIN": "ffmpeg",
"FFPROBE_BIN": "ffprobe",
"AERENDER_BIN": "/Applications/Adobe After Effects 2025/aerender"
}
}
}
}Windows Example:
{
"AERENDER_BIN": "C:\\Program Files\\Adobe\\Adobe After Effects 2025\\Support Files\\aerender.exe"
}Recommended Workflow
pipeline_create_jobto create production task directory and manifestcomfy_submit_workflowto submit ComfyUI image-to-video workflowcomfy_get_historyto query resultsmedia_probeto check video specificationsffmpeg_transcodeto unify aspect ratio, bitrate, and frame rateae_generate_jsxto generate AE template replacement scriptsae_render_templateto invoke aerender and output the final packaged videoreview_video_packagefor review placeholderplatform_prepare_packageto generate publishing packages for various platforms
AE Template Integration
It is recommended to pre-create these placeholder layers in your AE project:
{{MAIN_VIDEO}}{{TITLE}}{{SUBTITLE}}{{LOGO}}{{CTA}}
Then use the JSX generated by this project to replace assets and text, and output via aerender.
Security Notes
This MCP Server executes local commands, so the following restrictions are applied by default:
All input and output files must be within the
VIDEO_FACTORY_ROOTdirectoryFFmpeg parameters are encapsulated via a whitelist rather than directly exposing arbitrary shell commands
AE rendering supports
dryRun; it is recommended to test commands first
GitHub Upload
git init
git add .
git commit -m "init comfy ae video factory mcp"
git branch -M main
git remote add origin git@github.com:YOUR_NAME/comfy-ae-video-factory-mcp.git
git push -u origin mainRemarks
The official MCP TypeScript SDK supports creating servers, registering tools, and connecting to MCP clients via stdio or Streamable HTTP. This implementation uses stdio, which is suitable for local automation integration.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables video generation through OpenAI's Sora 2 API, allowing users to create, monitor, and manage AI-generated videos. It also provides tools for merging video clips and creating fade animations from static images using FFmpeg.6112MIT
- AlicenseBqualityCmaintenanceMedia Execution Control Layer for AI Agents. Reserve-execute-burn/refund pattern. FFmpeg post-processing (format conversion, audio normalization) Supports Flux2 Pro, Veo 3.1, Suno V5.161MIT
- AlicenseNot gradedqualityAmaintenanceA cinema-grade video production MCP server that enables automated website recording, editing, and AI-powered narration using ffmpeg and Playwright. It provides tools for color grading, captioning, and converting videos into social media formats through natural language commands.945MIT
- FlicenseAqualityBmaintenanceEnables AI-powered video editing in IDEs through a pipeline-driven workflow, including proxy ingestion, motion graphics generation, and high-fidelity rendering.4
Related MCP Connectors
Transform video, audio and images, and generate media from prompts. FFmpeg, captions, models.
A real timeline video editor for AI agents: journaled edits, FFmpeg/MLT rendering, exports
Build and run visual creative-production workflows from your AI agent.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Eliveral/codex-mcp-comfy-ae-video-factory-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server