spine-mcp
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 プレビュー | ゲームで動作するランタイムリグ + 編集可能な |
ヘッド状態 | 描画されたスタック | 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 → 編集可能な.spineexport_project(project, out_dir, fmt)—.spine→ ランタイム JSON+アトラスproject_info(project_or_json)— ボーン/スロット/アニメーションpreview(rig_dir, images_dir?, out_png?, maxpx?)— キーフレームモンタージュ PNGbatch(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 が必要 | |
| いいえ |
| いいえ |
| はい |
| はい |
| はい |
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 toolsbatchB
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
Scored across 9 tools
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.
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.
9 tools is well-scoped for a Spine workflow server, covering creation, conversion, inspection, preview, and batch operations without bloat.
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
Remote MCP server with 23 tools to generate and reuse 2D game sprites, animations, maps, and audio.
An MCP server that provides asset auto generator
Generate authentic pixel art - sprites, animations, and tilesets - from any MCP client
Game-dev sprite tools: PNG/GIF to spritesheet, split, trim, animate. OAuth-authenticated MCP server.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceMCP server for Spline.design code generation and asset management.5BSD 3-Clause
- AlicenseAqualityDmaintenanceLocal MCP server for automating Spine projects via the official CLI, enabling AI tools to inspect, export, import, and add animations to .spine files.1625Apache 2.0
- AlicenseAqualityDmaintenanceAn 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.45MIT
- FlicenseBqualityCmaintenanceMCP 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-