Skip to main content
Glama
after-effects
by 23d1

after-effects-mcp

An MCP server that lets Claude drive Adobe After Effects — build comps, add and animate layers, apply effects, write expressions, and render frames back so the model can actually see what it made.

Runs on macOS and Windows.

Verification status. Both platforms are tested end-to-end against After Effects 2026 — 26.4 on macOS, 26.5 on Windows. npm run doctor re-checks every layer of the bridge on your own machine.


How it works

There is no network API for After Effects. This server talks to it the way AE expects:

MCP client  ──stdio──▶  this server  ──dispatch──▶  After Effects  ──▶  ExtendScript
                              ▲                                               │
                              └────────────── result.json ◀───────────────────┘
  1. Each tool call generates an ExtendScript (.jsx) file: a shared runtime library plus the tool's own body, with arguments baked in as a JSON literal.

  2. That file is handed to After Effects — by osascript/DoScriptFile on macOS, by AfterFX.exe -r on Windows.

  3. The script writes its result as JSON to a temp file, which the server polls for and reads.

No panel or extension to install — only AE itself.

Results are waited for on the file, never on the dispatch call. The two platforms genuinely differ here. Measured with a script that sleeps 1500ms: on macOS DoScriptFile returned at 1818ms, having waited for it; on Windows AfterFX.exe -r returned at 376ms while the script ran on until 1952ms. Polling the result file is correct under either behaviour, and on Windows it is load-bearing — without it every call would return before After Effects had finished. Everything above that line — the runtime, the tools, the scripts themselves — is identical on both.

Related MCP server: AE Motion MCP

Requirements

  • macOS or Windows, with Adobe After Effects installed

  • Node.js 18+

  • After Effects running, with a project open (ae_status will start it for you)

  • Allow Scripts to Write Files and Access Network enabled in After Effects: Settings → Scripting & Expressions (macOS) or Edit → Preferences → Scripting & Expressions (Windows). Results come back through a file, so nothing works without it.

On macOS, the first call also raises a system prompt asking to let the host app control After Effects. Approve it, or nothing will work. If you miss it: System Settings → Privacy & Security → Automation. This permission is granted per host application, so approving it for your terminal does not cover Claude Desktop, and vice versa.

Checking the setup

npm run doctor

Walks the chain — locating After Effects, detecting it running, dispatching a script, getting a result back, rendering a frame, resizing it — and says which step failed and why.

Install

npm install
npm run build

Register it with Claude Code. Use --scope user so the tools are available from any directory, not only this repo — you will normally want them where your actual video projects live, not where the server's source happens to sit:

# macOS
claude mcp add --scope user after-effects -- node /path/to/after-effects-mcp/dist/index.js

# Windows
claude mcp add --scope user after-effects -- node C:\path\to\after-effects-mcp\dist\index.js

The path must be absolute, and must keep existing — dist/ is gitignored, so a fresh clone needs npm install && npm run build before that path resolves. Check with claude mcp list.

As a Claude Desktop extension (.mcpb)

Build a self-contained bundle:

npm run bundle          # -> build/after-effects-mcp-<version>.mcpb
open build/after-effects-mcp-0.1.0.mcpb

Opening it hands the bundle to Claude Desktop, which shows an install dialog. The bundle carries its own production dependencies, so there is nothing to install alongside it and no PATH to configure.

The first tool call will raise a macOS prompt — "Claude wants to control After Effects". It must be approved or every call fails with Not authorized to send Apple events. Automation permission is granted per host application, so approving it for your terminal does not cover Claude Desktop, and vice versa. If you miss the prompt: System Settings → Privacy & Security → Automation.

As a config entry

Or add it to a client config by hand:

{
  "mcpServers": {
    "after-effects": {
      "command": "node",
      "args": ["/absolute/path/to/after-effects-mcp/dist/index.js"]
    }
  }
}

Environment variables

Variable

Purpose

AE_APP

Target a specific install when several are present. Windows: full path to AfterFX.exe, or to the install folder containing Support Files\AfterFX.exe. macOS: an app name ("Adobe After Effects 2025") or a full path to the .app. Auto-detected when unset — on Windows by scanning %ProgramFiles%\Adobe and taking the newest version.

AE_MCP_KEEP_TEMP

Set to 1 to keep generated .jsx files for debugging instead of deleting them.

Tools

Project ae_status · ae_project_info · ae_open_project · ae_save_project · ae_import · ae_undo

Compositions ae_list_comps · ae_comp_info · ae_create_comp · ae_set_comp_settings · ae_set_time

Layers ae_add_layer · ae_set_layer · ae_set_text · ae_layer_op · ae_select

Animation ae_set_keyframes · ae_set_property · ae_get_property · ae_set_expression · ae_remove_keyframes

Effects ae_search_effects · ae_apply_effect · ae_list_effect_params · ae_remove_effect

Output ae_save_frame · ae_render · ae_render_templates

Escape hatches ae_run_script · ae_exec_menu · ae_list_fonts

Every mutating tool opens its own undo group, so anything the model does is one ⌘Z away.

Property paths

Animatable things are addressed by dot-separated path, accepting display names or matchNames:

"Position"                            bare transform properties work
"Transform.Scale"
"Effects.Gaussian Blur.Blurriness"
["ADBE Effect Parade", "ADBE Gaussian Blur 2", "ADBE Gaussian Blur 2-0001"]

Pass an array when a name contains a dot or you want exact matchName addressing. When a path fails, the error lists the valid children at the point it gave up — so a wrong guess tells you the right answer.

Seeing the result

ae_save_frame renders a frame and returns it as an image. This is the point of the whole thing: the model can check its own work rather than assuming an edit landed.

ae_save_frame { comp: "Titles", time: "24f", maxSize: 900 }

Note that a composition's background color is an AE preview setting and never renders — the PNG has a transparent background. Add a solid layer if you need an opaque backdrop.

Notes for anyone extending this

Nine things cost real debugging time. They're documented here so they don't cost it twice.

1. DoScript returns a status code, not your script's value. AE's AppleScript dictionary declares DoScript/DoScriptFile as returning text, which is technically true — the text is "0" on success and "1" if the script threw. Your actual return value is discarded. Hence the result file in src/bridge.ts.

2. Object.prototype in ExtendScript carries operator-overload hooks. ExtendScript supports operator overloading, which means every object inherits methods named -, *, /, +, == and friends. So:

var ESCAPES = { '\n': '\\n', '"': '\\"' };
ESCAPES['-']   // → a Function, NOT undefined

Any lookup keyed by untrusted data can silently return a function. This broke JSON serialization for every string containing a hyphen — including most font names. All such lookups go through AEMCP.own(), which checks hasOwnProperty first.

3. Dispatch waits on macOS and does not on Windows. DoScriptFile blocks until the script finishes. AfterFX.exe -r signals the running instance and exits — for a 1500ms script it returned at 376ms. Waiting on the result file rather than on the dispatch call is what lets one code path serve both.

Measuring this needs care: a probe that finishes instantly cannot distinguish "dispatch waited" from "dispatch took longer to start up than the script took to run". The doctor's probe sleeps inside ExtendScript so the two separate cleanly.

4. Two scripts at once corrupts the project, quietly. After Effects runs one script at a time, and nothing in the dispatch path enforces it. MCP clients are free to issue tool calls in parallel, so overlapping calls are reachable from ordinary use. Four concurrent ae_add_layer calls for C1..C4 left a comp containing C2, C3 and two C4s, with C1 gone — while two of the four callers blocked for the full timeout and then blamed file permissions. A dropped script and a duplicated one are both silent; the damage shows up later as a project that doesn't match what was asked for. runJsx therefore funnels every call through a queue in src/bridge.ts, and the timeout starts when a call's turn does, so waiting in line is not charged against its own budget.

5. A modal dialog stops everything, and ordinary operations raise them. After Effects runs scripts on the thread its UI blocks, so any modal wins: the bridge waits on a result file that will never appear, the call burns its whole timeout, and every queued call behind it waits too. Nobody is there to click. Two everyday operations raise one, so both are settled in advance rather than left to prompt: rendering over an existing file ("already exists. Overwrite?") and opening a project while the current one has unsaved changes ("Save changes before closing?"). Each now takes an explicit opt-in (overwrite, discardChanges) and otherwise fails fast with a message saying so. ae_save_project and ae_save_frame were checked too — they overwrite silently and need no such guard. Anything new that writes a file or swaps the project deserves the same check, because the symptom is a hang rather than an error.

