Skip to main content
Glama
INSTALLATION.md2.39 kB
# Unity MCP Server Installation Guide ## Installing as a Global .NET Tool 1. Install the Unity MCP Server globally using dotnet: ```bash dotnet tool install -g com.IvanMurzak.Unity.MCP.Server ``` 2. Verify the installation: ```bash unity-mcp-server --help ``` ## VS Code Integration ### Method 1: Using Claude Desktop App Add the following configuration to your Claude Desktop config file: **Windows**: `%APPDATA%\Claude\claude_desktop_config.json` **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json` **Linux**: `~/.config/Claude/claude_desktop_config.json` ```json { "mcpServers": { "unity-mcp-server": { "command": "unity-mcp-server", "env": { "UNITY_MCP_CLIENT_TRANSPORT": "stdio", "UNITY_MCP_PORT": "8080", "UNITY_MCP_PLUGIN_TIMEOUT": "10000" } } } } ``` ### Method 2: VS Code MCP Extension If using a VS Code MCP extension, add this to your VS Code settings.json: ```json { "servers": { "unity-mcp-server": { "command": "unity-mcp-server", "env": { "UNITY_MCP_CLIENT_TRANSPORT": "stdio", "UNITY_MCP_PORT": "8080", "UNITY_MCP_PLUGIN_TIMEOUT": "10000" } } } } ``` ## Configuration Options ### Command Line Arguments - `--client-transport`: Transport method (`stdio` or `http`) - `--port`: Unity Plugin connection port (default: 8080) - `--plugin-timeout`: Plugin connection timeout in milliseconds (default: 10000) ### Environment Variables - `UNITY_MCP_CLIENT_TRANSPORT`: Transport type - `UNITY_MCP_PORT`: Plugin port - `UNITY_MCP_PLUGIN_TIMEOUT`: Plugin timeout ## Usage 1. **Install the Unity MCP Plugin** in your Unity project 2. **Start Unity Editor** with your project open 3. **Configure your MCP client** (VS Code, Claude Desktop, etc.) to use `unity-mcp-server` 4. **Connect your AI assistant** - it will now be able to interact with Unity ## Troubleshooting ### Common Issues 1. **Server not found**: Ensure the dotnet tool is installed globally and accessible in your PATH 2. **Connection timeout**: Verify Unity is running and the MCP Plugin is installed 3. **Port conflicts**: Change the `--port` if 8080 is already in use ### Debugging Run the server manually to see debug output: ```bash unity-mcp-server --client-transport=stdio --port=8080 ``` For more information, visit: https://github.com/IvanMurzak/Unity-MCP

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/IvanMurzak/Unity-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server