Skip to main content
Glama
README.md
<p align="center"><img src="icon.png" width="120" alt="AniCraft Bridge icon"></p>

<h1 align="center">AniCraft MCP Server</h1>

<p align="center">
  <b>English</b> · <a href="README.es.md">Español</a> · <a href="README.pt-BR.md">Português</a> · <a href="README.fr.md">Français</a> · <a href="README.de.md">Deutsch</a> · <a href="README.ru.md">Русский</a> · <a href="README.zh-CN.md">简体中文</a> · <a href="README.ja.md">日本語</a> · <a href="README.ko.md">한국어</a>
</p>

<p align="center">
  Let Claude make 2D animations with the <b>AniCraft</b> installed on your computer — <b>Windows, macOS and Linux</b>:<br>
  shapes and text with eased keyframe tweens, Animate .fla files, and GIF, MP4, WebM, animated PNG / WebP, HTML, Lottie and sprite sheets.
</p>

---

## Why

[AniCraft](https://github.com/storytold/anicraft) is an open-source, Animate-class 2D animation studio with a headless CLI (`anicraft-cli`), 400+ commands and an MCP mode. This [Model Context Protocol](https://modelcontextprotocol.io) server turns it into **file-in / file-out tools** for Claude, so you can ask things like:

> *"Make a 2-second bouncing logo animation as GIF and MP4."*
> *"Animate this title fading in and sliding up, as Lottie JSON for my website."*
> *"Export this .fla as a self-contained HTML page and a sprite sheet."*
> *"Show me frames 0, 12 and 24 of this animation."*

Sibling of [designcraft-mcp-server](https://github.com/jhonsu01/designcraft-mcp-server), [effectcraft-mcp-server](https://github.com/jhonsu01/effectcraft-mcp-server), [lightcraft-mcp-server](https://github.com/jhonsu01/lightcraft-mcp-server), [photocraft-mcp-server](https://github.com/jhonsu01/photocraft-mcp-server), [vectorcraft-mcp-server](https://github.com/jhonsu01/vectorcraft-mcp-server), [filmcraft-mcp-server](https://github.com/jhonsu01/filmcraft-mcp-server), [pdfcraft-mcp-server](https://github.com/jhonsu01/pdfcraft-mcp-server), [wordcraft-mcp-server](https://github.com/jhonsu01/wordcraft-mcp-server), [soundcraft-mcp-server](https://github.com/jhonsu01/soundcraft-mcp-server), [deckcraft-mcp-server](https://github.com/jhonsu01/deckcraft-mcp-server), [gridcraft-mcp-server](https://github.com/jhonsu01/gridcraft-mcp-server), [figcraft-mcp-server](https://github.com/jhonsu01/figcraft-mcp-server), [texturecraft-mcp-server](https://github.com/jhonsu01/texturecraft-mcp-server), [materialcraft-mcp-server](https://github.com/jhonsu01/materialcraft-mcp-server), [solidcraft-mcp-server](https://github.com/jhonsu01/solidcraft-mcp-server), [mailcraft-mcp-server](https://github.com/jhonsu01/mailcraft-mcp-server) and [audacity-mcp-server](https://github.com/jhonsu01/audacity-mcp-server).

## Platforms

| OS | AniCraft package to install | Where the server finds it (no setup needed) | Status |
| --- | --- | --- | --- |
| **Windows** 10/11 (x64, x86, arm64) | MSI or portable zip | `C:\Program Files\AniCraft`, `C:\Program Files\ArtCraft\AniCraft`, `%LOCALAPPDATA%\Programs\AniCraft`, `PATH` | ✅ Verified (Windows 11) |
| **Linux** (x86_64, aarch64, riscv64) | `.deb`, `.rpm` or `.tar.gz` | `/usr/bin`, `/usr/local/bin`, `/opt/anicraft/bin`, `~/.local/bin`, `PATH` | ✅ Verified (Debian 12, headless) |
| **macOS** 11+ (Apple silicon and Intel) | `.dmg` (the app) **plus** `anicraft-cli-<version>-macos-universal.zip` | `/Applications/AniCraft.app`, `/usr/local/bin`, `/opt/homebrew/bin`, `~/.local/bin`, `~/bin`, `PATH` | 🟡 Supported, not yet tested on a Mac |

All downloads: [AniCraft releases](https://github.com/storytold/anicraft/releases) (there is also a FreeBSD tar.gz; set `ANICRAFT_DIR` to it). Anywhere else: set `ANICRAFT_DIR` (folder, `.tar.gz` root or `AniCraft.app`) or `ANICRAFT_CLI`.

- **macOS:** the DMG contains only the app. Unzip the separate `anicraft-cli` zip and move `anicraft-cli` to `/usr/local/bin` (or point `ANICRAFT_CLI` at it). The first run checks Apple's notarization online.
- **Linux:** the AppImage and Flatpak contain only the app, not `anicraft-cli`; use the deb, rpm or tar.gz. For an AppImage app, set `ANICRAFT_APP` so `open_in_anicraft` can start it. On a server without a GPU, the verified setup used `libxkbcommon0 libvulkan1 libegl1 mesa-vulkan-drivers libasound2 fontconfig`. AniCraft makes MP4 and WebM with ffmpeg: on Linux install it (`apt install ffmpeg`) or point `ANICRAFT_FFMPEG` at it.

## How it works

| Part | What it is |
| --- | --- |
| **AniCraft engine** (`anicraft-cli mcp`) | AniCraft's own engine: stage, layers, symbols, classic tweens with eases, and the GIF / video / HTML / Lottie / sprite-sheet exporters. Started fresh for each job, confined to a private temporary folder, and never touches the AniCraft app. |
| **MCP server** (Node.js) | 9 high-level tools. Builds an animation from layers of shapes and keyframes (each moving layer becomes one symbol with its tweens), checks every output first and returns a picture of a frame. |

## Tools

| Tool | What it does |
| --- | --- |
| `create_animation` | A stage (size, frame rate, colour) and layers of rectangles, ellipses, stars, polygons, lines, SVG paths and text, each with keyframes that move, scale, rotate and fade it with eased tweens; saved as .anicraft and GIF / MP4 / WebM / APNG / WebP / HTML / Lottie / frames / sprite sheets |
| `edit_animation` | An .anicraft or Animate .fla / .xfl changed: stage, layers added, deleted, renamed, hidden or shown, or any commands; saved as a copy |
| `export_animation` | One file, a list or a folder → GIF, MP4, WebM, animated PNG / WebP, HTML, Lottie, a frame as PNG / SVG, PNG / SVG sequences, sprite sheets or .anicraft |
| `render_frames` | Pictures of up to 6 frames, optionally saved as PNG |
| `get_animation_info` | Stage, frame rate, length, scenes, layers with their keyframes and tweens, library |
| `list_anicraft_catalog` | Engine commands, shapes, eases, templates and formats |
| `run_anicraft_commands` | Any engine command plus `anicraft_document`, `anicraft_render` in one session (`$steps[N].field` references), then save |
| `open_in_anicraft` | Open animations in the AniCraft app |
| `get_anicraft_status` | Platform, installation, version and commands |

| | |
| --- | --- |
| **Reads** | .anicraft, Animate .fla / .xfl |
| **Writes** | .anicraft, GIF, MP4, WebM, APNG, WebP, HTML, Lottie JSON, PNG, SVG, PNG / SVG sequences, sprite sheets (PNG + JSON) |

Positions are stage pixels from the top-left, y down; frames are 0-based; layers are listed from the bottom up.

## Example

```json
{
  "name": "Car",
  "width": 640, "height": 360, "fps": 24, "background": "#E3F2FD", "frames": 48,
  "layers": [
    { "name": "Ground", "shapes": [{ "kind": "rect", "x": 0, "y": 290, "w": 640, "h": 70, "fill": "#2E7D32" }] },
    { "name": "Sun", "shapes": [{ "kind": "ellipse", "x": 520, "y": 30, "w": 70, "h": 70, "fill": "#FBC02D" }],
      "keys": [{ "frame": 0, "alpha": 0 }, { "frame": 24, "alpha": 1, "ease": "QuadOut" }] },
    { "name": "Car",
      "shapes": [{ "kind": "rect", "x": 20, "y": 230, "w": 120, "h": 40, "radius": 8, "fill": "#1565C0" },
                 { "kind": "ellipse", "x": 35, "y": 260, "w": 30, "h": 30, "fill": "#212121" },
                 { "kind": "ellipse", "x": 95, "y": 260, "w": 30, "h": 30, "fill": "#212121" }],
      "keys": [{ "frame": 0 }, { "frame": 24, "x": 260, "ease": "QuadOut" }, { "frame": 47, "x": 460, "scale": 1.2 }] },
    { "name": "Title", "shapes": [{ "kind": "text", "text": "Let's go!", "x": 220, "y": 120, "size": 36, "bold": true, "color": "#0D47A1" }] }
  ],
  "formats": ["anicraft", "gif", "mp4", "lottie"],
  "output_dir": "C:\\Animations"
}
```

## Requirements

- **AniCraft** with `anicraft-cli` (tested with **0.3.0**); see [Platforms](#platforms)
- Node.js ≥ 20 (bundled with Claude Desktop for `.mcpb` installs)

## Installation

### Claude Desktop (recommended, all platforms)

1. Download `anicraft-mcp-server.mcpb` from the [latest release](https://github.com/jhonsu01/anicraft-mcp-server/releases/latest).
2. Double-click it (or drag it into Claude Desktop → *Settings → Extensions*) and click **Install**.
3. Optional: if AniCraft is not in a standard location, fill in its folder or the `anicraft-cli` path in the extension settings.

### Claude Code and Cowork (plugin)

Add the marketplace `jhonsu01/sunsam-plugins` (in Claude Code: `/plugin marketplace add jhonsu01/sunsam-plugins`; in the Claude app: *Plugins → Add → Add marketplace*) and install **anicraft-bridge**.

### Sunsam Code

Install **AniCraft Bridge** from the [Sunsam Code marketplace](https://github.com/jhonsu01/marketplace-SunsamCode), or drop the `.mcpb` into *MCP → Install extension*.

### Codex (OpenAI)

**Recommended — the marketplace (gets updates):** *Plugins → Add → Add marketplace*, source `jhonsu01/craft-marketplace`, reference `main`, then install **AniCraft Bridge** from **Craft Bridges** ([craft-marketplace](https://github.com/jhonsu01/craft-marketplace)). New versions arrive by refreshing the marketplace. Or upload the zip (Codex then keeps it in your account and refuses a newer zip with the same name):

1. Download `anicraft-mcp-server-<version>-codex.zip` from the [latest release](https://github.com/jhonsu01/anicraft-mcp-server/releases/latest).
2. In Codex: *Plugins → Add → New plugin*, choose the zip and click **Add plugin**.
3. Codex starts the server with `node`, so Node.js ≥ 20 must be on `PATH`. If AniCraft is not in a standard location, set `ANICRAFT_DIR` or `ANICRAFT_CLI` as system environment variables (Codex has no settings form for local plugins).

### DeepSeek Harness

1. *Plugins → Add plugin*, enter `github:jhonsu01/craft-marketplace#path:/plugins/anicraft-mcp-server` and click **Install**, then **Enable now**.
2. Harness runs the server with its own MCP client and `node` (Node.js ≥ 20 on `PATH`); the tools appear as `mcp__anicraft__<tool>` and the output files as cards that open in Harness.
3. Harness does not update plugins by itself yet: to upgrade, uninstall the plugin and install it again with the same address.

### Claude Code / other MCP clients

```bash
git clone https://github.com/jhonsu01/anicraft-mcp-server.git
cd anicraft-mcp-server
npm install
npm run build
```

Windows:

```bash
claude mcp add anicraft -- node "%CD%\dist\bundle.cjs"
```

macOS / Linux:

```bash
claude mcp add anicraft -- node "$PWD/dist/bundle.cjs"
```

## Configuration

| Variable | Meaning |
| --- | --- |
| `ANICRAFT_DIR` | AniCraft folder, one of its executables, a `.tar.gz` root (with `bin/`) or `AniCraft.app`. Default: auto-detect |
| `ANICRAFT_CLI` | Path of `anicraft-cli` / `anicraft-cli.exe` (wins over `ANICRAFT_DIR`) |
| `ANICRAFT_APP` | Path of the desktop app when it lives elsewhere (e.g. a Linux AppImage) |
| `ANICRAFT_MCP_TIMEOUT` | Maximum seconds per engine call (default 3600) |

## Safety

- Files are **never overwritten** unless `overwrite: true`: a free name (`_2`) is used in folders and an existing `output_path` is an error. Inputs are only read; an edited file is saved only as a new copy (`_edited`).
- All paths must be absolute. The engine runs headless, confined to a private temporary folder for each job (the inputs are copied in, the outputs moved out), and never touches the AniCraft app.
- Everything runs locally with no network access. Each job uses a private engine in a temporary folder that is deleted at the end.

## Development

```bash
npm run build       # TypeScript + single-file bundle (dist/bundle.cjs)
npm test            # unit tests (Windows, macOS and Linux path logic)
npm run test:e2e    # 22 end-to-end checks over real MCP stdio (synthetic animations)
npm run pack:mcpb   # anicraft-mcp-server.mcpb
npm run pack:codex  # Codex / DeepSeek Harness plugin zip
```

Linux test in Docker (unpack `anicraft-<version>-linux-x86_64.tar.gz` first):

```bash
docker run --rm -v "$PWD:/work:ro" -v "/path/to/anicraft-0.3.0-linux-x86_64:/opt/anicraft:ro" -e ANICRAFT_DIR=/opt/anicraft -w /work node:22-bookworm bash -c "apt-get update && apt-get install -y libxkbcommon0 libvulkan1 libegl1 mesa-vulkan-drivers libasound2 fontconfig ffmpeg && node scripts/e2e.mjs"
```

## License

Apache-2.0. AniCraft is © its authors (Storytold), MIT or Apache-2.0.
This project is not affiliated with or endorsed by AniCraft or Storytold. Adobe Animate is a trademark of Adobe.

TDQS

A3.6/5.0

Scored across 9 tools

Disambiguation3/5

Most tools map cleanly to a distinct action (create, edit, export, inspect, status, catalog, open), but edit_animation explicitly says it can 'run engine commands', which overlaps heavily with run_anicraft_commands. There is also soft overlap between export_animation (frame as PNG/SVG, sequences) and render_frames, and between create_animation's built-in saving and export_animation's conversion role. Detailed descriptions mitigate this, but boundaries are not airtight.

Naming Consistency4/5

All names are snake_case verb_noun (create_animation, edit_animation, export_animation, render_frames, get_animation_info, open_in_anicraft), which is predictable. The only inconsistency is whether the 'anicraft' qualifier is embedded (get_anicraft_status, list_anicraft_catalog, run_anicraft_commands) versus omitted (get_animation_info, render_frames), a minor deviation.

Tool Count5/5

Nine tools is a well-scoped surface for an animation studio: authoring, editing, exporting, inspection, environment diagnostics, capability discovery, an advanced escape hatch, and hand-off to the desktop app. No filler tools, and nothing obviously missing from the count.

Completeness4/5

Lifecycle coverage is strong: create, edit, export, read info, render previews, discover commands, run raw commands, and open in the app. The main gaps are file-level operations such as listing or deleting existing animations, and there is no guided way to inspect/validate a document before editing beyond get_animation_info.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues