mcp-after-effects
The After Effects MCP Server enables control of Adobe After Effects through a standardized protocol, allowing automation of key tasks:
Composition management: Create compositions with custom settings (size, frame rate, duration, background color), and list existing compositions
Layer handling: Create and modify text, shape, solid, and adjustment layers
Property control: Adjust position, scale, rotation, opacity, and timing
Animation: Set keyframes and apply expressions to layer properties
Effects: Apply predefined or custom effects with customizable settings
Scripting: Run JavaScript scripts within After Effects and retrieve results
Integration: Use MCP tools to create AI-powered automation workflows
Used as the runtime environment for the MCP server, with version 14.x or later required
Click on "Deploy 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., "@mcp-after-effects create a 1920x1080 composition with a blue background"
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.
🎬 After Effects MCP Server
✨ A Model Context Protocol (MCP) server for Adobe After Effects that enables AI assistants and other applications to control After Effects through a standardized protocol.
Table of Contents
Related MCP server: After Effects MCP
📦 Features
🎥 Core Composition Features
Create compositions with custom settings (size, frame rate, duration, background color)
List all compositions in a project
Get project information such as frame rate, dimensions, and duration
🧱 Layer Management
Create text layers with customizable properties (font, size, color, position)
Create shape layers (rectangle, ellipse, polygon, star) with colors and strokes
Create solid/adjustment layers for backgrounds and effects
Create camera layers with configurable zoom and position
Create null objects for animation control
Modify layer properties like position, scale, rotation, opacity, timing
Toggle 2D/3D mode for layers
Set blend modes (normal, multiply, screen, etc.)
Track matte support (alpha, luma, inverted)
Duplicate layers with optional rename
Delete layers from composition
Create/modify masks with feather, expansion, and opacity
🌀 Animation Capabilities
Set keyframes for layer properties (Position, Scale, Rotation, Opacity, etc.)
Apply expressions to layer properties for dynamic animations
Batch set properties across multiple layers at once
⚙️ Setup Instructions
🛠 Prerequisites
Adobe After Effects (2022 or later)
Node.js (v14 or later)
npm or yarn package manager
📥 Installation
Clone the repository
git clone https://github.com/Dakkshin/after-effects-mcp.git cd after-effects-mcpInstall dependencies
npm install # or yarn installBuild the project
npm run build # or yarn buildInstall the After Effects panel
npm run install-bridge # or yarn install-bridgeThis will copy the necessary scripts to your After Effects installation.
🔧 Update MCP Config
Option 1: Using .mcp.json (Recommended for Claude Code)
The repository includes a .mcp.json file for easy configuration. Copy or reference it in your MCP settings:
{
"mcpServers": {
"AfterEffectsMCP": {
"command": "node",
"args": ["PATH/TO/after-effects-mcp/build/index.js"]
}
}
}Option 2: Manual Configuration
Go to your client (e.g., Claude or Cursor) and update your config file:
{
"mcpServers": {
"AfterEffectsMCP": {
"command": "node",
"args": ["C:\\Users\\Dakkshin\\after-effects-mcp\\build\\index.js"]
}
}
}▶️ Running the Server
Start the MCP server
npm start # or yarn startOpen After Effects
Open the MCP Bridge Auto panel
In After Effects, go to Window > mcp-bridge-auto.jsx
The panel will automatically check for commands every few seconds
Make sure the "Auto-run commands" checkbox is enabled
🚀 Usage Guide
Once you have the server running and the MCP Bridge panel open in After Effects, you can control After Effects through the MCP protocol. This allows AI assistants or custom applications to send commands to After Effects.
📘 Creating Compositions
You can create new compositions with custom settings:
Name
Width and height (in pixels)
Frame rate
Duration
Background color
Example MCP tool usage (for developers):
mcp_aftereffects_create_composition({
name: "My Composition",
width: 1920,
height: 1080,
frameRate: 30,
duration: 10
});✍️ Working with Layers
You can create and modify different types of layers:
Text layers:
Set text content, font, size, and color
Position text anywhere in the composition
Adjust timing and opacity
Shape layers:
Create rectangles, ellipses, polygons, and stars
Set fill and stroke colors
Customize size and position
Solid layers:
Create background colors
Make adjustment layers for effects
🕹 Animation
You can animate layers with:
Keyframes:
Set property values at specific times
Create motion, scaling, rotation, and opacity changes
Control the timing of animations
Expressions:
Apply JavaScript expressions to properties
Create dynamic, procedural animations
Connect property values to each other
🛠 Available MCP Tools
Command | Description |
| Create a new composition |
| Run a JS script inside AE |
| Get script results |
| Help for available commands |
| Add keyframe to layer property |
| Add/remove expressions from properties |
| Set layer properties (position, scale, rotation, opacity, blendMode, threeDLayer, trackMatteType, enabled, etc.) |
| Apply properties to multiple layers |
| Get layer info (position, 3D status) |
| Create camera layer |
| Create null object for animation |
| Duplicate a layer |
| Delete a layer |
| Create/modify layer masks |
👨💻 For Developers
🧩 Project Structure
src/index.ts: MCP server implementationsrc/scripts/mcp-bridge-auto.jsx: Main After Effects panel scriptinstall-bridge.js: Script to install the panel in After Effects
📦 Building the Project
npm run build
# or
yarn buildNote: This project uses esbuild for fast builds, replacing the previous TypeScript compiler approach that could run out of memory on larger codebases.
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Star History
License
This project is licensed under the MIT License - see the LICENSE file for details.
Available Tools
13 toolsapply-effectC
Apply an effect to a layer in After Effects
Inputs: compIndex (required), layerIndex (required), effectCategory, effectMatchName, +3 more.
apply-effect-templateB
Apply a predefined effect template to a layer in After Effects
Inputs: compIndex (required), layerIndex (required), templateName (required), customSettings.
create-compositionA
Create a new composition in After Effects with specified parameters
Inputs: height (required), name (required), width (required), backgroundColor, +3 more.
get-helpB
Get help on using the After Effects MCP integration
Inputs: no named parameters.
get-resultsA
Get results from the last script executed in After Effects
Inputs: no named parameters.
mcp_aftereffects_applyEffectC
Apply an effect to a layer in After Effects
Inputs: compIndex (required), layerIndex (required), effectMatchName, effectName, +1 more.
mcp_aftereffects_applyEffectTemplateC
Apply a predefined effect template to a layer in After Effects
Inputs: compIndex (required), layerIndex (required), templateName (required), customSettings.
mcp_aftereffects_get_effects_helpB
Get help on using After Effects effects
Inputs: no named parameters.
run-bridge-testA
Run the bridge test effects script to verify communication and apply test effects
Inputs: no named parameters.
run-scriptA
Run a read-only script in After Effects
Inputs: script (required), parameters.
setLayerExpressionB
Set or remove an expression for a specific layer property.
Inputs: compIndex (required), expressionString (required), layerIndex (required), propertyName (required).
setLayerKeyframeB
Set a keyframe for a specific layer property at a given time.
Inputs: compIndex (required), layerIndex (required), propertyName (required), timeInSeconds (required), +1 more.
test-animationD
Test animation functionality in After Effects
Inputs: compIndex (required), layerIndex (required), operation (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
There is significant overlap and confusion between tools: 'apply-effect' and 'mcp_aftereffects_applyEffect' appear to be duplicates with identical descriptions, as do 'apply-effect-template' and 'mcp_aftereffects_applyEffectTemplate'. Additionally, 'get-help', 'mcp_aftereffects_get_effects_help', and 'run-bridge-test' all seem related to help/testing but with unclear distinctions, making it hard for an agent to choose correctly.
The naming is highly inconsistent: there's a mix of snake_case ('apply-effect'), camelCase ('setLayerExpression'), and prefixed snake_case ('mcp_aftereffects_applyEffect'). Some tools use verbs like 'run' or 'test', while others are more descriptive like 'get-results', leading to a chaotic pattern that lacks predictability.
With 13 tools, the count is reasonable for an After Effects integration, covering various operations like composition creation, effect application, scripting, and animation testing. It's slightly on the higher side but still manageable and appropriate for the domain's complexity.
The tool set covers key areas such as composition creation, effect application, scripting, and animation, but there are notable gaps: for example, there's no tool for deleting or updating compositions/effects, and lifecycle management (e.g., save, export projects) is missing. This could lead to agent workarounds for basic operations.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Remote MCP server for AI.TV creators — delegate account operations to your AI agent over MCP.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…
MCP server for building and testing AI agents with multi-model experimentation and insights.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server that enables AI assistants to control Adobe After Effects through a file-based communication bridge. It supports various operations including project and composition management, layer and keyframe manipulation, rendering, and batch processing.9223 npm21MIT
- AlicenseAqualityDmaintenanceAn MCP server that allows AI agents to control Adobe After Effects, enabling project inspection, composition creation, layer addition, file import, ExtendScript execution, and rendering via aerender.11MIT
- AlicenseCqualityDmaintenanceMCP server for controlling Adobe After Effects, enabling AI assistants to create compositions, manage layers, and animate properties.13143 npmMIT
- AlicenseBqualityDmaintenanceA production-minded Model Context Protocol server for Adobe After Effects that enables AI agents to control motion graphics, editorial planning, and rendering.4818 npm46MIT