Lets agents run editor code inside Unity, fetch logs and editor state, and access project files.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add unity-integration --env MCP_WEBSOCKET_PORT='<MCP_WEBSOCKET_PORT>' -- node build/index.js~/.codex/config.toml
[mcp_servers.unity-integration]
command = "node"
args = ["build/index.js"]
env = { MCP_WEBSOCKET_PORT = "<MCP_WEBSOCKET_PORT>" }
# codex mcp add unity-integration --env MCP_WEBSOCKET_PORT='<MCP_WEBSOCKET_PORT>' -- node build/index.js~/.cursor/mcp.json
{
"mcpServers": {
"unity-integration": {
"command": "node",
"args": [
"build/index.js"
],
"env": {
"MCP_WEBSOCKET_PORT": "<MCP_WEBSOCKET_PORT>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"unity-integration": {
"type": "stdio",
"command": "node",
"args": [
"build/index.js"
],
"env": {
"MCP_WEBSOCKET_PORT": "<MCP_WEBSOCKET_PORT>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"unity-integration": {
"command": "node",
"args": [
"build/index.js"
],
"env": {
"MCP_WEBSOCKET_PORT": "<MCP_WEBSOCKET_PORT>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"unity-integration": {
"command": "node",
"args": [
"build/index.js"
],
"env": {
"MCP_WEBSOCKET_PORT": "<MCP_WEBSOCKET_PORT>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"unity-integration": {
"command": "node",
"args": [
"build/index.js"
],
"env": {
"MCP_WEBSOCKET_PORT": "<MCP_WEBSOCKET_PORT>"
}
}
}
}Environment variables
MCP_WEBSOCKET_PORT
Replace the placeholders with your own credentials and keep them out of version control.