{"type":"mcp_server","name":"mcp-unity","description":"This repository provides an MCP (Model Context Protocol) server implementation for Unity, facilitating communication and integration between Unity projects and other systems, licensed under the MIT license. This repository provides","category":"Developer Tools","language":"C#","stars":1805,"forks":22,"owner":"CoderGamester","github_url":"https://github.com/CoderGamester/mcp-unity","homepage":null,"setup":"## Setup\n\nInstalling this MCP Unity Server is a multi-step process:\n\n### Step 1: Install Unity MCP Server package via Unity Package Manager\n1. Open the Unity Package Manager (Window > Package Manager)\n2. Click the \"+\" button in the top-left corner\n3. Select \"Add package from git URL...\"\n4. Enter: `https://github.com/CoderGamester/mcp-unity.git`\n5. Click \"Add\"\n\n### Step 2: Install Node.js\n> To run MCP Unity server, you'll need to have Node.js 18 or later installed on your computer:\n\n<details>\n<summary><span style=\"font-size: 1.1em; font-weight: bold;\">Windows</span></summary>\n\n1. Visit the [Node.js download page](https://nodejs.org/en/download/)\n2. Download the Windows Installer (.msi) for the LTS version (recommended)\n3. Run the installer and follow the installation wizard\n4. Verify the installation by opening PowerShell and running:\n   ```bash\n   node --version\n   npm --version\n   ```\n</details>\n\n<details>\n<summary><span style=\"font-size: 1.1em; font-weight: bold;\">macOS</span></summary>\n\n1. Visit the [Node.js download page](https://nodejs.org/en/download/)\n2. Download the macOS Installer (.pkg) for the LTS version (recommended)\n3. Run the installer and follow the installation wizard\n4. Alternatively, if you have Homebrew installed, you can run:\n   ```bash\n   brew install node@18\n   ```\n5. Verify the installation by opening Terminal and running:\n   ```bash\n   node --version\n   npm --version\n   ```\n</details>\n\n### Step 3: Configure AI LLM Client\n\n<details open>\n<summary><span style=\"font-size: 1.1em; font-weight: bold;\">Option 1: Configure using Unity Editor</span></summary>\n\n> Replace `ABSOLUTE/PATH/TO` with the absolute path to your MCP Unity installation.\n\nThe right configuration can be accessed in the Unity Editor MCP Server window (Tools > MCP Unity > Server Window)\n\n</details>\n\n<details>\n<summary><span style=\"font-size: 1.1em; font-weight: bold;\">Option 2: Configure via Smithery</span></summary>\n\nTo install MCP Unity via [Smithery](https://smithery.ai/server/@CoderGamester/mcp-unity):\n\n```\nCurrently not available\n```\n</details>\n\n<details open>\n<summary><span style=\"font-size: 1.1em; font-weight: bold;\">Option 3: Configure Manually</span></summary>\n\nOpen the MCP configuration file of your AI client (e.g. claude_desktop_config.json in Claude Desktop) and copy the following text:\n\n> Replace `ABSOLUTE/PATH/TO` with the absolute path to your MCP Unity installation.\n\n```json\n{\n   \"mcpServers\": {\n   \"mcp-unity\": {\n      \"command\": \"node\",\n      \"args\": [\n         \"ABSOLUTE/PATH/TO/mcp-unity/Server/build/index.js\"\n      ],\n      \"env\": {\n         \"UNITY_PORT\": \"8090\"\n      }\n   }\n   }\n}\n```\n\n</details>","tools":"## Available Tools\n\n1.  **execute_menu_item** (Executes Unity menu items tagged with the MenuItem attribute)\n2.  **select_object** (Selects game objects in the Unity hierarchy)\n3.  **package_manager** (Installs, removes, and updates packages in the Unity Package Manager)\n4.  **run_tests** (Runs tests using the Unity Test Runner)\n5.  **notify_message** (Displays messages in the Unity Editor)\n6.  **get_menu_items** (Retrieves a list of all available menu items in the Unity Editor to facilitate **execute_menu_item** tool)\n7.  **get_hierarchy** (Retrieves a list of all game objects in the Unity hierarchy)\n8.  **get_console_logs** (Retrieves a list of all logs from the Unity console)\n9.  **get_packages** (Retrieves information about installed and available packages from the Unity Package Manager)\n10. **get_assets** (Retrieves information about assets in the Unity Asset Database)\n11. **get_tests** (Retrieves information about tests in the Unity Test Runner)","faq":null,"created_at":"2025-03-13T20:41:25+00:00","updated_at":"2025-03-28T17:57:42+00:00","source_url":"https://model-context-protocol.com/servers/unity-ai-model-integration-server","related_articles":[]}