What’s the difference between using MCP and direct HTTP?
MCP (stdio) is intended for AI model tools like Claude Desktop; direct HTTP allows scripts, CI, or any HTTP client (curl) to interact with Unity without the TypeScript server.
@isuzu-shiranui
基本信息
Unity Editor integration with Model Context Protocol (MCP) enabling AI assistants like Claude to interact with Unity projects. Features a TypeScript MCP server and C# Unity plugin with extensible command handler architecture, TCP/IP communication, and dynamic plugin discovery.
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"unity-mcp": {
"command": "node",
"args": [
"/absolute/path/to/unity-mcp-ts/build/index.js"
]
}
}
}工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
Unity MCP 統合フレームワーク connects the Unity Editor to AI language models like Claude or to CLI (curl) via HTTP, using the Model Context Protocol (MCP). It allows you to directly control Unity Editor—inspect scenes, execute C# code, capture screenshots, and manage Play Mode—from outside the editor.
Install the Unity package via Package Manager (Add package from git URL…). The HTTP server auto-starts on port 27182 (fallback 27182–27199). For Claude Desktop/Code, download the TypeScript MCP client using the built‑in installer and paste the generated config JSON. You can also call endpoints directly with curl. Configure options under Edit > Preferences > Unity MCP.
MCP (stdio) is intended for AI model tools like Claude Desktop; direct HTTP allows scripts, CI, or any HTTP client (curl) to interact with Unity without the TypeScript server.
Unity 2022.3 or later (up to Unity 6000), .NET/C# 9.0 (Editor side), and Node.js 18.0+ (TypeScript MCP server).
Each command is marked `Safe` (read‑only, safe to retry) or `Unsafe` (mutating). The TypeScript client uses `err.cause.code` to retry only before a handshake for Unsafe commands, structurally preventing duplicate side effects.
Yes. The HTTP server binds to `127.0.0.1` by default (loopback only). The `/execute_code` endpoint can be disabled in settings. External network exposure is not supported.
Yes. Implement `IMcpCommandHandler` or `IMcpResourceHandler` in C# (auto‑detected by reflection) or extend `BaseCommandHandler` in TypeScript (place in `src/handlers/`). Prompts are also extensible via `BasePromptHandler`.
A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
Hindsight: Agent Memory That Learns
不止于 CSS

Couples therapist Figs O'Sullivan (LMFT, 17 years, endorsed by Sue Johnson, creator of EFT) inside your AI. Ask relationship questions answered from his clinical writing, name the pattern in a fight, get a three-step rep

Model Context Protocol Servers
评论