Unityの機能を使用するためのMCPサーバー
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"unitymcpserver": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Unity Editor上で動作するMCP(Model Context Protocol)サーバーです。 外部アプリケーションからHTTPリクエストを通じてUnity Editorの機能を呼び出すことができます。
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in other
Pi Coding Agent extension (CLI-first) — routes bash/read/grep/find/ls through lean-ctx CLI for strong token savings. Optional MCP bridge can register advanced tools.
Autonomous spec-to-product coding-agent CLI with an MCP server exposing 34 tools over stdio.
97% token reduction for AI coding sessions — zero deps, 21 languages, MCP server
App framework, testing framework, and inspector for MCP Apps.
MCP Security Weekly
Get CVE alerts and security updates for UnityMcpServer and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Unity Editor上で動作するMCP(Model Context Protocol)サーバーです。 外部アプリケーションからHTTPリクエストを通じてUnity Editorの機能を呼び出すことができます。
Window > Package Manager を開く+ ボタンをクリックAdd package from git URL... を選択Add をクリックhttps://github.com/AraiYuhki/UnityMcpServer.git?path=Packages/jp.xeon.unity-mcp-server
Packages/manifest.json の dependencies に以下を追加:
{
"dependencies": {
"jp.xeon.unity-mcp-server": "https://github.com/AraiYuhki/UnityMcpServer.git?path=Packages/jp.xeon.unity-mcp-server"
}
}
パッケージをインストールすると、Unity Editor起動時に自動でMCPサーバーが起動します。
デフォルトでは http://localhost:7000/mcp/ でリクエストを待ち受けます。
Create > MCPServerSetting を選択ポート番号を変更した場合など、サーバーを再起動したい場合は:
Tools > Restart MCP Server を選択| ツール名 | 説明 |
|---|---|
check_status | サーバーの稼働状態を確認 |
run_editmode_tests | EditModeテストを実行 |
run_playmode_tests | PlayModeテストを実行 |
get_compile_errors | 直近のコンパイルエラー・警告を取得 |
get_scene_hierarchy | 現在のシーンのGameObject階層を取得 |
get_component_info | 指定GameObjectのコンポーネント詳細を取得 |
find_missing_references | シーン・Prefab内のMissing Referenceを検索 |
get_asset_list | 指定パス以下のアセット一覧を取得 |
get_console_logs | Consoleのログ一覧を取得 |
{
"tool": "ツール名",
"arguments": "引数(JSON文字列)"
}
{
"ok": true,
"result": "結果(JSON文字列)",
"error": "エラーメッセージ(失敗時のみ)"
}
McpToolRouter.TryRegisterTool を使用してカスタムツールを登録できます:
using UnityMcp;
using System.Threading.Tasks;
[InitializeOnLoad]
public static class MyCustomTools
{
static MyCustomTools()
{
McpToolRouter.TryRegisterTool("my_custom_tool", MyCustomTool);
}
private static Task<object> MyCustomTool(string arguments)
{
// 引数をパースして処理を実行
var result = new { message = "Hello from Unity!" };
return Task.FromResult<object>(result);
}
}
MIT OR Apache-2.0
Xeon (@AraiYuhki)