6. Windows will not let you delete a file After Effects still has open. Because dispatch returns early there, the temp .jsx is often still held when the call finishes, and removing its directory fails with EPERM. Cleanup retries and then gives up quietly — it runs in a finally, where throwing would replace a perfectly good result with an error about a temp file.

7. saveFrameToPng() is asynchronous. It returns before the file exists. Read it immediately and you get zero bytes, with no error anywhere. waitForPng() in src/tools/render.ts polls until the size settles and the PNG's IEND chunk is present.

8. app.fonts.allFonts is a list of families, not of fonts. Each element is an array of that family's faces, so allFonts[i].postScriptName is undefined rather than an error — every font serialised as {} and every query matched nothing, while the count still looked plausible (359 "fonts" that were really families holding 1384 faces). Reach the face through the inner array, and treat the count accordingly.

9. ExtendScript is ES3. No JSON, no let/const, no arrow functions, no Array.prototype.forEach/map/indexOf, no Object.keys, no String.prototype.trim. The runtime in src/jsx/runtime.jsx provides a JSON serializer and the helpers the tools rely on.

Layout

src/
  index.ts          MCP server; registers every tool
  host.ts           per-platform plumbing: locate, detect, dispatch, resize
  bridge.ts         script generation and result marshalling (platform-independent)
  mcp.ts            tool-definition helpers and shared argument schemas
  jsx/runtime.jsx   ExtendScript runtime injected into every call
  tools/            one module per tool group
manifest.json       MCPB bundle manifest
scripts/bundle.mjs  stages dist/ + production deps and packs the .mcpb
scripts/doctor.mjs  end-to-end diagnostics

Everything platform-specific lives behind the Host interface in src/host.ts — finding After Effects, detecting whether it runs, dispatching a script, and resizing a PNG (sips on macOS, System.Drawing via PowerShell on Windows). Adding a platform means implementing that interface and nothing else.

macOS system binaries (osascript, sips, pgrep) are invoked by absolute path. A host that launches the server from Finder or launchd — Claude Desktop, or an installed bundle — inherits a minimal PATH that need not contain /usr/bin.

Bundles are unsigned by default; npx mcpb sign will sign one if you are distributing it widely.

ae_run_script exposes the same runtime to callers, so anything the typed tools don't cover — masks, shape operators, text animators, puppet pins — is still reachable without changing code.

Troubleshooting

Symptom

Cause

"After Effects isn't running"

Call ae_status with launch: true.

Everything times out

AE is blocked on a modal dialog. Check its window.

"ran the script but wrote no result"

Script file access is blocked — enable Allow Scripts to Write Files and Access Network in After Effects → Settings → Scripting & Expressions.

"Not authorized to send Apple events" (macOS)

Approve the host app under System Settings → Privacy & Security → Automation.

"Could not find AfterFX.exe" (Windows)

After Effects is installed somewhere non-standard. Set AE_APP to the full path of AfterFX.exe.

A font silently doesn't apply

AE wants the PostScript name. Use ae_list_fonts to find it.

License

MIT

Available Tools

31 tools
ae_add_layerAdd a layerA

Add a layer to a composition: text, solid, shape, null, adjustment, camera, light, or existing footage/comp from the project. Returns the new layer's index.

Inputs: type (required), comp, font, name, +16 more.

ae_apply_effectApply an effectA

Add an effect to a layer and optionally set its parameters in one call. Accepts a display name ('Gaussian Blur') or a matchName ('ADBE Gaussian Blur 2').

Inputs: effect (required), comp, name, layer, +1 more.

ae_comp_infoInspect a compositionA
Read-only

Read a composition's settings and its layer stack, including each layer's transform, effects, and which properties are keyframed or expression-driven. This is the tool to call before editing anything, so you know what is actually there.

Inputs: comp, detail.

ae_create_compCreate a compositionA

Create a new composition and open it in the timeline. Note that backgroundColor is a preview convenience only — After Effects never renders it, so add a solid layer if the background needs to appear in ae_save_frame output or a final render.

Inputs: name (required), open, width, height, +4 more.

ae_exec_menuRun a menu commandA

Execute an After Effects menu command by name — useful for things with no scripting API, like 'Auto-Orient', 'Fit to Comp', or 'Purge All Memory'. Names must match the menu exactly.

Inputs: command (required).

ae_get_propertyRead a propertyA
Read-only

Read a property's current value, its keyframes and any expression on it. Also lists the property's children, which is how you discover exact parameter names.

Inputs: property (required), comp, time, layer.

ae_importImport footageA

Import files into the project. Handles stills, video, audio, and image sequences. Returns the new item ids so you can add them to a comp with ae_add_layer.

Inputs: paths (required), folder, sequence.

ae_layer_opDuplicate, delete, reorder or precompose layersA

Structural operations on layers: duplicate, delete, move in the stack, precompose a set of layers into a new comp, or split at the current time.

Inputs: op (required), comp, name, layer, +3 more.

ae_list_compsList compositionsA
Read-only

List every composition in the project with its size, duration and frame rate.

Inputs: no named parameters.

ae_list_effect_paramsInspect an applied effectA
Read-only

List every parameter of an effect already on a layer, with current values and types. This is how you discover the exact names to pass to ae_apply_effect or ae_set_property.

Inputs: effect (required), comp, layer.

ae_list_fontsList available fontsA
Read-only

List fonts installed for After Effects with their PostScript names — which is what ae_add_layer and ae_set_text expect. Setting a font that isn't listed here silently does nothing.

Inputs: limit, query.

ae_open_projectOpen or create a projectA

Open an .aep file, or start a new empty project.

Fails if the current project has unsaved changes, rather than discarding someone's work: save it first with ae_save_project, or pass discardChanges to throw it away deliberately.

Inputs: path, discardChanges.

ae_project_infoList project itemsA
Read-only

List everything in the Project panel — comps, footage, solids and folders — with ids you can pass to other tools.

Inputs: kind, search.

ae_remove_effectRemove or toggle an effectB

Delete an effect from a layer, or just switch it off.

Inputs: effect (required), comp, layer, disableOnly.

ae_remove_keyframesRemove keyframesA

Delete keyframes from a property — all of them, or those inside a time range.

Inputs: property (required), to, comp, from, +1 more.

ae_renderRender a compositionA

Add a composition to the render queue and render it. After Effects is blocked while this runs, so keep the range short unless you mean it. Use ae_save_frame for quick visual checks instead.

Inputs: outputPath (required), end, comp, start, +5 more.

ae_render_templatesList render templatesA
Read-only

List the render settings and output module templates available in this install, so you can pass valid names to ae_render.

Inputs: no named parameters.

ae_run_scriptRun ExtendScriptA

Run arbitrary ExtendScript inside After Effects. This is the escape hatch for anything the other tools don't cover — masks, shape operators, text animators, puppet pins, the lot.

The script body runs as a function: use return <value> to send JSON-serialisable data back. The full AE scripting API is available (app, app.project, ...), plus the AEMCP helpers used by this server: AEMCP.comp(ref), AEMCP.layer(comp, ref), AEMCP.prop(root, path), AEMCP.color(hex), AEMCP.time(comp, t), AEMCP.serializeLayer(layer), AEMCP.setKeys(prop, comp, keys, opts).

Pass args to hand data to the script: it arrives as the ARGS variable (null when omitted). Prefer that over pasting values into the source — it keeps quoting and non-ASCII text correct.

Remember: this is ES3. No JSON, no arrow functions, no let/const, no Array.forEach.

Inputs: script (required), args, undoLabel, timeoutSeconds.

ae_save_frameRender a frame to look atA
Read-only

Render a single frame of a composition to PNG and return it as an image, so you can see what the comp actually looks like. Use this to check your work after making changes — don't assume an edit landed the way you intended.

The PNG has a transparent background: a composition's background color is an After Effects preview setting and never renders. Add a solid layer if you need an opaque backdrop.

