Unity MCP acts as a bridge between AI assistants and your Unity Editor. Give your LLM tools to manage assets, control scenes, edit scripts, and automate tasks within Unity.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add unity -- python path/to/your/main.py~/.codex/config.toml
[mcp_servers.unity]
command = "python"
args = ["path/to/your/main.py"]
# codex mcp add unity -- python path/to/your/main.py~/.cursor/mcp.json
{
"mcpServers": {
"unity": {
"command": "python",
"args": [
"path/to/your/main.py"
]
}
}
}.vscode/mcp.json
{
"servers": {
"unity": {
"type": "stdio",
"command": "python",
"args": [
"path/to/your/main.py"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"unity": {
"command": "python",
"args": [
"path/to/your/main.py"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"unity": {
"command": "python",
"args": [
"path/to/your/main.py"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"unity": {
"command": "python",
"args": [
"path/to/your/main.py"
]
}
}
}