-
-
Notifications
You must be signed in to change notification settings - Fork 128
Configuration
If the automatic configuration doesn't work, or you need advanced setups (like remote servers), you can configure Unity-MCP manually.
In the Window -> AI Game Developer dashboard, you can set:
-
Port: The port the server listens on (Default:
8080). -
Transport:
HTTP(Recommended) orstdio.
Add the following to your MCP Client's configuration file (e.g., claude_desktop_config.json):
{
"mcpServers": {
"Unity-MCP": {
"command": "C:/Path/To/Your/Project/Library/mcp-server/win-x64/unity-mcp-server.exe",
"args": [
"--port=8080",
"--client-transport=stdio"
]
}
}
}{
"mcpServers": {
"Unity-MCP": {
"command": "/Path/To/Your/Project/Library/mcp-server/osx-x64/unity-mcp-server",
"args": [
"--port=8080",
"--client-transport=stdio"
]
}
}
}{
"mcpServers": {
"Unity-MCP": {
"command": "/Path/To/Your/Project/Library/mcp-server/osx-arm64/unity-mcp-server",
"args": [
"--port=8080",
"--client-transport=stdio"
]
}
}
}Note: The paths above (pointing to
Library/mcp-server/...) are customized for the Unity Plugin's automatic installation.If you downloaded the server binary manually (e.g., to your Desktop), simply point the
commandto that location:"command": "C:/Users/You/Desktop/unity-mcp-server.exe"
The unity-mcp-server executable accepts the following arguments:
| Argument | Env Variable | Default | Description |
|---|---|---|---|
--port |
UNITY_MCP_PORT |
8080 |
Port for Unity Plugin connection. |
--client-transport |
UNITY_MCP_CLIENT_TRANSPORT |
http |
Transport for MCP Client (stdio or http). |
--plugin-timeout |
UNITY_MCP_PLUGIN_TIMEOUT |
10000 |
Timeout (ms) for plugin response. |
If using Docker, start the container:
docker run -p 8080:8080 ivanmurzakdev/unity-mcp-serverAnd configure your client to connect via HTTP SSE (if supported) or use the docker command in the client config:
"Unity-MCP": {
"command": "docker",
"args": ["run", "-i", "--rm", "-p", "8080:8080", "ivanmurzakdev/unity-mcp-server", "--client-transport=stdio"]
}