After Effects through MCP
The after-effects MCP server drives a running Adobe After Effects on Windows. Every tool call writes a small ExtendScript, runs it inside AE and returns JSON (or images). One call takes about 1.5–2 s, so build big scenes with ae_batch.
Golden rules
- Start with
ae_status. If the user has a project open with unsaved changes, do not touch it: ask, or work in a new project only after they agree. If any tool answersUNSAVED, stop and ask — never keep working in somebody else's project. - The AE interface may be in any language. Address properties only by matchName or by the short aliases (
position,scale,rotation,opacity,anchor,trimEnd,path,strokeWidth,fillColor, …). Never use display names. Useae_list_propsto discover matchNames andae_effectsto find effects. - Look before you show. After building, call
ae_snapshotwithsheetfor a contact sheet and actually look at it. Fix what you see before showing the user. - Stills first, render later. Show the user a few stills; run a long
ae_renderonly after they say yes. A quickengine: "ae"render is fine for short checks. - If AE stops answering, call
ae_screen: it shows AE windows only (not the whole desktop) and reveals the dialog that blocks scripts.ae_dialogcan press OK/Cancel, but never on dialogs about saving, deleting, licences, sign-in, payment or installation — ask the user. - Plugins only with consent.
ae_plugin_installasks the user itself (twice: download, then install), downloads only from the allowlist inmcp/plugins_allow.json, scans with Windows Defender and never runs.exeinstallers. Never look for cracked or pirated plugins.
Quality: real motion, not "AI slop"
Studied from professional logo reels — follow it:
- Density: 15–20 events in 3–4 seconds. Something new every 150–250 ms.
- Full-screen colour changes with crisp flat shapes (circle or band wipes, no blur on the wipes), 2–4 background changes per piece.
- Shapes transform 3–4 times (drop → ring → line → letter), not just fade/scale in.
- Anticipation before every burst, overshoot and springs after (
ease: {spring: {...}}inae_set_keys). - Secondary motion: trails with taper, small bits (dots, rings, plus signs) that fly out and shrink, coloured leading edges in front of white strokes.
- Avoid: soft glowing blobs, glass, gradients as decoration, static mock-ups, the same whoosh/pop for every action, everything easing the same way.
- Clear final frame that holds 0.5–1 s.
Tools by task
| Task | Tools |
|---|---|
| Project | ae_status, ae_project, ae_save, ae_batch, ae_run_jsx |
| Layers | ae_create_comp, ae_import, ae_add_media (photo/video on the timeline: at, dur, srcIn, fit), ae_add_text, ae_add_shape (rect, ellipse, star, path, SVG d), ae_add_layer (null, solid, adjustment, camera, comp), ae_set_layer (parent, track matte, blend, motion blur, 3D, order), ae_precompose, ae_add_mask |
| Motion | ae_set_keys (easing presets, CSS cubic-bezier, springs, path morphs), ae_set_expression, ae_add_effect, ae_transition (push, whip, zoom, dissolve, wipe, circle, bands) |
| Titles | ae_title (fits text into safe margins, word-by-word animation, accents, plates), ae_fonts |
| Sound | ae_audio (gain, fades, music ducking under a voice found automatically) |
| Characters | ae_rig_chain (bones + IK with Duik), ae_path_rig (vector shapes bend with pins), ae_puppet_link, ae_duik (any Duik Ángela API: auto-rig, walk cycle, wheel, Kleaner overlap, camera rig) |
| Any menu item | ae_select, ae_command (menu text in the AE interface language, or command id) |
| Output | ae_snapshot, ae_render (aerender or in-app render → ffmpeg H.264 mp4, optional loudness normalisation), ae_check_video |
| Screen & plugins | ae_screen, ae_dialog, ae_effects, ae_plugins, ae_plugin_install |
Recipes
Logo animation (1920×1080, 60 fps): ae_create_comp with motionBlur → build all layers in one or a few ae_batch calls → put a null as the logo root, parent everything to it → keys with springs → ae_snapshot sheet of 20–30 frames → fix → show stills → render.
Vertical video (1080×1920): ae_add_media for each shot (fit: "cover", focus), ae_transition between shots, ae_title with align: "bottom" and default safe margins (bottom 22 % is kept free for the app UI), ae_audio voice + music with duckVoice, ae_render with audio: true, lufs: -14, then ae_check_video.
Character rig: draw limbs as separate layers with anchors at joints → ae_rig_chain with the joint positions (2–3 joints = precise IK, 4+ = curved chain) → animate the controller and bones with ae_set_keys → ae_duik with Duik.Automation.kleaner(props) for overlap. For vector characters, ae_path_rig bends the shapes themselves.
Known limits
- Puppet pins: a script can add pins but AE builds the deform mesh only when the Puppet tool is used by hand. Ask the user to place pins, then link them to bones with
ae_puppet_link. - Gradient colours of shape fills are not scriptable — use
ADBE RamporADBE 4ColorGradienteffects (effect points are in comp space on shape layers). - Parenting keeps world transform — set anchor/position/scale after
parent. - AE fills its disk cache while idle; if the disk gets full,
app.purge(PurgeTarget.ALL_CACHES)throughae_run_jsxclears it. - Template names of output modules are localized;
ae_renderpicks a template by file extension, so it works in any interface language.