Unitycodemcpserver MCP Server

See [the full cities workflow example and transcript](Assets/Plugins/UnityCodeMcpServer/Documentation~/Examples/UsageExample_CitiesWorkflow.md).

Local serverstdioPython

What is the Unitycodemcpserver MCP Server?

See the full cities workflow example and transcript.

Configuration

  • Unity 2022.3 LTS or higher (tested on 2022.3.62f3 and 6000.2.7f2) - uv (Python package manager) for the bundled STDIO bridge: https://docs.astral.sh/uv/.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
execute_csharp_script_in_unity_editor
read_unity_console_logs
run_unity_tests
enter_play_mode
play_unity_game
get_unity_game_view_window_screenshot
exit_play_mode
get_unity_info

How to install the Unitycodemcpserver MCP Server

{
  "mcpServers": {
    "unity-code-mcp-stdio": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "C:/path/to/UnityProject/Assets/Plugins/UnityCodeMcpServer/Editor/STDIO~",
        "unity-code-mcp-stdio"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • Unity 2022.3 LTS or higher (tested on 2022.3.62f3 and 6000.2.7f2) - uv (Python package manager) for the bundled STDIO bridge: https://docs.astral.sh/uv/.

Example prompts to try

  • “Use Unitycodemcpserver to execute csharp script in unity editor.”
  • “Use Unitycodemcpserver to read unity console logs.”
  • “Use Unitycodemcpserver to run unity tests.”

Frequently asked questions

See [the full cities workflow example and transcript](Assets/Plugins/UnityCodeMcpServer/Documentation~/Examples/UsageExample_CitiesWorkflow.md). Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.