Skip to main content
Glama

spine-mcp — Spine 2D アニメーション MCP サーバー

切り分けられたキャラクターから本番用 Spine 2D アニメーションを作成します。.psd または PhotoshopToSpine エクスポートフォルダーから直接。 ampersante/spine2d-animation-mcp に触発されていますが、spine-pixi / pixi ゲームで動作する実際のランタイムリグ と、編集可能な .spine プロジェクト(ライセンス版 Spine 4.3 CLI 経由)を提供し、既製テンプレートではなく手作りのモーションを備えています。

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

オリジナルに勝る理由

ampersante MCP

spine-mcp (これ)

リグ

レイヤー名による自動

関節に配置されたボーン、頭/体の階層

モーション

定義済みテンプレート

手書きの idle/win/blink/pop、スカッシュ&ストレッチ、フェイススワップ

アトラス

Pillow

実際の Spine CLI パッカー

出力

JSON / PNG / GIF プレビュー

ゲームで動作するランタイムリグ + 編集可能な .spine

ヘッド状態

描画されたスタック

1つのスロットにまとめられ、win/blink で切り替え

Related MCP server: spine-mcp

ツール

  • spine_doctor — Spine CLI と Python 依存関係を確認

  • inspect_source — リギング前にパーツ / 検出されたヘッド状態ファミリーを一覧表示

  • rig_and_animate(source, out_dir, name?, kind?, anims?, make_editable?) — メインのツール

  • pack_atlas(images_dir, out_dir, name) — Spine-CLI アトラスパック

  • make_project(runtime_json, out_spine) — ランタイム JSON → 編集可能な .spine

  • export_project(project, out_dir, fmt) — .spine → ランタイム JSON+アトラス

  • project_info(project_or_json) — ボーン/スロット/アニメーション

  • preview(rig_dir, images_dir?, out_png?, maxpx?) — キーフレームモンタージュ PNG

  • batch(roster_dir, out_root, kind?, make_editable?) — すべてのエクスポートサブフォルダーをリギング

入力規約

  • ヘッド状態ファミリー: 代替フェイスに <base>_win / <base>_blink と名前を付けます(例: head, head_win, head_blink、または face, face_win, face_blink)。これらは自動的に1つのスロットにまとめられ、win / blink 内で切り替わります。

  • グロー層 は Layer 2 という名前で → 加算ブレンド + パルス。*fire* という名前のパーツ → フリッカー。*rot* という名前のパーツ → 回転アクセントボーン。

  • 各パーツのジョイントの下に小さなオーバーラップタブを残して、曲げても裂けないようにします。

インストール

簡単な方法は、使い方を知っている頭脳と一緒に:

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

または直接接続する — uv が必要です:

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

チェックアウトから、ハッキング用に:

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

あなたの Spine ライセンスはあなたのもの

このプロジェクトには Spine の一部は含まれておらず、Spine に対するライセンスを付与するものではありません。Spine は Esoteric Software の商用ソフトウェアであり、各ユーザーは自分のライセンスの下で自分のインストールを実行します。サーバーは /Applications/Spine.app/Contents/MacOS/Spine または SPINE_BIN が指す場所で Spine を探します。

ライセンスなしでも動作します。 リギングとアニメーションは Spine プロセスを起動しません — これらは Pillow と psd-tools を使った純粋な Python です。ライセンスにより3つのツールが追加されます:

Spine が必要

rig_and_animate — スケルトン、アニメーション、アトラス

いいえ

inspect_source, preview

いいえ

pack_atlas — Spine パッカー

はい

make_project / export_project — 編集可能な .spine

はい

project_info

はい

spine_doctor は見つけたものを報告します。ある人のライセンスが別の人に届くことはなく、他の人が異なるライセンスを持っているからといって何かが劣化することもありません。

想定される命名規則

_classify は、あるスタジオのアートに合わせて調整された単語リストからヘッドを決定します — head, face, golova, crown, tooth。kopf や cabeza という名前のレイヤーは代わりにボディに配置されます。アートをリネームするのではなく、これをオーバーライドしてください:

export SPINE_HEAD_WORDS="kopf,gesicht,krone"

ファイル

  • server.py — FastMCP サーバー(ツールサーフェス)

  • spine_rig.py — リグ + アニメーションビルダー(純粋、インポート可能、スタンドアロンで実行可能)

  • spine_cli.py — Spine 4.3 CLI ラッパー(パック / インポート / エクスポート / 情報)

  • spine_preview.py — キーフレームモンタージュレンダラー

ライセンス

MIT — LICENSE を参照。 mozg の Spine 2D Animation brain のために書かれ、使用されています。これはリグがどのように動くべきかを知っている半分です。

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
      -