AE MCP Bridge 标志

AE MCP Bridge

社区
solomondivyananth

An MCP server that lets AI read, view and edit a live Adobe After Effects project — inspect comps, render frames, write keyframes and expressions, and build projects end to end. Works with Claude Code or any MCP client.

发布者solomondivyananth
代码仓库aftereffects-mcp
语言JavaScript
复刻数
8
星标数
72
可用工具
0
传输类型stdio
分类
许可协议MIT
链接
  • 将工具接入 AI 工作流

    AE MCP Bridge 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 72 个星标和 8 个复刻。

AE MCP Bridge: an After Effects MCP server for AI agents

Let an AI actually work in After Effects — read the project, look at rendered frames, and change keyframes, expressions and effects while the app is open.

Not a code generator that hands you a .jsx to run. A live connection to the running application: the model inspects your real comp, renders a real frame, makes a real edit, then re-renders to check its own work.

MCP client ──stdio──► mcp/ae-mcp.js ──HTTP :7788──► CEP panel in AE ──evalScript──► AE DOM

Works with Claude Code or any client that speaks the Model Context Protocol. Nothing in the bridge is client-specific.

MIT licensed · macOS and Windows · After Effects 2022+ · zero npm dependencies

Not affiliated with or endorsed by Adobe or Anthropic.


What this makes possible

Read a project you didn't build. Ask what's animating in a 40-layer comp and get an answer grounded in the actual property tree — keyframe times, ease influences, expression source, effect parameters — rather than a guess from layer names.

Let the model see. saveFrameToPng renders come back as images. The model looks at the frame instead of reasoning blind about coordinates. Ask "is the logo colliding with the lower third at 4 seconds?" and it can check.

Edit with a real undo story. Every call runs inside one beginUndoGroup/endUndoGroup. Anything the model does is a single ⌘Z (Ctrl+Z on Windows). There is no half-applied state to clean up.

Judge motion, not just numbers. ae_review_motion samples a time range, stitches an MP4, and returns a contact sheet — so timing and easing can be evaluated as motion rather than as keyframe values that merely look correct.

Build, not just tweak. Create projects and comps, import footage, add and animate layers, precompose, duplicate a master into 9×16 / 1×1 / 16×9, and queue a background aerender job that doesn't freeze the app.

Things it is genuinely good at

  • Auditing a comp: what animates, where, driven by what
  • Motion graphics automation — applying one consistent change across many layers, many comps, or a whole campaign of format variants
  • Format variants from a finished master
  • Expression authoring, with After Effects validating the syntax on write
  • Catching continuity mistakes by looking at frames, not just properties

Things it is not good at

  • Taste. It can match an existing ease curve; it cannot tell you the ad is boring.
  • Anything unscriptable — Roto Brush, Content-Aware Fill, mocha tracking, puppet pins. The ExtendScript DOM barely reaches these.
  • Real-time playback. It sees sampled frames, never a live preview.

Install

Requires After Effects 2022 (22.0)+ and Node.js 18+, on macOS or Windows. ffmpeg is optional but recommended: it powers motion review and contact sheets, and on Windows it also scales preview images (macOS uses the built-in sips).

From npm:

bash
npx aftereffects-mcp-install       # installs the After Effects panel
claude mcp add after-effects -- npx -y aftereffects-mcp

From source (do this if you want to hack on it):

bash
git clone https://github.com/solomondivyananth/aftereffects-mcp.git
cd aftereffects-mcp
./install.sh              # macOS: link the panel, enable unsigned extensions
install.cmd               # Windows: the same (a directory junction, no admin needed)

Then relaunch After Effects (PlayerDebugMode is read at launch) and open Window ▸ Extensions ▸ AE MCP Bridge. A green dot and Listening on 127.0.0.1:7788 means it's ready.

Command
./install.sh · install.cmdlinked install: edits in the repo are live
./install.sh --copy · install.cmd --copyreal copy, for when AE won't follow the link (re-run after edits)
./install.sh --globalmacOS: also register the MCP server for every directory
node bin/install-panel.js --uninstallremove the panel (either platform)

Where it goes: ~/Library/Application Support/Adobe/CEP/extensions on macOS, %APPDATA%\Adobe\CEP\extensions on Windows. Unsigned panels are enabled with PlayerDebugMode (macOS defaults, Windows HKCU\Software\Adobe\CSXS.*).

The included .mcp.json registers the server for this project directory, so Claude Code picks the tools up automatically when run from the repo.

Optional: notes to tweaks with Jev

Give ae_review_motion a note in plain words ("the logo feels floaty and lands late") and it adds a tweak plan to the preview. Code reads every keyframe and describes each move in words. Jev, TypeSafe's System One model, judges which layer the note means, which tweaks it asks for (faster, firmer landing, less bounce, tighter stagger, earlier, longer hold, motion blur…) and how much. Code then turns confident answers into exact keyframe edits, returned as one ae_batch. When Jev is unsure, the plan asks which layer or which tweak instead of guessing. Nothing is applied until the agent runs the batch, and it is one undo step.

It needs a TypeSafe API key in the server's environment. Never put the key in .mcp.json, which is committed:

bash
export TYPESAFE_API_KEY=…            # then start Claude Code from this shell
claude mcp add after-effects -e TYPESAFE_API_KEY=… -- npx -y aftereffects-mcp

Without a key, the note still comes back with every move described in words, for the agent to judge itself. TYPESAFE_MODEL pins a version (default jev-latest).


Safety

This bridge executes arbitrary ExtendScript inside After Effects. That is powerful and worth being deliberate about, so two independent protections ship switched on.

The sandbox guard

Reads and renders work on whatever project is open. Writes are refused unless the open project is the one you designated as the sandbox. Only a human can change that, from the panel UI — there is deliberately no tool that unlocks it, so a model working through these tools cannot talk its way past the guard.

(It is not a sandbox against an agent that already controls your desktop — one with shell or Accessibility access can untick the box just as you would. See SECURITY.md.)

Project-level operations (ae_new_project, ae_open_project) are refused outright while the guard is on: they close the current project, and a path comparison cannot make that safe. They also refuse to run unless you say explicitly what happens to unsaved work — no silent data loss, and never a modal dialog that would deadlock the bridge.

Raw scripting switch

ae_run_jsx and ae_menu_command can do anything the app can, including things the guard cannot see coming (a script can open another project). The panel's Allow raw ExtendScript and menu commands switch turns both off; the dedicated tools still work. With the guard on, the panel also checks whether a raw call changed the open project and flags it loudly if it did.

Network protection

The server binds loopback only and requires a 256-bit token, generated on first run into ~/.ae-mcp-bridge.json (mode 0600). It also refuses any request carrying an Origin or Referer header, and requires Content-Type: application/json.

Those three checks close three different routes to the same hole. Without them, any web page you happened to be visiting could drive After Effects — a cross-origin POST with Content-Type: text/plain is a CORS "simple request", so the browser sends it with no preflight. The attacker can't read the response, but by then the code has already run. See SECURITY.md.

The server makes one kind of outbound call, and only when you opt in: with TYPESAFE_API_KEY set, ae_review_motion with a note sends that note, plus the animated layers' names and a description of their moves in words, to api.typesafe.ai. No frames, footage or project file leave the machine.


Tools

50 tools, named and shaped after After Effects itself.

Read — ae_project_info · ae_comp_tree · ae_layer_detail · ae_find_animation · ae_selection · ae_list_items · ae_catalog (effects, presets, fonts, render templates)

See & show — ae_render_frame · ae_review_motion · ae_goto

Proof-read — ae_proof (41 checks: overlaps, clipped edges, jitter, pops, off-grid keys, unreadable text, missing motion blur, switches left on, and staging: no focal point, no scale contrast, an unused frame)

Animate — ae_set_property · ae_add_keyframes · ae_edit_keyframes · ae_set_expression · ae_clear_expression · ae_apply_effect · ae_apply_preset · ae_text · ae_markers · ae_masks · ae_shape · ae_add_property · ae_remove_property · ae_property_meta

Layers — ae_create_layer · ae_delete_layer · ae_set_layer_props · ae_layer_action (duplicate, split, sequence, freeze frame, align, fit, centre anchor, copy to comp)

Project — ae_create_comp · ae_set_comp_settings · ae_duplicate_comp · ae_precompose · ae_import_file · ae_item_action · ae_essential_graphics · ae_delete_item · ae_new_project · ae_open_project · ae_save_project

Render — ae_render_video · ae_render_status · ae_render_cancel · ae_render_queue (Render Queue panel and Media Encoder)

Templates — ae_template · ae_welcome

Control — ae_undo · ae_batch · ae_menu_command · ae_run_jsx

AI-native templates

Finished, animated designs an agent fills from a brief: a lower third, a kinetic stomp title, a soft word reveal, an app/UI card in 3D, an animated bar chart, a logo sting, and the bridge's own welcome. Each is a JSON recipe in templates/ with typed slots (text with length limits, colours, lists, options). ae_template builds one in 16:9, 9:16, 1:1 or 4:5 as a single undo step, rolls back on any failure, and returns a contact sheet. Builds come with a Controls layer and Essential Graphics controls for people to edit. ae_welcome builds the welcome, the quickest way to prove a new install works. npm test validates every template in every format.

Skills

Twenty-two skills ship in skills/. Every MCP client gets them as prompts of the same name, so they work in Claude Desktop, Codex, Cursor and the rest with no setup. Claude Code reads skills from a .claude/skills folder instead — run npm run skills in a clone to link them into this repo, or npm run skills -- --user to load them in every project on the machine.

SkillWhat it teaches
ae-mcp-bridgethe tools: read → edit → look → proof, addressing, guard refusals
ae-motion-principlestiming in frames, easing that reads, overshoot, stagger, stomp type
ae-expressionsa cookbook of expressions, each one verified to compile in After Effects
ae-effectsglows, noise, particles, glitch, and every kind of blur and motion blur
ae-transitionswhips, punches, shape, mask, luma and effect wipes
ae-morphshape, mask, letter and gooey morphs that don't twist
ae-camera-3dcamera rigs, depth of field, lights, shadows, renderers, 3D models
ae-typographytext animators and selectors: word reveals, waves, scatter, typing, text on a ring
ae-ui-motionapp and product-launch motion: layered UI in 3D, streaming answers, devices, logo moments
ae-colorLumetri grading, looks and LUTs without dialogs, brand tints, matching shots
ae-audio-syncbeat finder (tempo, hits, grid) to comp markers, cutting and pulsing to music
ae-templatesControls nulls, Essential Graphics controls, .mogrt export, robust templates
ae-data-drivenCSV/JSON as footage in expressions, charts, one version per row
ae-ai-templatesfill the built-in templates from a brief, and write new ones
ae-compositionstaging a frame: one dominant element, scale hierarchy, using the whole frame, varying beats
ae-motion-proofscreen a comp for overlaps, jitter, pops, unreadable text and under-staged beats
ae-vfx-cleanupremoving wires, rigs, objects and signs from footage, checking keys, seating a subject in a plate, frozen-frame QA
ae-character-rigcut-out characters: joints, IK arms and legs, blinks, gaze, head turns, mouth poses, walk cycles
ae-localizationlanguage versions: word inventory, translation sheets, fonts for every script, refitting type
ae-deliverpre-flight, format variants with safe areas, renders, verifying the file
ae-reference-breakdownturn a reference film into a beat map and rebuildable techniques
video-reference-compareframe-by-frame comparison of a render against a reference

Effect, parameter and menu names in the skills were checked against a live After Effects.

It speaks After Effects:

  • Time as seconds (2.5), frames ("75f") or timecode ("0:00:02:15").
  • Easing by name: "easy" is F9 Easy Ease, plus "easy_in"/"easy_out".
  • Colours as "#ff8800" or 0–1 / 0–255 arrays.
  • Many layers in one call — "selected", "all", a list, or a name regex — as one undo step. ae_batch makes any sequence of calls one atomic step.
  • Every write is one Edit ▸ Undo step, labelled "MCP: Set Position" and so on, and writes that change a value return it before and after.
  • Edits show up like hand edits: the comp opens, the layers are selected, the playhead moves to the change. Switch it off in the panel.

Property paths are arrays: ["Transform","Position"], ["Effects","Gaussian Blur","Blurriness"]. Names or matchNames both work, and a wrong segment returns the list of valid children instead of a bare failure — so the model corrects itself rather than guessing.

The server also exposes the usage guide as the MCP prompt after-effects, and the open project and current selection as resources (ae://project, ae://selection).


Design notes

Four things in the After Effects DOM will bite anyone building on it. They cost real debugging time here, so they're written down.

elided does not mean "ignore". PropertyBase.elided marks a group that isn't drawn as its own row in the timeline — Animators, Selectors, Properties on a text layer are all elided. Their children are real, and are frequently where the animation lives. Skipping them made a typewriter-animated text layer report as "not animated", which produced a confidently wrong edit. Flatten elided groups; never skip them.

Transform is not where animation lives. A layer can be fully animated with an empty Transform group — text animators, shape trim paths, mask paths and effect parameters all animate independently. ae_comp_tree returns animatedProperties from a full-tree scan for exactly this reason.

saveFrameToPng is asynchronous. It returns roughly 450 ms before the PNG is on disk, and the file appears at size 0 first. Both sides of the bridge poll each frame until it exists and has stopped growing.

Folder.temp is a per-app sandbox. Anything After Effects writes there is unreadable from outside the AE process. Frames go to ~/.ae-mcp-bridge/frames/.

And one that isn't about the DOM: stills lie about motion. A frame sampled mid-reveal is indistinguishable from a hard cut. That mistake is the reason ae_review_motion exists.


Layout

panel/           CEP extension loaded by After Effects
  CSXS/manifest.xml
  index.html     status, sandbox controls, live call log
  js/main.js     HTTP server, auth, guard enforcement, aerender jobs
  jsx/bridge.jsx everything touching the AE DOM (ExtendScript, ES3)
mcp/ae-mcp.js    MCP server — zero dependencies, stdio JSON-RPC
scripts/          check.js (npm test), live tests (npm run test:live), record-welcome.js
docs/            the website (GitHub Pages) and the welcome animation
templates/       AI-native templates (JSON recipes built by ae_template)
bin/install-panel.js  panel installer for macOS and Windows
install.sh · install.cmd  wrappers for a linked install from source
skills/          ae-mcp-bridge skill — teaches a model how to use the tools

bridge.jsx is ES3 — no let, const, arrow functions or native JSON (there's a polyfill at the top). Responses over 100 KB spill to a temp file, because evalScript's return channel can't carry them.


FAQ

What is this actually for? Automating the repetitive half of motion graphics work — audits, bulk edits, format variants, expression authoring — while you keep the creative decisions. It is a scripting layer you talk to, not a replacement for a motion designer.

Does this need an API key? No. The bridge holds no credentials. Your MCP client brings its own model.

Does it work with clients other than Claude Code? Yes — it's a standard MCP stdio server. Nothing in it is Claude-specific.

Will it edit my project without asking? Not unless you point the sandbox at that project, or switch the guard off. Reads and renders always work; writes are gated.

Can it render video? Yes, via aerender as a background job that doesn't block the app. It saves the project first, because aerender reads the .aep from disk.

Does it work on Windows? Yes. The installer, image scaling, aerender discovery and paths all handle Windows, and CI runs the checks on Windows and macOS. The live After Effects test suite has so far been run on macOS; reports from Windows users are welcome.

Why CEP and not UXP? After Effects 2026 ships UXP, but it hosts only Adobe's own plugins — there's no public AE DOM API through it yet. CEP with ExtendScript is the only route to the full object model today.

Is the panel signed? No. The installer enables PlayerDebugMode, which is how unsigned extensions load during development. Distributing to non-developers would need ZXP signing.


Status

v0.1 — working, and honest about its edges. The read, view and edit loop is proven against real production projects. The authoring and render tools are built and wired but have had less mileage. No tests or CI yet.

Contributions welcome, particularly Windows test reports and ZXP packaging.

License

MIT

安装

TypingMind
{
  "mcpServers": {
    "aftereffects-mcp": {
      "command": "npx",
      "args": [
        "aftereffects-mcp"
      ]
    }
  }
}

将 AE MCP Bridge MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 AE MCP Bridge 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请勿关闭终端窗口或停止其中的连接器进程。
3

将 AE MCP Bridge 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 AE MCP Bridge MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "aftereffects-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "aftereffects-mcp"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 AE MCP Bridge MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 AE MCP Bridge MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 AE MCP Bridge 帮我完成这项任务吗?
AE MCP Bridge
当然,我看过了。
以下是我使用 AE MCP Bridge 得到的结果。

常见问题

AE MCP Bridge MCP 服务器有什么用途?

AE MCP Bridge 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 AE MCP Bridge MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 AE MCP Bridge。

为什么在 TypingMind 中使用 AE MCP Bridge MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 AE MCP Bridge 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 AE MCP Bridge MCP 连接到 TypingMind?

AE MCP Bridge 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

AE MCP Bridge MCP 在 TypingMind 中提供哪些工具?

AE MCP Bridge 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 AE MCP Bridge MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 AE MCP Bridge 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