After Effects MCP Server

After Effects MCP Server

Enables AI assistants to control Adobe After Effects through a WebSocket-based CEP panel, supporting composition, layer, animation, effects, and render operations.

Category
访问服务器

README

Brandkick

Brought to you by Brandkick - We grow brands like they're our own.


After Effects MCP Server

A Model Context Protocol server for Adobe After Effects. Enables AI assistants to control After Effects through a WebSocket-based CEP panel.

Requirements

  • Adobe After Effects 2021+ (versions 18.x - 26.x)
  • Node.js 18+
  • pnpm

Installation

git clone https://github.com/Brandkick/after-effects-mcp.git
cd after-effects-mcp
pnpm install
just setup

Configuration

Add to Claude Code config (~/.claude.json):

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

Usage

  1. Claude Code starts the MCP server automatically
  2. Open After Effects
  3. Open the panel: Window > Extensions > MCP Bridge

Setup: JPEG Output Template

For exportCompFrame to work, create a JPEG output template in After Effects:

  1. Create any composition
  2. File > Export > Add to Render Queue
  3. Click "Output Module" settings
  4. Set Format to "JPEG Sequence"
  5. Set Quality to 50-70% (faster previews, smaller files)
  6. Optionally resize: check "Resize" and set to 50% or a fixed size like 960x540
  7. Click the template dropdown (top of dialog)
  8. Select "Save As New Template..."
  9. Name it exactly: JPEG Sequence
  10. Click OK

This only needs to be done once per After Effects installation.

MCP Tools

Tool Description
run-script Execute any command (see Commands below)
getHelp List all available commands
createComposition Create a new composition
setLayerKeyframe Set a single keyframe
setLayerKeyframes Set multiple keyframes (batch)
setLayerExpression Apply expressions to properties
setEffectKeyframes Animate effect properties (batch)
importFootage Import files into project
addToRenderQueue Queue composition for render
exportCompFrame Export single frame as PNG for visual verification

Commands

All commands can be called via run-script. Use getHelp to see full documentation.

Project

  • getProjectInfo, newProject, saveProject, saveProjectAs, closeProject
  • createFolder, moveProjectItem, deleteProjectItem
  • importFootage, importPlaceholder, replaceFootage

Composition

  • listCompositions, getActiveComposition, createComposition
  • setCompSettings - Modify duration, work area, frame rate, motion blur

Layers

  • createTextLayer, createShapeLayer, createSolidLayer, addLayerToComp
  • getLayerInfo, setLayerProperties - Name, transform, timing
  • setLayerFlags - Visibility, solo, shy, locked, motion blur, 3D
  • deleteLayer, duplicateLayer, reorderLayer, precomposeLayer
  • setParentLayer, setTrackMatte
  • setTextProperties - Font, size, color, justification

Animation

  • setLayerKeyframe, setLayerKeyframes (batch)
  • setLayerExpression
  • getKeyframes, deleteKeyframe, deleteKeyframes (batch)
  • setKeyframeEasing, setKeyframesEasing (batch)
  • copyKeyframes

Effects

  • applyEffect, applyEffectTemplate
  • listEffects, listAvailableEffects, getEffectProperties
  • setEffectKeyframe, setEffectKeyframes (batch)

Time & Markers

  • setLayerTime - In/out point, start time, stretch
  • enableTimeRemapping, setTimeRemap
  • addMarker, getMarkers, removeMarker

Camera & 3D

  • createCamera, createLight
  • setCameraProperties, setLightProperties
  • set3DLayer, setMaterialOptions

Masks & Shapes

  • addMask, setMaskPath, setMaskProperties, deleteMask
  • addShapePath, setShapePathVertices, addShapeModifier

Render

  • addToRenderQueue, renderQueue, queueInAME
  • getRenderQueueStatus, clearRenderQueue
  • exportCompFrame - Visual verification

Utility

  • getSelection, setSelection
  • beginUndoGroup, endUndoGroup, getUndoGroupStatus
  • getPropertyInfo, listFonts

MCP Resources

Resource Description
aftereffects://compositions List all compositions
aftereffects://workflow-guide Visual verification workflow guide

Development

just setup   # Build and install CEP panel with debug mode
just build   # Build only
just start   # Start MCP server (for testing)
just clean   # Remove build directory

Architecture

Claude Code <--stdio--> MCP Server <--WebSocket:8765--> CEP Panel <--CSInterface--> ExtendScript

See ARCHITECTURE.md for design principles.

Project Structure

after-effects-mcp/
├── src/
│   ├── index.ts              # MCP server, tool definitions
│   ├── websocket-server.ts   # WebSocket server
│   ├── logger.ts             # Logging utility
│   ├── shared/
│   │   ├── commands.ts       # Command registry (single source of truth)
│   │   └── config.ts         # Configuration and timeouts
│   └── cep/                   # CEP extension
│       ├── CSXS/manifest.xml
│       ├── index.html
│       ├── js/main.js         # WebSocket client
│       └── jsx/modules/       # ExtendScript (modular)
│           ├── 00-polyfills.jsx
│           ├── 01-helpers.jsx
│           ├── 10-project.jsx
│           ├── 11-layer.jsx
│           ├── 12-keyframe.jsx
│           ├── 13-time.jsx
│           ├── 14-render.jsx
│           ├── 15-camera.jsx
│           ├── 16-mask.jsx
│           ├── 17-shape.jsx
│           ├── 18-selection.jsx
│           ├── 19-discovery.jsx
│           └── 99-dispatcher.jsx
├── scripts/
│   ├── install-cep.js
│   ├── build-jsx.ts          # Concatenates JSX modules
│   └── generate-cep-config.ts
├── tests/
├── justfile
└── package.json

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选