compositor-mcp
It is an MCP server that lets AI agents read, edit, render, and manage Compositor .comp project files.
Inspect project structure: canvas size, resolution, layers with depth, opacity, blend mode, transform, masks, and clipping info
List layers in a compact top-to-bottom, Layers-panel style view
Render a flattened preview PNG so the model can see the composition
Export the full-resolution flattened image as PNG or JPEG
Export a single layer's source pixels or its mask
Create new projects, optionally with a solid background layer
Add image layers from common formats (PNG, JPEG, HEIC, TIFF, WebP) with placement, opacity, blend mode, and folder assignment
Create and manage layer folders
Set layer properties: rename, visibility, opacity, blend mode, position, size, rotation, flips, sampling, mask enablement, active selection
Move layers within the stack or into folders
Remove layers or folders, including their image and mask files
Replace a layer's pixels with a new image file
Attach, invert, or clear a raster layer mask
Resize the canvas with anchor-based positioning, without resampling
Open or reload the project in the Compositor app
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@compositor-mcp Show me a preview of my poster.comp project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
compositor-mcp
An MCP server that lets Claude and other AI agents read and edit Compositor projects, the open-source Photoshop alternative for Mac.
It works on the documented .comp package format (a manifest.json plus one PNG per layer), so it
needs no changes to Compositor itself. Edit a project with an agent, then open it in Compositor.
Or the other way round: save in Compositor and let the agent inspect, retouch or render it.
What the agent can do
Tool | Purpose |
| Canvas size, resolution and every layer with folder depth, opacity, blend mode, transform, mask and clipping info |
| Compact top-to-bottom view like the Layers panel |
| Flattened PNG preview returned as an image so the model can see the composition |
| Full-resolution PNG or JPEG export |
| Copy a layer's source pixels or mask to a file |
| New document, optionally with a solid background layer |
| Import PNG, JPEG, HEIC, TIFF, WebP… as a layer, with fit/fill/stretch placement, opacity, blend mode and folder |
| Create a layer folder |
| Rename, show/hide, opacity, blend mode, position, size, rotation, flips, sampling, mask on/off |
| Reorder layers or move them between folders |
| Delete a layer or a whole folder |
| Swap a layer's pixels (round-trip through another tool or a generated image) |
| Attach a grayscale mask, invert it, or clear it |
| Change the document size with an anchor, without resampling |
| Open the project in the Compositor app |
The server also exposes a compositor://format resource describing the file format.
Related MCP server: Dsrupt After Effects MCP
Related
marcushorndt/compositor-mcp takes a different route: it drives
Compositor's own document model and renderer headlessly (Swift), so previews match the app exactly. This package is a
plain Node server that works on the documented file format, needs no build of the app, and runs wherever Node runs.
Pick whichever fits your setup; both open the same .comp files.
Install
Requires Node.js 20 or later. Compositor itself is only needed to look at the result.
Claude Code
claude mcp add compositor -- npx -y compositor-mcpClaude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"compositor": {
"command": "npx",
"args": ["-y", "compositor-mcp"]
}
}
}From source
git clone https://github.com/Josusanz/compositor-mcp
cd compositor-mcp
npm install
npm run build
claude mcp add compositor -- node /path/to/compositor-mcp/dist/src/index.jsExample session
Create a 1920×1080 project at
~/Desktop/poster.compwith a white background, addphoto.jpgscaled to fill, putlogo.pngin the bottom right corner at 80 % opacity with Multiply, then show me a preview and open it in Compositor.
The agent calls create_project, add_image_layer twice, set_layer, render_preview and
open_in_compositor. Compositor opens the document with the layers ready to keep editing.
How it maps to the Compositor format
Layer pixels are stored untouched as 8-bit sRGB PNGs; placement, scale, rotation and flips live in the layer transform, so edits stay non-destructive.
Masks are written as 8-bit grayscale PNGs without alpha, as Compositor requires.
Manifests are validated against the same rules as
ProjectStore.swiftbefore writing, written with sorted keys and replaced atomically.Fields this tool does not understand (adjustments, effects, text, shapes, guides, anything newer) are preserved on round trip.
Projects are saved as format version 9 (what Compositor 1.2.6 writes); a project declaring a newer version keeps its own number and its unknown fields on round trip. Older Compositor builds reject newer versions; update the app if a file will not open.
Limitations
The preview renderer covers order, folders, visibility, opacity, transforms, raster masks and the blend modes sharp supports. Clipping masks, adjustment layers and layer effects are not rendered yet; the tool reports what it skipped. Compositor's own export is the reference.
Compositor does not watch files for changes. After the agent edits a project that is already open, close and reopen the document (or call
open_in_compositor).There is no live connection to the running app: selection, undo history and the viewport are session-only in Compositor and out of reach here.
Development
npm install
npm test # builds and runs the node:test suite
npm run dev # runs the server from TypeScript with tsxLicense
MIT. Compositor is © Robbie Tilton, also MIT.
Available Tools
15 toolsadd_folderAdd folderB
Creates an empty layer folder (group).
Inputs: name (required), path (required), above, below, +1 more.
add_image_layerAdd image layerA
Imports an image file (PNG, JPEG, HEIC, TIFF, WebP…) as a new pixel layer. The pixels are stored as-is; the placement only sets the layer's transform.
Inputs: path (required), imagePath (required), name, size, +7 more.
create_projectCreate projectADestructive
Creates a new empty .comp project. Optionally adds a solid background layer. Overwrites the manifest of an existing package at that path.
Inputs: path (required), width (required), height (required), background, +1 more.
export_flattenedExport flattened imageAIdempotent
Renders the whole project at full resolution to a PNG or JPEG file.
Inputs: path (required), outputPath (required), quality.
export_layerExport a layer's pixelsAIdempotent
Copies a pixel layer's source PNG (untransformed, original resolution) or its mask to a file.
Inputs: path (required), layer (required), outputPath (required), what.
inspect_projectInspect projectARead-onlyIdempotent
Reads a Compositor .comp project and returns the canvas info plus every layer in stacking order (bottom to top), with folder depth, visibility, opacity, blend mode and transform.
Inputs: path (required).
list_layersList layersARead-onlyIdempotent
Compact list of layers (id, name, kind, visibility) from top to bottom as shown in Compositor's Layers panel.
Inputs: path (required).
move_layerMove layer in the stackAIdempotent
Reorders a layer (with its subtree if it is a folder): to the top or bottom of a folder or the root, or directly above/below another layer.
Inputs: path (required), layer (required), to, above, +2 more.
open_in_compositorOpen in CompositorARead-onlyIdempotent
Opens (or reloads) the project in the Compositor app on this Mac so the user can see the result. Compositor reads the package from disk on open.
Inputs: path (required).
remove_layerRemove layerADestructiveIdempotent
Deletes a layer (and, for a folder, everything inside it) together with its image and mask files.
Inputs: path (required), layer (required).
render_previewRender previewAIdempotent
Flattens the project and returns a PNG preview image so the model can see the composition. Optionally saves it to a file. Clipping masks, adjustment layers and layer effects are not rendered; the response lists what was skipped.
Inputs: path (required), maxSize, outputPath.
replace_layer_imageReplace layer pixelsADestructiveIdempotent
Swaps the source pixels of a pixel layer with another image file, keeping its transform, mask and properties. Use it to round-trip a layer through an external editor or a generated image.
Inputs: path (required), layer (required), imagePath (required), keepDisplaySize.
resize_canvasResize canvasAIdempotent
Changes the document size without resampling layers. Layers keep their pixels and are offset according to the anchor.
Inputs: path (required), width (required), height (required), anchor.
set_layerSet layer propertiesAIdempotent
Changes name, visibility, opacity, blend mode, mask enablement or transform (origin, size, rotation, flips) of a layer. Only the given fields change.
Inputs: path (required), layer (required), name, size, +10 more.
set_layer_maskSet or clear a layer maskADestructiveIdempotent
Attaches a raster mask from a grayscale image (white reveals, black hides) to a layer, or removes the existing mask. The mask is stretched over the layer's own rectangle.
Inputs: path (required), layer (required), invert, maskPath.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Each tool targets a distinct action and resource: layer image replacement, mask attachment, canvas resizing, project inspection, layer listing, preview rendering, export operations, project creation, layer/folder addition, property updates, reordering, and deletion. There is no ambiguity between tools; even set_layer and set_layer_mask are clearly separated, with set_layer handling generic properties and set_layer_mask specifically managing raster masks.
All 15 tools follow a consistent verb_noun pattern in snake_case (e.g., replace_layer_image, set_layer_mask, resize_canvas, create_project). The verb is always first, and nouns are descriptive. Even open_in_compositor follows the pattern with a prepositional modifier. No mixed conventions or vague verbs.
With 15 tools, the set is well-scoped for a compositing application. It covers project creation, layer management (add, remove, reorder, modify), rendering, export, and inspection. Each tool serves a clear purpose, and the count is within the ideal range for a domain-specific MCP server.
The tool surface covers the core lifecycle: project creation, layer addition/removal/modification, reordering, masking, image replacement, rendering, and export. Minor gaps exist, such as no explicit save operation (though create_project overwrites manifests) and lack of support for layer effects or duplicate/merge operations. However, agents can complete most workflows without dead ends.
Maintenance
Related MCP Connectors
Build and run visual creative-production workflows from your AI agent.
Generate and edit images, video, voice, lip-sync and 3D models from your AI agent.
Generate, extend and edit AI images and videos, then assemble clips on a timeline and render.
Create and manage cinematic AI video renders through the Future Video Studio Agent API.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to control Adobe After Effects to create videos programmatically, with commands for comps, layers, effects, and rendering.8 npm28MIT
- AlicenseAqualityCmaintenanceEnables AI agents to connect to Adobe After Effects locally, inspecting projects, comps, and layers, discovering and executing a catalog of operations, rendering frames, and saving projects, with on-demand skill-based guidance.121MIT
- AlicenseAqualityBmaintenanceLets AI agents drive a running Adobe After Effects (~270 undo-safe operations). Works with every UI language Adobe ships and sees the frame: draws Object Matte on what it sees (lassos, ⊕/⊖ points, a preview of gaps and people) and syncs AI-generated layers with the plate frame by frame. A large skills library, built for AI and generative features: Roto Brush, Object Matte, Content-Aware Fill.413232 npm4Apache 2.0
- AlicenseBqualityCmaintenanceEnables AI clients to create and edit Adobe After Effects compositions, add and animate layers, apply effects, and view sampled frames to verify the rendered result.11MIT