Skip to main content
Glama

ae-mcp-server

Adobe After Effects を AI アシスタント(Claude Desktop / Claude Code など)から操作するための MCP サーバーです。 An MCP server that lets AI assistants control Adobe After Effects through ExtendScript.

仕組み

  1. MCP クライアントがツールを呼び出す

  2. サーバーが ExtendScript (JSX) を一時ファイルとして生成

  3. macOS は osascript(DoScript)、Windows は AfterFX.exe -r で起動中の After Effects に実行させる

  4. JSX が結果を JSON ファイルに書き出し、サーバーがそれを読んで MCP クライアントに返す

After Effects は同時に1つのスクリプトしか実行できないため、呼び出しは内部でキューに積まれます。

Related MCP server: After Effects MCP

必要なもの

  • After Effects(macOS / Windows)

  • Node.js 18 以上

  • After Effects の設定 環境設定 > スクリプトとエクスプレッション > 「スクリプトによるファイルの書き込みとネットワークへのアクセスを許可」 をオン (結果ファイルの書き出しに必要です)

インストール

git clone https://github.com/<your-name>/ae-mcp-server.git
cd ae-mcp-server
npm install
npm run build

MCP クライアントへの登録

Claude Code

claude mcp add after-effects -- node /absolute/path/to/ae-mcp-server/dist/index.js

Claude Desktop(claude_desktop_config.json)

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

環境変数

変数

説明

AE_APP_NAME

(macOS) 対象アプリ名。例: Adobe After Effects 2026。未指定なら /Applications から最新版を自動検出

AE_PATH

(Windows) AfterFX.exe のフルパス。未指定なら C:\Program Files\Adobe から自動検出

AE_TIMEOUT_MS

1回のスクリプト実行の待機上限(ミリ秒、既定 60000)

ツール一覧

ツール

内容

ae_get_project_info

AE バージョン、プロジェクトパス、アイテム一覧

ae_list_compositions

コンポジション一覧

ae_create_composition

コンポジション作成

ae_list_layers

レイヤー一覧

ae_add_text_layer

テキストレイヤー追加

ae_add_solid_layer

平面レイヤー追加

ae_add_shape_layer

矩形 / 楕円のシェイプレイヤー追加

ae_set_layer_transform

位置・スケール・回転・不透明度の設定(time 指定でキーフレーム)

ae_add_effect

エフェクト追加とプロパティ設定

ae_import_file

ファイルのインポート(コンポへの追加も可)

ae_render

レンダーキューに追加してレンダリング

ae_save_project

保存 / 名前を付けて保存

ae_run_jsx

任意の ExtendScript を実行(関数本体として評価され、return した値が返る)

ae_run_jsx の例:

// code
var comp = __findComp(args.comp);
return { name: comp.name, layers: comp.numLayers };
// args
{ "comp": "Main" }

ExtendScript は ES3 です(let / const / JSON / Array.prototype.forEach などは使えません)。 レイヤーの追加や変更は1つのアンドゥグループにまとめられるので、After Effects 側で一度 Undo すれば戻せます。

注意

  • ae_run_jsx は任意のコードを実行できます。信頼できる MCP クライアントからのみ使ってください。

  • スクリプト実行中に After Effects でダイアログが開いていると、タイムアウトします。

  • ae_render は完了までブロックします(既定の待機上限は1時間)。

ライセンス

MIT

Available Tools

13 tools
ae_add_effectAdd effectB

Add an effect to a layer by match name (e.g. 'ADBE Gaussian Blur 2') and optionally set its properties by name or index.

Inputs: layer (required), effectMatchName (required), comp, properties.

ae_add_shape_layerAdd shape layerC

Add a shape layer containing a filled rectangle or ellipse.

Inputs: comp, name, size, shape, +2 more.

ae_add_solid_layerAdd solid layerC

Add a solid layer to a composition. Defaults to the full composition size.

Inputs: comp, name, color, width, +1 more.

ae_add_text_layerAdd text layerC

Add a text layer to a composition.

Inputs: text (required), comp, font, name, +3 more.

ae_create_compositionCreate compositionB

Create a new composition and make it the active item in the viewer.

Inputs: name (required), width, height, duration, +2 more.

ae_get_project_infoGet project infoA

Return the current After Effects version, project file path, and a list of all project items.

Inputs: no named parameters.

ae_import_fileImport fileB

Import a footage/image/audio file into the project, optionally adding it to a composition as a layer.

Inputs: path (required), comp, addToComp.

ae_list_compositionsList compositionsA

List all compositions in the project with size, duration and frame rate.

Inputs: no named parameters.

ae_list_layersList layersC

List the layers of a composition.

Inputs: comp.

ae_renderRender compositionA

Add a composition to the render queue and optionally render it. Blocks until rendering finishes.

Inputs: outputPath (required), comp, render, timeoutMs, +2 more.

ae_run_jsxRun ExtendScriptA

Run arbitrary ExtendScript (ES3) inside After Effects. The code is the BODY of a function: use return to send a JSON-serializable value back, and read inputs from args. Helpers available: __findComp(ref), __findLayer(comp, ref), __layerInfo(layer). Example: return app.project.numItems;

Inputs: code (required), args, timeoutMs.

ae_save_projectSave projectA

Save the current project. Provide 'path' to Save As (.aep).

Inputs: path.

ae_set_layer_transformSet layer transformB

Set transform properties of a layer. If 'time' is given, keyframes are set at that time (seconds) instead of static values.

Inputs: layer (required), comp, time, scale, +4 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 13 tools

    Disambiguation4/5

    Most tools target distinct resources and actions (comps, layers, effects, render, import), and the three add_*_layer variants are differentiated by layer type. The main overlap is ae_run_jsx, a catch-all escape hatch that can technically duplicate any other tool's job, though it is clearly framed as a last resort.

    Naming Consistency5/5

    Every tool uses a consistent ae_ prefix followed by a snake_case verb_noun pattern (ae_get_project_info, ae_add_text_layer, ae_set_layer_transform). No mixing of conventions or verb styles.

    Tool Count5/5

    13 tools is well within the ideal range and each maps to a meaningful After Effects operation (project inspection, comp/layer creation, transforms, effects, import, render, save). No filler or redundant tools.

    Completeness4/5

    Core lifecycle is covered: inspect, create comps/layers, transform, add effects, import, render, and save. Gaps exist for destructive operations (delete/remove layer or composition) and per-layer property edits, but ae_run_jsx provides a general-purpose escape hatch that lets an agent work around them.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers