layercake
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., "@layercakeInspect the currently open After Effects project and give me an overview."
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.
LayerCake
Use professionally designed After Effects projects as agent-ready video templates.
Template-first, state-aware After Effects automation for AI agents.
LayerCake is a local Model Context Protocol server that lets agents inspect, fill, adapt, and validate existing Adobe After Effects projects.
Instead of rebuilding motion design from scratch, an agent can work with a ready-made .aep template: find the right compositions and layers, understand timing and dependencies, insert content, make controlled changes, and save the result as a new project.
LayerCake runs scripts directly through After Effects on macOS and Windows. No plugin or bridge panel has to remain open.
What LayerCake is for
Fill After Effects templates
Use professionally designed projects as the basis for automated video production. Agents can identify placeholders, update content through typed tools or ExtendScript, preserve the existing animation, and create project variants.
Generate variations
Adapt one template for different customers, products, languages, campaigns, or formats without recreating the motion design for every output.
Understand existing projects
Inspect compositions, layers, sources, timing, expressions, fonts, effects, and footage interpretation before changing anything.
Validate production templates
Check for missing footage, missing fonts, third-party effects, broken assumptions, or unexpected project structure before a project enters a rendering pipeline.
Maintain projects safely
Target exact objects, detect when project state has changed, verify mutations, and save copies or backups explicitly.
Related MCP server: AE MCP Server
What you can ask
Inspect this project and identify its editable text, image, logo, and video layers.
Explain how the main composition and its precompositions are connected.
Replace the customer name and logo while preserving the existing animation.
Create three versions of this project using different product assets.
Show the timing, expressions, and animated properties of this layer.
Check the project for missing footage, fonts, and third-party effects.
Move the lower-third animation two seconds earlier without changing its duration.
Save the completed version as a new project without overwriting the template.
Why state-aware?
After Effects projects are live, nested documents. Names can be duplicated, indexes move, expressions affect property values, and a person can edit the open project between two agent operations.
LayerCake gives agents enough context to act deliberately:
compact project inventories with deep inspection on demand
stable After Effects IDs for follow-up operations
project fingerprints that detect stale state
guarded typed patches with verified before-and-after results
explicit save-copy and backup operations
direct ExtendScript access for unsupported work
Inspection is not the end goal. It is what makes reliable template automation possible.
Features
Project inspection
Open and close
.aepand.aetprojectsRead project path, dirty state, revision, and fingerprint
Summarize project health
List compositions and their layers
List footage, solids, placeholders, and folders
Resolve inbound references for a project item
Inspect layer property trees
Inspect footage interpretation settings
Detect missing footage and fonts
Identify third-party effects
Project editing
Typed mutations go through ae_patch_project. Current operations include:
text style and layer rename
layer timing (frame-exact), switches, transform, index, and delete
composition settings and property expressions
create solid, replace layer source, and reset layer surface
Project panel create/move/rename/delete, plus
safe_delete_project_item
Typed patches validate their targets, can reject stale project state, and return verified before-and-after evidence. They do not save the project implicitly.
Use ae_eval_script for template-filling steps and other edits that do not yet have a typed tool.
After Effects scripting
LayerCake includes a searchable local copy of the After Effects Scripting Guide. Agents can consult the object model before writing and running ExtendScript.
Scripts execute inside After Effects and can return structured results to the agent.
Explicit saving
LayerCake separates editing from persistence:
save_copysaves the active project to a new path and continues working on that copycreate_backupcopies the clean project file without changing the active project
How it works
A typical workflow looks like this:
Open or identify the After Effects project.
Bind to its current state.
Inventory compositions, layers, sources, and dependencies.
Inspect the relevant template controls or placeholders.
Apply a typed patch or reviewed ExtendScript.
Verify the result.
Save a copy or create a backup.
LayerCake drives After Effects through:
AppleScript
DoScriptFileon macOSAfterFX.exe -ron Windows
Requirements
Adobe After Effects 24.6+ (supported baseline; newer hosts including 26+ work as supersets; older than 24.6 may work but are unsupported)
Node.js 20 or newer
An MCP-compatible agent or client
macOS or Windows
Windows host control has been smoke-tested with After Effects in a Windows 11 VM running in UTM.
Quickstart
git clone https://github.com/alphacornutum/layercake.git
cd layercake
npm install
npm run docs:fetch
npm run buildCopy the environment template:
# macOS
cp .env.example .env
# Windows PowerShell
Copy-Item .env.example .envIn After Effects, enable:
Preferences → Scripting & Expressions → Allow Scripts To Write Files And Access Network
Configure the local After Effects installation.
On macOS:
AE_APP_NAME="Adobe After Effects 2026"On Windows:
AE_EXECUTABLE=C:\Program Files\Adobe\Adobe After Effects 2026\Support Files\AfterFX.exeAdd LayerCake as a stdio MCP server.
macOS example
{
"mcpServers": {
"layercake": {
"command": "node",
"args": ["/absolute/path/to/layercake/dist/index.js"],
"env": {
"AE_APP_NAME": "Adobe After Effects 2026"
}
}
}
}Windows example
{
"mcpServers": {
"layercake": {
"command": "node",
"args": ["C:\\absolute\\path\\to\\layercake\\dist\\index.js"],
"env": {
"AE_EXECUTABLE": "C:\\Program Files\\Adobe\\Adobe After Effects 2026\\Support Files\\AfterFX.exe"
}
}
}
}See Setup and connection for development configurations, installation variants, and troubleshooting.
Machine IDs such as the npm package, CLI, and MCP configuration key use lowercase layercake. The product name is LayerCake.
Verify the connection
Open After Effects and ask your agent:
Use LayerCake to check the After Effects host status.
Then ask:
Inspect the currently open project and list its compositions.
Tools and agent skill
LayerCake registers its inventory, inspection, patch, save, documentation, and ExtendScript tools automatically.
The bundled drive-after-effects skill teaches compatible agents to inspect before mutating, prefer stable IDs, verify changes, and save deliberately. It ships in skills/; you can copy or symlink it into an agent’s skills folder, or load it through the MCP resources skill://drive-after-effects/SKILL.md and skill://index.json.
See MCP tools and agent skill for the complete tool reference.
Related projects
Dakkshin/after-effects-mcp takes a creation-first approach. It provides ready-made commands for constructing compositions, layers, shapes, cameras, masks, keyframes, expressions, and effects through a persistent ScriptUI bridge.
LayerCake is template-first and state-aware. It focuses on using existing After Effects projects as reliable production templates: understanding their structure, finding exact targets, working against known project state, and verifying changes.
Both approaches are useful:
Choose a creation-first tool when the main job is building a scene through predefined creative commands.
Choose LayerCake when the main job is filling, adapting, validating, or maintaining an existing After Effects project.
See Choosing an After Effects MCP for a detailed comparison.
Current limitations
The typed editing surface covers common inspect-and-edit jobs, but many template-filling steps still need ExtendScript.
Raw
ae_eval_scriptdoes not provide all the guards of typed patches.LayerCake does not visually judge rendered output.
One agent should control one After Effects session.
Features unavailable through Adobe’s scripting API cannot be automated.
Documentation
Safety
ae_eval_script can change the open project, write files, and perform operations that are difficult to undo.
Inspect first, review destructive scripts, and work on a copy when the source project matters. Typed patches provide stronger targeting and verification, but they still modify the live After Effects project.
See SECURITY.md.
License
MIT. See LICENSE.
The Scripting Guide content under vendor/ retains its original Adobe and docsforadobe licensing and attribution. See Scripting Guide corpus.
This server cannot be installed
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
- AlicenseCqualityFmaintenanceA Model Context Protocol (MCP) server for Adobe After Effects that enables AI assistants and other applications to control After Effects through a standardized protocol.1359533MIT
- 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.922921MIT
- AlicenseAqualityCmaintenanceAn 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
- AlicenseCqualityCmaintenanceMCP server for controlling Adobe After Effects, enabling AI assistants to create compositions, manage layers, and animate properties.1359MIT
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server for Wan AI video generation
MCP server for Google Veo AI video generation
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/alphacornutum/layercake'
If you have feedback or need assistance with the MCP directory API, please join our Discord server