MCP for Unity
Developmentstdio
MCP server that bridges AI assistants with the Unity Editor. Gives an LLM tools to create and modify GameObjects, edit scripts, manage assets and scenes, read the console, and run tests, enabling AI-driven game development workflows directly inside Unity. Works with clients such as Claude, Cursor, VS Code, and other MCP-compatible tools.
连接
将此配置添加到 .claude/mcp.json
{
"mcpServers": {
"unity": {
"command": "uvx",
"args": [
"unity-mcp-server"
]
}
}
}工具 (3)
manage_gameobject
Create, find, modify, or delete GameObjects and their components in the active scene.
{
"type": "object",
"required": [
"action"
],
"properties": {
"name": {
"type": "string",
"description": "Name of the GameObject to act on"
},
"action": {
"type": "string",
"description": "Operation to perform (create, modify, delete, find)"
}
}
}manage_script
Create or edit C# scripts in the Unity project.
{
"type": "object",
"required": [
"path"
],
"properties": {
"path": {
"type": "string",
"description": "Path to the script file"
},
"contents": {
"type": "string",
"description": "Script contents to write"
}
}
}read_console
Read log, warning, and error messages from the Unity console.
{
"type": "object",
"properties": {
"types": {
"type": "array",
"items": {
"type": "string"
},
"description": "Message types to include (log, warning, error)"
}
}
}资源
此服务器未提供任何资源。
提示词
此服务器未提供任何提示词。
服务器信息
- 星标
- 0
- 最后更新
- 2026年7月12日