Skip to main content
Glama

spine-mcp — MCP-Server für Spine-2D-Animationen

Erstelle produktionsreife Spine-2D-Animationen aus einer zerlegten Figur — direkt aus einer .psd-Datei oder einem PhotoshopToSpine-Exportordner. Inspiriert von ampersante/spine2d-animation-mcp, liefert es aber echte Runtime-Rigs, die in spine-pixi-/pixi-Spielen laufen, und editierbare .spine-Projekte (über die lizenzierte Spine-4.3-CLI), mit handgefertigten Bewegungen statt vorgefertigter Vorlagen.

cut parts (you, in Photoshop)            ──▶  rig_and_animate
  PSD  or  PhotoshopToSpine export             │
                                               ├─▶ <name>.json   runtime skeleton (Spine 4.2)
                                               ├─▶ <name>.atlas + .png   packed atlas
                                               └─▶ <name>.spine  EDITABLE project (open in your Spine)
                                          ──▶  preview (montage PNG)  /  wire into the game

Warum es das Original schlägt

ampersante MCP

spine-mcp (dieses)

Rig

automatisch anhand des Ebenennamens

Knochen an Gelenken platziert, Kopf-/Körper-Hierarchie

Bewegung

vorgefertigte Vorlagen

handgefertigte idle/win/blink/pop, Squash-Stretch, Gesichtstausch

Atlas

Pillow

echter Spine-CLI-Packer

Ausgabe

JSON-/PNG-/GIF-Vorschau

Runtime-Rig, der im Spiel läuft + editierbares .spine

Kopfzustände

gestapelt gezeichnet

auf einen Slot reduziert, in win/blink getauscht

Related MCP server: spine-mcp

Werkzeuge

  • spine_doctor — prüft Spine-CLI und Python-Abhängigkeiten

  • inspect_source — listet Teile / erkannte Kopfzustands-Familien vor dem Rigging auf

  • rig_and_animate(source, out_dir, name?, kind?, anims?, make_editable?) — das Hauptwerkzeug

  • pack_atlas(images_dir, out_dir, name) — Atlas-Pack per Spine-CLI

  • make_project(runtime_json, out_spine) — Runtime-JSON → editierbares .spine

  • export_project(project, out_dir, fmt) — .spine → Runtime-JSON + Atlas

  • project_info(project_or_json) — Knochen/Slots/Animationen

  • preview(rig_dir, images_dir?, out_png?, maxpx?) — Keyframe-Montage-PNG

  • batch(roster_dir, out_root, kind?, make_editable?) — erstellt für jeden Export-Unterordner ein Rig

Eingabekonventionen

  • Kopfzustands-Familie: Benenne die alternativen Gesichter <base>_win / <base>_blink (z. B. head, head_win, head_blink oder face, face_win, face_blink). Sie werden automatisch zu einem Slot zusammengeführt und in win / blink getauscht.

  • Glow-Ebene mit dem Namen Layer 2 → additive Überblendung + Pulsieren. Teile mit Namen *fire* → Flackern. Teile mit Namen *rot* → rotierender Akzentknochen.

  • Lass an jedem Teil unter seinem Gelenk eine kleine Überlappungslasche, damit Biegungen nicht einreißen.

Installation

Der einfache Weg, zusammen mit dem Brain, das weiß, wie man es einsetzt:

/plugin marketplace add egorfedorov/mozg-plugin
/plugin install mozg-spine@mozg

Oder du bindest es direkt ein — dafür wird uv benötigt:

claude mcp add spine -- uvx --from git+https://github.com/egorfedorov/spine-mcp spine-mcp

Aus einem Checkout, um daran herumzuhacken:

uv venv && uv pip install -e .
./.venv/bin/spine-mcp          # stdio MCP server

Deine Spine-Lizenz bleibt deine

Dieses Projekt enthält keinen Teil von Spine und gewährt keine Lizenz darauf. Spine ist kommerzielle Software von Esoteric Software, und alle betreiben ihre eigene Installation unter ihrer eigenen Lizenz. Der Server sucht danach unter /Applications/Spine.app/Contents/MacOS/Spine oder wohin SPINE_BIN zeigt.

Es funktioniert auch ohne eine. Rigging und Animieren starten nie einen Spine-Prozess — sie sind reines Python auf Basis von Pillow und psd-tools. Eine Lizenz fügt drei Werkzeuge hinzu:

braucht Spine

rig_and_animate — Skelett, Animationen, Atlas

nein

inspect_source, preview

nein

pack_atlas — der Spine-Packer

ja

make_project / export_project — editierbares .spine

ja

project_info

ja

spine_doctor berichtet, was es gefunden hat. Die Lizenz einer Person erreicht nie eine andere, und nichts verschlechtert sich, nur weil jemand anderes eine andere hat.

Vorausgesetzte Namenskonventionen

_classify entscheidet anhand einer Wortliste, die auf die Artworks eines Studios abgestimmt ist, was ein Kopf ist — head, face, golova, crown, tooth. Eine Ebene namens kopf oder cabeza landet stattdessen im Körper. Überschreibe es, statt deine Artworks umzubenennen:

export SPINE_HEAD_WORDS="kopf,gesicht,krone"

Dateien

  • server.py — FastMCP-Server (Werkzeugoberfläche)

  • spine_rig.py — Rig- und Animations-Builder (rein, importierbar, eigenständig lauffähig)

  • spine_cli.py — Spine-4.3-CLI-Wrapper (pack / import / export / info)

  • spine_preview.py — Keyframe-Montage-Renderer

Lizenz

MIT — siehe LICENSE. Geschrieben für und verwendet von mozg's Spine 2D Animation brain, der Hälfte, die weiß, wie sich die Rigs bewegen sollten.

Available Tools

9 tools
batchB

Rig every PhotoshopToSpine export subfolder under roster_dir into out_root//. Returns per-character summaries.

Inputs: out_root (required), roster_dir (required), kind, make_editable.

export_projectB

Export a .spine project to runtime files (fmt: json|binary, +pack for atlas).

Inputs: out_dir (required), project (required), fmt.

inspect_sourceA

List the parts and detected head-state families of a .psd or a PhotoshopToSpine export folder, WITHOUT building anything. Use this first to confirm what will be rigged.

Inputs: source (required).

make_projectB

Import a runtime skeleton json into an EDITABLE .spine project.

Inputs: out_spine (required), runtime_json (required).

pack_atlasB

Pack a folder of PNGs into .atlas + .png with the Spine packer.

Inputs: name (required), out_dir (required), images_dir (required).

previewB

Render a keyframe-montage PNG of a built rig (idle/win/blink/pop poses).

rig_dir folder holding .json (the out_dir from rig_and_animate) images_dir folder with the part PNGs (defaults to the source export images) out_png output path (defaults to <rig_dir>/_preview.png)

Inputs: rig_dir (required), maxpx, out_png, images_dir.

project_infoB

Print bones/slots/animations of a .spine project or skeleton .json.

Inputs: project_or_json (required). Returns: result

rig_and_animateA

Build a rigged + animated Spine skeleton from a cut-up character.

source path to a .psd OR a PhotoshopToSpine export folder out_dir where to write .json/.atlas/.png (e.g. a game's static/assets/spine//) name skeleton name (defaults to the source basename) kind "symbol" or "mascot" (reserved; both rig the same body+head now) anims subset of ["idle","win","blink","pop"] (default all applicable) make_editable also emit an editable .spine next to the source (Spine CLI)

Returns a summary incl. file paths and an editable-project path.

Inputs: source (required), out_dir (required), kind, name, +2 more.

spine_doctorA

Report whether the Spine CLI and Python deps are available.

Inputs: no named parameters.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 9 tools

    Disambiguation5/5

    Each tool targets a distinct action: packing, project creation, export, info, preview, batch, environment check, source inspection, and rigging. No two tools overlap in purpose.

    Naming Consistency3/5

    Tool names mix conventions: some verb_noun (pack_atlas, make_project), some nouns (project_info, spine_doctor), and single verbs (preview, batch). This inconsistency makes the set less predictable, though still readable.

    Tool Count5/5

    9 tools is well-scoped for a Spine workflow server, covering creation, conversion, inspection, preview, and batch operations without bloat.

    Completeness5/5

    The server covers the full lifecycle from source inspection and rigging to atlas packing, project conversion, info, preview, and batch processing. No obvious missing operations for the stated purpose.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Local MCP server for automating Spine projects via the official CLI, enabling AI tools to inspect, export, import, and add animations to .spine files.
      16
      25
      Apache 2.0
    • A
      license
      A
      quality
      D
      maintenance
      An MCP server that converts layered PSD characters into Spine 4.2 rigs with deterministic, parametric 2D/2.5D animations (idle, walk, run, jump, attack, hit) ready for the Spine editor and Unity.
      4
      5
      MIT
    • F
      license
      B
      quality
      C
      maintenance
      MCP server for reading, validating, and modifying Spine 4.1.24 JSON animation files, with tools for animation timeline editing, validation, preview, and agent integration.
      36
      -