Skip to main content
Glama

ae-mcp-tuift

License: MIT Node After Effects

English | Português (BR)

An MCP server that lets an AI agent drive Adobe After Effects: inspect a project, edit layers and keyframes, look at the result, review the motion, render. It is the TUIFT Media fork of kumoproductions/mcp-aftereffects v0.3.1 (see NOTICE.md) plus house tools for motion work: contact sheets, motion review, scene plan check, chunked background render, spring/entrance/stagger moves, a lessons journal.

Windows / macOS · After Effects 2024–2026 · Node.js 24+ (the house render and dialog helpers are Windows-first).

CAUTION

The agent can read and modify compositions, layers, effects, keyframes and expressions. What it reads (names, expressions, footage paths) may be sent to the AI service you use. Try it on a backup or a test.aep first, and check your AI service's data policy before using it on projects under NDA.

Requirements

  • After Effects 2024, 2025 or 2026, already open with a project. The server does not start After Effects (it can start extra instances, see instance.start).

  • After Effects preference Scripting & Expressions → "Allow Scripts to Write Files and Access Network" turned ON. The server cannot check it; with it OFF, calls time out.

  • Node.js 24 or newer.

  • Optional outside programs, only for the tools that need them. A missing one is a readable tool error, never a crash:

    • ffmpeg + ffprobe on PATH (or TUIFT_FFMPEG / TUIFT_FFPROBE): ae_render_video, ae_place_sfx, ae_avaliar_render, and ae_see with a reference video.

    • Python 3 + torch + beat_this (TUIFT_PYTHON): ae_beats.

    • Playwright + Chromium, Chrome or Edge (TUIFT_PLAYWRIGHT_ROOT): ae_capturar_movimento_web.

Related MCP server: AE Bridge MCP

Run it

Get after-effects-mcp-<version>.tgz from a release (or build it, below), extract it anywhere (spaces in the path are fine) and point your MCP client at dist/index.js. There is no install step: production node_modules are inside.

tar -xzf after-effects-mcp-0.4.0.tgz
claude mcp add after-effects -- node "/path/to/after-effects-mcp/dist/index.js"

Any stdio MCP client works the same way:

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

From a checkout: npm ci && npm run build, then use dist/index.js of the checkout. npm run bundle rebuilds the archive (it prints its size and SHA-256).

Tool profiles (AE_MCP_TOOLS)

Some agent programs resend the whole tool list on every request. AE_MCP_TOOLS picks how much of it you pay for. The operations behind ae_do are not part of the list: ae_catalog returns them on demand, so they cost nothing until used.

Profile

Tools

Tool list size

What it registers

all (default)

25

39,898 characters, about 10,000 to 11,400 tokens

Everything below, plus ae_place_sfx, ae_beats, ae_capturar_movimento_web, ae_avaliar_render. ae_docs joins them when TUIFT_DOCS_DIR is set.

core

21

33,443 characters, about 8,400 to 9,600 tokens

Only tools that need After Effects alone, or nothing: project/comp/layer info, save, JSON export/import, ae_render_frame, ae_do, ae_catalog, ae_context, ae_see, ae_review_motion, ae_expressions_check, ae_sound_cues, ae_render_video, ae_render_status, ae_plano_check, ae_checkpoint, ae_lessons, ae_preparar_movimento_web.

Sizes are the JSON of the tools/list answer, tokens at 3.5 to 4 characters each; node scripts/measure-tools.mjs --per-tool measures them on your build. docs/TOOLS.md lists every tool and its profile.

Safety switches

  • AE_MCP_READONLY=1: inspection only. Tools that change the project are not registered and ae_do accepts only read-only operations.

  • AE_MCP_ALLOW_CATEGORIES=keyframe,layer: only those operation categories run.

  • AE_MCP_ENABLE_EVAL=1: adds eval.run (arbitrary ExtendScript, with file and process access). Off by default; turn it on only when you need it.

  • Every ae_do call is one undo group. Run ae_checkpoint before structural changes: a batch is not transactional.

  • npm test never touches a running After Effects; the live suites need AE_MCP_E2E=1 (see CONTRIBUTING.md).

Environment variables

Variable

Meaning

AE_MCP_TOOLS

core or all (default). An unknown value falls back to all and says so on stderr.

AE_MCP_EXE

Full path of AfterFX.exe (Windows) or the .app (macOS). Default: the newest of 2026, 2025, 2024 in the standard location.

AE_MCP_READONLY, AE_MCP_ALLOW_CATEGORIES, AE_MCP_ENABLE_EVAL

Safety switches above.

AE_MCP_INSTANCE

Default instance when several After Effects run (AfterFX.exe -m); needs the resident agent (node dist/index.js install-agent).

AE_MCP_RUNTIME_DIR

Moves the IPC mailbox (default <temp>/mcp-aftereffects/runtime). Re-run install-agent after changing it.

TUIFT_HOUSE_STYLE

Your own house-style JSON instead of kit/estilo-da-casa.json (springs, curves, drift, stagger, review and render numbers).

TUIFT_LESSONS

Your own lessons file instead of kit/licoes.jsonl. ae_lessons add writes to it, so point it somewhere writable and durable.

TUIFT_REVIEW_RULES

Optional JSON with your review rules and decided cases for ae_avaliar_render (default: none).

TUIFT_DOCS_DIR

Folder holding your clones of the docsforadobe After Effects scripting and expression guides. Without it ae_docs is not registered.

TUIFT_FFMPEG, TUIFT_FFPROBE, TUIFT_PYTHON

Full paths of the outside programs when they are not on PATH.

TUIFT_PLAYWRIGHT_ROOT

Folder containing node_modules/playwright, for ae_capturar_movimento_web.

TUIFT_WORK_DIR

Where checkpoints, contact sheets and render jobs go (default <temp>/ae-mcp-tuift).

TUIFT_GAME_PROCESSES

Comma-separated process names (without .exe); while one runs, the render uses one chunk at a time and half the threads. Default: off.

TUIFT_RENDER_INPROCESS, TUIFT_RENDER_KILL_GB

Render inside the server process instead of a detached worker; free-RAM floor (GB) under which the newest aerender is stopped.

What is in the box

  • Upstream tools: ae_project_info, ae_comp_info, ae_layer_info, ae_version_info, ae_render_frame, ae_save_project, ae_project_export_json, ae_project_import_json, ae_catalog, ae_do (229 operations, 230 with eval.run, across layers, keyframes, effects, masks, shapes, text, comps, project, rendering, instances), ae_context.

  • House tools: ae_see (contact sheet you can look at), ae_review_motion (human or robotic motion), ae_plano_check (check the scene plan before building), ae_expressions_check, ae_sound_cues and ae_place_sfx, ae_beats, ae_checkpoint, ae_render_video and ae_render_status (chunked background render), ae_avaliar_render, ae_lessons, the two web-capture tools, ae_docs.

  • House operations in ae_do: tuift.mola, tuift.entrada, tuift.saida, tuift.stagger, tuift.vivo, tuift.camera_viva, tuift.curva, tuift.cena, tuift.morph, plus project.collect and footage.relink. Their numbers come from kit/estilo-da-casa.json.

  • Lessons: kit/licoes.jsonl holds 58 After Effects gotchas. When a tool call fails, the lessons whose pattern matches the error are appended to it.

Details of the transport, the ExtendScript rules and how to add an operation are in CONTRIBUTING.md. The Portuguese guide to the house tools is README.pt-BR.md.

Troubleshooting

  • Calls time out: is After Effects running with a project open, and is "Allow Scripts to Write Files and Access Network" ON? On macOS also allow your client under System Settings → Privacy & Security → Automation.

  • NO_INSTANCE: no After Effects could take the call. Instances started with -m need the resident agent; with several live and none named, set AE_MCP_INSTANCE.

  • DIALOG_OPEN: After Effects is showing a modal dialog (often hidden). instance.dialogs lists them and instance.dismiss_dialog { id } cancels one.

  • "X was not found on this computer": an outside program is missing; the message names the variable to set.

  • After Effects in a non-standard place: set AE_MCP_EXE.

Credits and licence

MIT. Copyright (c) 2026 kumo.productions, Inc. (the upstream server) and (c) 2026 TUIFT Media (the additions). Built on kumoproductions/mcp-aftereffects. Third-party licences of the bundled dependencies are in THIRD_PARTY_LICENSES.txt inside the bundle.

Adobe and After Effects are trademarks of Adobe Inc. This project is independent and not affiliated with or endorsed by Adobe.

Available Tools

25 tools
ae_avaliar_renderReview a rendered video (measured + list of problems)A

Review a RENDERED video in two layers. First call: measures 55 points from the file (technical, audio, rhythm, opening) and writes a review packet for Gemini (contact sheets, REVISAO.md with the house rules and the director's decided cases, a JSON to fill in). Second call with revisao: a LIST OF PROBLEMS (time, rule, what is seen, concrete fix, severity) plus the predicted verdict of the director → pronto (aprovaria), revisar (aprovaria com ajustes) or refazer (pediria refação); a high-severity problem forces refazer. Old 0-45 reviews (categorias + travas) are still accepted. Pass contexto (what the video is) for a better packet. Each file content gets its own id, and evolucao compares the versions in the folder. Does not need After Effects.

Inputs: video (required), tipo, forcar, outDir, +3 more.

ae_beatsMusic beats → markersA

Measure beats and downbeats of a music file with beat_this (runs locally) and optionally write them as comp markers ('BAR n' on downbeats, 'beat' on the rest), offset by where the music layer starts. Use before cutting or timing hits on the beat — catalog BPMs can be wrong.

Inputs: file (required), comp, clear, offset, +2 more.

ae_capturar_movimento_webCapturar movimento CSS de páginaA

Captura quadros de um elemento 2D de página CSS/WAAPI sem abrir o AE. Mede os quatro cantos reais, pivô e opacidade; grava JSON novo no outPath. Não controla JavaScript, canvas, WebGL, vídeo ou rolagem; filtros e máscaras são avisados.

Inputs: fps (required), url (required), outPath (required), duration (required), +5 more.

ae_catalogOperation catalogA
Read-only

Discover available atomic operations for ae_do. Without args: all categories with their operation names. With a category: detailed params per operation. With an operation (e.g. tuift.morph): the params of that one operation. Only operations this server will actually execute are listed.

Inputs: category, operation.

ae_checkpointProject checkpointsA

Save points for the open .aep. create (before a structural change, a big batch or a rebuild) saves the project and copies it to /_checkpoints/. list shows them. revert first checkpoints the current state, then restores the chosen checkpoint over the project file and reopens it. AE undo is per call and a batch is not transactional — checkpoints are the real safety net.

Inputs: action (required), label, instance, checkpoint.

ae_comp_infoComp infoA
Read-only

Detailed comp info: size, fps, duration, work area, motion blur, layer summaries. Pass a comp name or item id — or an ARRAY of them to fetch several comps in one call.

Inputs: nameOrId (required), instance.

ae_contextSession contextA
Read-only

Ambient context: project state, active comp, selected layers, item list, AE.* helpers, ES3 rules, and the undo contract (every call = one auto undo group). Call at session start; then rely on ae_do response context.

Inputs: instance.

ae_doExecute operationA
Destructive

Execute an atomic operation by name (from ae_catalog). Arguments are validated against the operation's declared parameters before anything reaches AE. Have more than one operation to run? Wrap them in ONE batch.run instead of several ae_do calls — read/verify steps (comp.info, layer.info, render.frame) can ride in the same batch. Every call is automatically wrapped in ONE undo group: a single Ctrl+Z (or project.undo) reverts the entire call, and a batch.run counts as one call. Never call app.beginUndoGroup/endUndoGroup in eval.run code — the wrapper already did. The exception is undo/redo itself (project.undo, command.execute id 16/2035): those run outside the group and cannot ride inside a batch.run. Response includes ambient context (active comp, selected layers, project state) at zero extra round trips. Example: ae_do({ operation: 'keyframe.add', args: { comp: 'Main', layer: 1, property: ['Transform','Position'], time: 2, value: [960,540] } })

Inputs: operation (required), args, instance, timeoutMs.

ae_expressions_checkCheck expressionsA
Read-only

Find broken expressions: walks every expression in a comp (or the whole project), forces evaluation at the layer's in/mid/out times and reports expressionError, plus expressions AE has switched off. Setting an expression never fails by itself — run this after writing expressions, renaming comps/layers/effects, or importing. Expressions using sourceRectAtTime/toComp/sampleImage are read but not force-evaluated (doing so from a script can open a blocking modal).

Inputs: max, comp, force, instance.

ae_layer_infoLayer infoA
Read-only

Full layer info: transform, effects, masks, text, shape contents, keyframes (incl. interpolation names and bezier ease speed/influence). layerIndex accepts one index, an ARRAY of indices, or 'all' — auditing a whole comp is one call. detail:'summary' drops properties still at their default value (unkeyed, no expression) — start there for audits; the full tree is often 100KB+ per comp. Set includeProperties=false to skip the property tree walk entirely.

Inputs: layerIndex (required), compNameOrId (required), detail, instance, +1 more.

ae_lessonsAE lessons journalA

The journal of After Effects lessons (gotchas that cost real effort). list or search before an unfamiliar task; add after you solve a problem that will recur (tool fault or AE quirk) — give a regex quando that matches the error text, so the lesson is attached automatically the next time that error appears. Keep each lesson one or two sentences, with the fix.

Inputs: action (required), query, lesson.

ae_place_sfxPlace SFX on eventsA

Place sound-effect files in a comp so that each file's LOUDEST sample (measured with ffmpeg) lands exactly on its event time (start = at − peak). Imports each file once into an 'SFX' folder, names layers 'SFX ', sets Audio Levels in dB when given (0 = as recorded; leveled library files need no gain). One undo group.

Inputs: comp (required), items (required), instance.

ae_plano_checkCheck the video plan before buildingA
Read-only

Check a video's PLAN before touching After Effects: empty stretches between scenes, overlaps, scene length, too much text on screen, too many elements, elements that live too short, narration without a scene, scene changes away from a sentence start, things the narration cites with no image. Numbers come from the house style (perfil narrado, cinetico or livre in tipo). Returns a score, the issues and the scene list ready for ae_do tuift.cena. Plan format: { tipo, duracao, audio: { palavras: 'palavras.json' }, cenas: [{ nome, inicio, fim, fala, texto: ['...'], elementos: [{ nome, papel: 'principal|apoio|legenda', entra, sai }], citados: [{ nome, asset }] }] }. Times in seconds on the video's timeline. Does not need After Effects.

Inputs: plano, arquivo, palavras.

ae_preparar_movimento_webPreparar chaves AE do movimento webA

Lê uma captura JSON e grava um arquivo novo com conversão 2D e lote batch.run para ae_do. Não altera o AE. O lote verifica comp, camada, footage e keys antes de aplicar; requer eval.run habilitado e não é transacional.

Inputs: comp (required), layer (required), outPath (required), sourceSize (required), +2 more.

ae_project_export_jsonExport project JSONA

Serialize the entire project to JSON (folders, comps, layers, keyframes, effects, shapes, markers, time remap, solids, file refs). Write to outPath or return inline.

Inputs: pretty, outPath, instance.

ae_project_import_jsonImport project JSONA
Destructive

Rebuild the project from JSON (produced by ae_project_export_json). Supports clearFirst, dryRun (validate-only), skipValidation.

Inputs: json, dryRun, inPath, instance, +2 more.

ae_project_infoProject infoA
Read-only

Project-level info: file path, dirty flag, all items with type/summary, active item. Start here.

Inputs: instance.

ae_render_frameRender frameA

Render one or more frames to PNG. Use to visually verify edits. The agent's 'eyes' — pair with mutations for a visual feedback loop. Headless and deterministic. Pass time for one frame, or times for several in ONE call (motion checks): files land at _.png and are listed in frames. contactSheet tiles every frame into one labelled PNG (_sheet.png) so a motion check is one image; analyze measures each capture (uniform edge bands = black bars / transparent margins, content bounds, coverage) so off-frame elements and letterboxing are caught numerically. In color-managed projects (workingSpace != None) the capture applies AE's own display transform via a transient OCIO Display Transform adjustment layer, and the PNG comes back viewer-accurate and sRGB-tagged. Where that layer cannot be used — read-only mode, an AE without the OCIO effect, or a failed capture calibration — the result falls back to a pure-math ACES conversion or to raw values with an explicit colorWarning; check colorPipeline / colorWarning on the response.

Inputs: outPath (required), compNameOrId (required), time, times, +5 more.

ae_render_statusRender job statusA
Read-only

Status of background renders started with ae_render_video: chunk progress, final file and the automatic checks (black, frozen, frames, loudness). Works across server restarts: every job is indexed on disk. Omit jobId to list recent jobs.

Inputs: jobId.

ae_render_videoRender video (background, chunked)A

Render a comp to MP4 in the BACKGROUND. mode previa = Draft Settings in one chunk to SEE a change fast; mode turbo = final render using the whole PC; redo [a,b] = re-render only the chunks that changed (same outDir). Default mode leve = the studio's render that keeps the PC usable: aerender in chunks (default 30 s; 15 s for Advanced 3D; chunkSec 10 for heavy blur/video; never under 5 s, opening aerender alone costs ~21 s) with multi-frame rendering on, up to 2 at once at BelowNormal priority with 8 threads left free and a RAM gate (one at a time while a process named in TUIFT_GAME_PROCESSES runs), -mem_usage 20 30, chunks joined without re-encoding and tagged BT.709, optional audio mux with loudness read-out, then checks for black and frozen stretches. Returns a job id at once — poll ae_render_status. Saves the project first. Avoid editing the project while it renders; keep bridge calls light.

Inputs: comp (required), mode, redo, audio, +7 more.

ae_review_motionReview motion (humano ou robotizado?)A
Read-only

Rule-based motion review of a comp without rendering, using the studio house style: camera/rig that stops dead, holds that freeze and restart (robotizado), linear moves with no spring, several layers starting on the same frame (needs stagger), layers that pop in/out with no entrance/exit, keys off the frame grid, motion blur off, text too small, layers touching the safe margin, expression errors. Returns a score and issues with the tuift.* operation that fixes each. Run after building and after every fix round; then LOOK with ae_see. With scene markers (tuift.cena) each issue carries its scene, and cena limits the review to some of them. With an identidade.json near the .aep (or identidade), fonts, colors, radii and margin outside the video's identity are reported too.

Inputs: comp (required), cena, instance, restTime, +3 more.

ae_save_projectSave projectB
Destructive

Save the project. Pass path for Save As.

Inputs: path, instance.

ae_seeSee frames (contact sheet as image)A

LOOK at the comp: renders several frames and returns ONE labelled contact sheet as an IMAGE you can see (plus the file paths). Use after every build step and before saying anything is done — a successful tool call is not visual proof. Give times, or count frames evenly spaced over the work area (or range). Check the MIDDLE of movements, not only the rest poses. With reference (a video file or a list of images) each row is REF | NOSSO (| DIF), at the same times — the side-by-side used to recreate a reference. Keep sheets to 6–16 frames; for long pieces call it per scene. With scene markers (tuift.cena), cenas: true (or a list such as ['S03', 'S04']) picks the middle and the settled frame of each scene and labels them by name.

Inputs: comp (required), cenas, count, range, +7 more.

ae_sound_cuesSound cues from animationA
Read-only

Read the comp's keyframes and list where sound effects belong — entrances (pop/whoosh), exits, scale pops, taps/clicks (layers named cursor/toque/tap), whooshes at the peak speed of fast moves, arrivals (light thud), typing — merged within 40 ms and ranked by weight. Use the list to pick SFX from the leveled library, then ae_place_sfx. House rule: one effect per element that enters or leaves, below the music/voice.

Inputs: comp (required), instance.

ae_version_infoVersion infoA
Read-only

AE version, build, capabilities (saveFrameToPng, app.effects, Socket). Call at session start to know what APIs are available.

Inputs: instance.

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 25 tools

    Disambiguation3/5

    Most tools map to distinct resources (project, comp, layer, render, audio, review), but several boundaries blur: ae_see and ae_render_frame both exist to visually verify frames, and ae_context overlaps with ae_project_info plus the ambient context returned by ae_do. The three review tools (ae_plano_check, ae_review_motion, ae_avaliar_render) are separable only after reading long descriptions, and ae_do/ae_catalog form a pair an agent must learn.

    Naming Consistency3/5

    The ae_ prefix is applied uniformly, which is a real plus, but conventions fracture inside it: English snake_case (ae_project_info, ae_render_status), bare short names (ae_do, ae_see), and Portuguese names with inconsistent ordering (ae_plano_check vs ae_avaliar_render, ae_capturar_movimento_web). An agent cannot guess a name from a verb_noun pattern.

    Tool Count3/5

    25 tools sits at the heavy end for a single-domain server; several are thin quality-of-life wrappers (ae_lessons, ae_checkpoint, ae_version_info, ae_context) whose behavior is already reachable through project.undo or the ae_do catalog. The scope is genuinely broad (build, render, review, audio, web capture), so it is defensible but crowding the limit.

    Completeness4/5

    The lifecycle is well covered: inspect project/comp/layer, mutate via the ae_do catalog with auto undo groups, checkpoint/revert, export/import JSON, background render plus status, and layered review (plan, motion rules, rendered video). Remaining gaps are minor — no dedicated undo/redo tool outside ae_do and no first-class comp/layer creation entries in the top-level surface, but both are reachable through the catalog.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers