UniMCP4CC

UniMCP4CC

Enables Claude Code to directly control Unity Editor, supporting scene manipulation, component operations, asset management, prefab handling, and audio control through natural language commands.

Category
Visit Server

README

UniMCP4CC - Unity MCP Server for Claude Code

Unity Editor を Claude Code から操作するための MCP (Model Context Protocol) サーバーです。

Note: このパッケージは Claude Code 専用 に設計・テストされています。

動作環境

項目 バージョン
Unity 6000.0.0 以降 (Unity 6)
Node.js 18 以降
AI Client Claude Code (Anthropic)

Important: このパッケージは Unity 6 (6000.x) 向けにビルドされています。Unity 2021/2022 では動作しない可能性があります。

機能

Claude Code から Unity Editor を直接操作できます:

  • シーン操作: GameObject の作成・削除・検索
  • コンポーネント操作: コンポーネントの追加・削除・プロパティ変更
  • アセット操作: アセットの検索・インポート・作成
  • プレハブ操作: プレハブの作成・インスタンス化
  • オーディオ操作: AudioSource の作成・再生制御

インストール

Unity Package Manager からインストール

Unity Editor で Window > Package Manager を開き、+ > Add package from git URL... を選択:

https://github.com/dsgarage/UniMCP4CC.git

Claude Code の設定

パッケージインストール後、Unity Editor で:

Window > Unity MCP > Setup Claude Code

表示されるウィンドウで「Setup Claude Code」ボタンをクリックすると、自動的に設定が行われます。

使用方法

  1. Unity Editor を起動(MCP Server が自動起動します)
  2. Claude Code を起動
  3. Unity プロジェクトについて Claude Code に質問・指示

使用例

"Main Camera の位置を (0, 5, -10) に移動して"
"新しい Cube を作成して Player という名前をつけて"
"Player に Rigidbody コンポーネントを追加して"

API カテゴリ

カテゴリ 説明
scene シーン操作
gameObject GameObject 操作
component コンポーネント操作
transform Transform 操作
asset アセット操作
prefab プレハブ操作
audio オーディオ操作
editor エディタ操作
log ログ操作

詳細な API リファレンスは Wiki を参照してください。

アーキテクチャ

Claude Code → MCP Bridge (Node.js) → Unity MCP Server → Unity Editor

トラブルシューティング

接続できない場合

  1. Unity Editor が起動しているか確認
  2. Console に [MCP] HTTP Server started on port 5051 が表示されているか確認
  3. Claude Code を再起動

Unity バージョンの互換性

このパッケージは Unity 6 (6000.x) 向けにビルドされています。 他のバージョンで問題が発生した場合は Issue を作成してください。

ライセンス

MIT License

関連リンク


Made with Claude Code by dsgarage

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured