After Effects MCP for Antigravity
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., "@After Effects MCP for Antigravity create a 10-second 1080p comp, add a centered title layer, and fade it in over one second"
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 for Antigravity
A production-grade Model Context Protocol (MCP) integration and Adobe CEP Bridge that connects Google Antigravity (and compatible MCP clients) directly to Adobe After Effects (CC 2018 through CC 2025+) on Windows 10/11.
It enables AI assistants to programmatically control After Effects: inspect projects, build compositions, create solid and text layers, manipulate transforms, apply visual effects, animate properties with keyframes, and automate render queue jobs using natural language.
š Table of Contents
Related MCP server: ae-mcp
š” What is it & Why Use It?
Motion graphics, title animation, and VFX setups in After Effects can require hundreds of manual clicks.
After Effects MCP for Antigravity exposes a safe, bidirectional bridge:
Ask Antigravity to construct complex motion graphics, kinetic typography, lower-thirds, or logo stingers.
Antigravity queries composition dimensions, creates layers, sets layer transforms and blend modes, applies effects, adds ease keyframes, and triggers exports.
Antigravity acts as a pair-programmer and motion designer inside Adobe After Effects.
šļø How It Works (Architecture)
After Effects hosts its automation runtime inside an ES3 ExtendScript engine. Modern MCP clients, however, communicate via JSON-RPC 2.0 over stdio. This repository bridges the two environments safely:
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Google Antigravity / MCP Client ā
āāāāāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāā
ā (stdio JSON-RPC 2.0)
ā¼
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Node.js MCP Server Process ā
ā (mcp-server/index.js) ā
ā - Parameter validation & sanitation ā
ā - Security token generation ā
āāāāāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāā
ā (Loopback HTTP: 127.0.0.1:17892, Token Auth)
ā¼
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā After Effects CEP Panel ā
ā (com.antigravity.aftereffects.mcp) ā
ā - Dispatches to ExtendScript host ā
āāāāāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāā
ā (window.__adobe_cep__.evalScript)
ā¼
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ExtendScript Host Engine ā
ā (aftereffects.jsx) ā
āāāāāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāā
ā (Direct app.project DOM API)
ā¼
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā Adobe After Effects Engine ā
ā Compositions, Layers, Renders ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāNode.js MCP Server: Started automatically by Antigravity. It starts a local loopback HTTP server on
127.0.0.1:17892.Local Token Authentication: A cryptographically random 256-bit token is generated and persisted locally in
.bridge-state.json. Every request between the CEP panel and the server is authenticated.CEP 9+ Panel: Runs inside After Effects (
Window > Extensions > After Effects MCP Bridge). It maintains a heartbeat connection with the local HTTP server and executes actions viaevalScript.ExtendScript Host: Manipulates compositions, properties, effects, and the Render Queue in native After Effects memory.
š”ļø Security & Reliability Features
Strict Loopback Binding: The bridge binds exclusively to
127.0.0.1and immediately drops any external network or non-localhost traffic.Constant-Time Token Comparison: Protects against timing attacks using
crypto.timingSafeEqual.Whitelisted Actions: Only pre-defined, rigorously sanitized actions are permitted. Arbitrary shell commands or unsanitized code evaluation are strictly blocked.
Destructive Operation Guards: Critical actions (such as removing a layer or rendering queue items) require explicit confirmation flags (
confirm_removal: true,confirm_render: true).
ā” Supported Tools (32 Operations)
Category | Available Tools |
System & Diagnostics |
|
Project & Compositions |
|
Media & Assets |
|
Layers & Layout |
|
Effects |
|
Keyframes & Animation |
|
Render Queue |
|
š Prerequisites
Operating System: Windows 10 or 11 (64-bit)
Adobe After Effects: CC 2018, CC 2019, CC 2020, CC 2021, CC 2022, CC 2023, CC 2024, or CC 2025+
Node.js: Node.js 18.x or later installed
MCP Client: Google Antigravity, Claude Desktop, or Cursor
š Step-by-Step Setup Guide
Step 1: Clone the Repository
Open PowerShell or Command Prompt:
git clone https://github.com/okaybhargav/After-Effects-MCP-for-Antigravity.git "C:\MCP\After Effect MCP"
cd "C:\MCP\After Effect MCP"Step 2: Install Node Dependencies
npm installStep 3: Enable CEP Developer Mode (PlayerDebugMode)
Adobe CEP requires PlayerDebugMode to load local, unsigned developer panels. Run the following command in PowerShell:
# Enables debug mode for CSXS 8 through 16 (covers CC 2018 through 2025+)
8..16 | ForEach-Object { reg add "HKCU\Software\Adobe\CSXS.$_" /v PlayerDebugMode /t REG_SZ /d 1 /f }Step 4: Install the CEP Extension
Run the bundled PowerShell install script:
powershell -ExecutionPolicy Bypass -File scripts\install.ps1This automatically deploys the extension folder to:
%APPDATA%\Adobe\CEP\extensions\com.antigravity.aftereffects.mcp
Step 5: Launch the Extension in After Effects
Start Adobe After Effects.
Open any project or create a new one.
In the top menu, navigate to: Window > Extensions > After Effects MCP Bridge.
A panel will appear. When the MCP server runs, the status indicator will turn Green (Connected).
Step 6: Configure Google Antigravity
Open your Antigravity configuration file:
File path:
C:\Users\<YourUsername>\.gemini\config\mcp_config.json
Add the after-effects server to your mcpServers block:
{
"mcpServers": {
"after-effects": {
"command": "node",
"args": [
"C:\\MCP\\After Effect MCP\\mcp-server\\index.js"
]
}
}
}(Make sure to adjust the path to match where you cloned the repository).
Restart Antigravity or refresh MCP tools.
š Verification & Diagnostics
To verify your installation and test communication before making requests:
# 1. Run diagnostic check (checks paths, registry, and process availability)
powershell -ExecutionPolicy Bypass -File scripts\diagnose.ps1
# 2. Run automated test suite
npm testš¬ Prompt Examples for Antigravity
"Check if After Effects is open and tell me which composition is currently active."
"Create a 1920x1080 60fps composition named 'TitleStinger' with a duration of 5 seconds."
"Add a black solid layer, then add a text layer with 'ANTIGRAVITY' in the center."
"Apply 'ADBE Gaussian Blur 2' to the text layer and animate the blurriness from 40 to 0 between seconds 0 and 1.5."
"Add the active comp to the Render Queue with output path 'C:\Exports\title.mov' and verify its status."
š Project Structure
After-Effects-MCP-for-Antigravity/
āāā cep-extension/
ā āāā CSXS/manifest.xml # CEP 9+ manifest (CSXS version definitions)
ā āāā host/aftereffects.jsx # ExtendScript host automation functions
ā āāā index.html # Panel UI
ā āāā panel.js # CEP bridge client and HTTP polling
ā āāā styles.css # Dark theme styling
āāā mcp-server/
ā āāā index.js # MCP stdio server entry point
ā āāā bridge.js # Local 127.0.0.1:17892 HTTP bridge with auth
ā āāā tools.js # 32 MCP tool definitions, JSON schemas, handlers
ā āāā validation.js # Strict input validation and sanitization
āāā scripts/
ā āāā install.ps1 # Installs CEP extension to %APPDATA%
ā āāā diagnose.ps1 # Full environment & bridge diagnostics
ā āāā uninstall.ps1 # Clean uninstaller
āāā tests/
ā āāā bridge.test.js # Loopback HTTP and token auth unit tests
ā āāā validation.test.js # Input schema and bounds test suite
āāā package.json # Node dependencies & test scripts
āāā .gitignore # Excludes node_modules and bridge runtime state
āāā LICENSE # MIT Open-Source License
āāā README.md # Documentationā Troubleshooting & FAQ
1. The extension does not appear under Window > Extensions
Fix: Confirm that you ran
scripts\install.ps1and thatPlayerDebugMode=1is set for your CSXS version. Make sure to restart After Effects completely after installing.
2. Panel shows "Disconnected" or "Searching for Bridge"
Fix: The panel connects when Antigravity starts the MCP server. Ensure Antigravity is running and has the
after-effectsserver configured inmcp_config.json. You can also test manually by runningnode mcp-server\index.jsin a terminal.
3. Port 17892 conflict
Fix: If port 17892 is occupied by another application, you can specify an alternate port via the
AE_MCP_PORTenvironment variable.
š License
This project is licensed under the MIT License - free for personal and commercial open-source use.
Available Tools
33 toolsadd_comp_to_render_queueB
Adds a composition to the Render Queue with an optional output file path.
Inputs: composition_id, composition_name, output_file_path.
add_media_layerB
Adds an imported footage item from the Project panel to the composition timeline.
Inputs: start_time, composition_id, project_item_id, project_item_name.
add_property_keyframeC
Adds or updates a keyframe on a layer property at a specified time.
Inputs: time (required), value (required), property_name (required), layer_name, +3 more.
add_solid_layerC
Creates and adds a solid layer to the composition.
Inputs: name, color, width, height, +3 more.
add_text_layerC
Creates and adds a text layer to the composition.
Inputs: text (required), name, position, composition_id.
ae_health_checkA
Performs a comprehensive health check on Adobe After Effects (2018-2025+), the CEP panel bridge, and active project.
Inputs: no named parameters.
ae_pingA
Pings the After Effects MCP server and local bridge to verify service responsiveness.
Inputs: no named parameters.
apply_effectC
Applies an effect to a layer (e.g. 'ADBE Gaussian Blur 2', 'ADBE Hue/Saturation', 'Fast Blur').
Inputs: effect_name (required), layer_name, layer_index, composition_id.
create_compositionC
Creates a new composition in Adobe After Effects.
Inputs: name (required), width, height, duration, +2 more.
execute_extendscriptC
Executes ExtendScript (JSX) code directly in Adobe After Effects and returns the result.
Inputs: script (required).
get_active_compositionA
Gets the currently active/selected composition in After Effects and its configuration.
Inputs: no named parameters.
get_composition_settingsC
Retrieves detailed settings for a composition specified by composition_id or composition_name.
Inputs: composition_id, composition_name.
get_layer_infoB
Retrieves full details of a specific layer in a composition (transform, properties, effects).
Inputs: layer_name, layer_index, composition_id.
get_project_infoA
Retrieves metadata and status of the currently open Adobe After Effects project (name, path, items count, color depth).
Inputs: no named parameters.
get_property_keyframesB
Retrieves existing keyframes on a property (times, values).
Inputs: property_name (required), layer_name, layer_index, composition_id, +1 more.
get_render_queue_statusB
Retrieves the status of items in the After Effects Render Queue.
Inputs: no named parameters.
import_media_to_projectC
Imports video, audio, or image files into the After Effects project.
Inputs: file_path, file_paths.
list_compositionsA
Lists all compositions in the current After Effects project with their dimensions, frame rates, durations, and layer counts.
Inputs: no named parameters.
list_layer_effectsC
Lists all applied effects on a layer along with their parameter names.
Inputs: layer_name, layer_index, composition_id.
list_layersB
Lists all layers in the active or specified composition.
Inputs: composition_id, composition_name.
list_project_itemsB
Lists all items in the After Effects Project panel (footage, comps, solids, folders).
Inputs: filter_type.
list_supported_keyframe_propertiesB
Lists keyframeable properties available on a layer (e.g. Position, Scale, Rotation, Opacity, Effects).
Inputs: layer_name, layer_index, composition_id.
remove_effectC
Removes an applied effect from a layer.
Inputs: effect_name (required), layer_name, layer_index, composition_id.
remove_layerB
Removes a layer from the composition. Requires confirm_removal: true.
Inputs: confirm_removal (required), layer_name, layer_index, composition_id.
remove_property_keyframeC
Removes a keyframe at a specified index or time.
Inputs: property_name (required), keyframe_index (required), layer_name, layer_index, +2 more.
save_projectB
Saves the current Adobe After Effects project safely, optionally specifying a destination path.
Inputs: destination_path.
set_effect_propertyC
Sets the value of a property on an effect applied to a layer.
Inputs: value (required), effect_name (required), property_name (required), layer_name, +2 more.
set_layer_blending_modeC
Sets the blending mode of a layer (e.g. Normal, Multiply, Screen, Overlay, Add).
Inputs: mode (required), layer_name, layer_index, composition_id.
set_layer_enabledB
Enables or disables (shows/hides) a layer in the composition.
Inputs: enabled (required), layer_name, layer_index, composition_id.
set_layer_opacityC
Sets the opacity percentage (0-100) of a layer.
Inputs: opacity (required), layer_name, layer_index, composition_id.
set_layer_transformC
Modifies transform properties of a layer (Position, Scale, Rotation, Opacity, Anchor Point).
Inputs: scale, opacity, position, rotation, +4 more.
split_or_trim_layerC
Trims or splits a layer by adjusting inPoint, outPoint, startTime, or splitting at time.
Inputs: in_point, out_point, layer_name, start_time, +3 more.
start_render_queueA
Starts rendering queued items in the After Effects Render Queue. Requires confirm_render: true.
Inputs: confirm_render (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
TDQS
Scored across 33 tools
Tools are mostly organized around a clear resource+action split (project, composition, layer, effect, keyframe, render queue), so an agent can pick correctly in most cases. Minor overlaps exist: ae_ping vs ae_health_check both test connectivity, and set_layer_opacity is a subset of set_layer_transform (which explicitly includes Opacity), while execute_extendscript is a catch-all that can technically duplicate nearly every other tool.
The surface is overwhelmingly consistent snake_case verb_noun (list_layers, add_text_layer, remove_effect, add_property_keyframe). The main deviations are the ae_ prefixed pair (ae_ping, ae_health_check) which breaks the pattern, plus add_* vs create_composition for object creation and the compound split_or_trim_layer.
33 tools is on the heavy side and a handful are arguably redundant or mergeable (ae_ping/ae_health_check, set_layer_opacity folded into set_layer_transform, set_layer_enabled into a general layer state setter). Still, After Effects is a genuinely deep domain and the large majority of tools map to a distinct, needed operation rather than padding.
Coverage is strong across the core lifecycle: media import, project save/info, composition creation and inspection, layer creation/transform/removal, effects, keyframes, and render queue control. Notable gaps remain: there is no tool to set a text layer's actual text content or font, no mask/shape/parenting or camera/light operations, and no way to delete compositions or project items ā all only reachable via execute_extendscript.
Related MCP Connectors
One sentence to a finished animation: your AI writes motion graphics as code and checks real frames.
Video production studio for AI agents: AI media, motion graphics as code, timeline and export.
Compose, edit and render video with your AI agent. Turn footage into finished edits with content-aware reframing, word-timed captions and motion graphics. Hosted MCP with OAuth sign-in; cloud processing uses credits.
Build and run visual creative-production workflows from your AI agent.
Related MCP Servers
- AlicenseCqualityDmaintenanceEnables AI assistants and applications to control Adobe After Effects through the Model Context Protocol for composition, layer management, and animation.13MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to operate Adobe After Effects with the dexterity of an editor: reading projects, creating and rigging layers, setting real velocity curves, animating text, building native SVG-based shapes, applying effects, expressions, masks, and viewing render snapshots to verify results.1718 npm1MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to build, animate, inspect, and script fully editable Adobe After Effects projects through a bridge panel, including frame and storyboard review.342MIT
- AlicenseBqualityCmaintenanceEnables AI clients to create and edit Adobe After Effects compositions, add and animate layers, apply effects, and view sampled frames to verify the rendered result.11MIT