Inputs: comp, time, maxSize, outputPath, +1 more.

ae_save_projectSave the projectA

Save the current project, optionally to a new path (Save As).

Inputs: path.

ae_search_effectsFind available effectsA
Read-only

Search the effects installed in this copy of After Effects and get their exact matchNames. Use this before ae_apply_effect when you aren't sure an effect exists or how it's spelled.

Inputs: limit, query.

ae_selectSelect layersA

Change the timeline selection. Other tools fall back to the selection when you omit layer, so this is how you say 'the ones I mean' once.

Inputs: comp, layers.

ae_set_comp_settingsChange composition settingsA

Rename or resize a composition, or change its duration, frame rate, work area or background.

Inputs: comp, name, width, height, +6 more.

ae_set_expressionSet or clear an expressionA

Attach an expression to a property, or clear it. Expressions are written in After Effects' JavaScript expression language.

Inputs: property (required), comp, layer, expression.

ae_set_keyframesAnimate a propertyA

Set keyframes on any animatable property — transform, effect parameters, mask paths, shape properties, text animators. Existing keyframes at the same times are replaced. Easing defaults to smooth ease in and out.

Inputs: property (required), keyframes (required), comp, layer, +5 more.

ae_set_layerSet layer propertiesA

Change a layer's name, transform, timing, parenting, blend mode or switches. Values set here are static — use ae_set_keyframes to animate instead.

Inputs: shy, comp, name, solo, +17 more.

ae_set_propertySet a property valueA

Set a static value on any property by path — effect parameters, mask feather, shape sizes, anything ae_comp_info shows. Use ae_set_keyframes to animate instead.

Inputs: value (required), property (required), comp, layer.

ae_set_textSet text content and styleC

Change the string and character styling on a text layer.

Inputs: comp, font, text, color, +8 more.

ae_set_timeMove the playheadA

Set the current time in a composition. Affects what ae_save_frame captures.

Inputs: time (required), comp.

ae_statusAfter Effects statusA
Read-only

Check whether After Effects is running and report its version, the open project, and whether scripts are allowed to write files (needed for ae_save_frame and rendering). Start here if anything else fails.

Inputs: launch.

ae_undoUndoB

Undo the last operation in After Effects. Repeat to step further back.

Inputs: steps.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 31 tools

    Disambiguation4/5

    Most tools target a distinct resource and action, and the descriptions clarify boundaries well. The only mild overlaps are between ae_set_property and ae_set_layer for static layer values, and between ae_project_info, ae_list_comps, and ae_comp_info, but each has a clear enough role.

    Naming Consistency4/5

    The ae_ prefix and mostly verb_noun pattern (ae_list_comps, ae_create_comp, ae_set_keyframes) make the set predictable. A few bare verbs like ae_import, ae_undo, and ae_select, plus noun-style names like ae_project_info and ae_status, are minor deviations.

    Tool Count2/5

    At 31 tools, the server exceeds the 25+ threshold that signals an overly heavy surface. While After Effects is a broad domain, many property, effect, and layer operations could plausibly be consolidated into fewer, higher-level tools.

    Completeness5/5

    The tool set covers the full project lifecycle, comp and layer manipulation, keyframes, expressions, effects, text, rendering, and even a scripting escape hatch for unsupported operations. There are no obvious dead ends for realistic After Effects automation workflows.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Lets Claude drive Adobe After Effects on Windows — creating comps, layers, effects and expressions, rendering frames or full renders, and listing or tweaking parameters of any installed native or third-party plugin. It also runs arbitrary ExtendScript and menu commands, so plugin-only workflows can be orchestrated from natural language.
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables Claude or any MCP client to build, animate, preview, and render motion graphics in a live Adobe After Effects project, including comps, layers, keyframes, effects, cameras, masks, and renders.
      46
      15
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Connects Claude to a running Adobe After Effects so it can build eased keyframes, motion presets, kinetic typography, PSD-to-animation scenes, transitions and speed ramps, then review, polish and render deliverables. It also exposes a knowledge base of motion-design notes plus 262 operations across the full After Effects surface, with each edit applied as a single undo step.
      18
      12
      MIT