Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

MCP for Unity Server

MCP python License Discord

Model Context Protocol server for Unity Editor integration. Control Unity through natural language using AI assistants like Claude, Cursor, and more.

Maintained by Coplay - This project is not affiliated with Unity Technologies.

💬 Join our community: Discord Server

Required: Install the Unity MCP Plugin to connect Unity Editor with this MCP server. You also need uvx (requires uv) to run the server.


Installation

Option 1: PyPI

Install and run directly from PyPI using uvx.

Run Server (HTTP):

uvx --from mcpforunityserver mcp-for-unity --transport http --http-url http://localhost:8080

MCP Client Configuration (HTTP):

{
  "mcpServers": {
    "UnityMCP": {
      "url": "http://localhost:8080/mcp"
    }
  }
}

MCP Client Configuration (stdio):

{
  "mcpServers": {
    "UnityMCP": {
      "command": "uvx",
      "args": [
        "--from",
        "mcpforunityserver",
        "mcp-for-unity",
        "--transport",
        "stdio"
      ]
    }
  }
}

Option 2: From GitHub Source

Use this to run the latest released version from the repository. Change the version to main to run the latest unreleased changes from the repository.

{
  "mcpServers": {
    "UnityMCP": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/CoplayDev/unity-mcp@v9.2.0#subdirectory=Server",
        "mcp-for-unity",
        "--transport",
        "stdio"
      ]
    }
  }
}

Option 3: Docker

Use Pre-built Image:

docker run -p 8080:8080 msanatan/mcp-for-unity-server:latest --transport http --http-url http://0.0.0.0:8080

Build Locally:

docker build -t unity-mcp-server .
docker run -p 8080:8080 unity-mcp-server --transport http --http-url http://0.0.0.0:8080

Configure your MCP client with "url": "http://localhost:8080/mcp".

Option 4: Local Development

For contributing or modifying the server code:

# Clone the repository
git clone https://github.com/CoplayDev/unity-mcp.git
cd unity-mcp/Server

# Run with uv
uv run src/main.py --transport stdio

Configuration

The server connects to Unity Editor automatically when both are running. No additional configuration needed.

Environment Variables:

  • DISABLE_TELEMETRY=true - Opt out of anonymous usage analytics
  • LOG_LEVEL=DEBUG - Enable detailed logging (default: INFO)

Example Prompts

Once connected, try these commands in your AI assistant:

  • "Create a 3D player controller with WASD movement"
  • "Add a rotating cube to the scene with a red material"
  • "Create a simple platformer level with obstacles"
  • "Generate a shader that creates a holographic effect"
  • "List all GameObjects in the current scene"

Documentation

For complete documentation, troubleshooting, and advanced usage:

📖 Full Documentation


Requirements

  • Python: 3.10 or newer
  • Unity Editor: 2021.3 LTS or newer
  • uv: Python package manager (Installation Guide)

License

MIT License - See LICENSE

Metadata

Release files for mcpforunityserver 9.3.0b20260128055651

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcpforunityserver 9.3.0b20260128055651
File Size Uploaded
mcpforunityserver-9.3.0b20260128055651.tar.gz 153.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcpforunityserver 9.3.0b20260128055651
File Interpreter ABI Platform
mcpforunityserver-9.3.0b20260128055651-py3-none-any.whl Python 3 none any Details

Total release size: 346.7 kB

Release files / mcpforunityserver-9.3.0b20260128055651.tar.gz

Download URL mcpforunityserver-9.3.0b20260128055651.tar.gz
Size 153.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d2bf58dc5f98da8e6abb6f044c48303ce96345cbaae6361debc5f6e3a2e1532a
BLAKE2b-256 checksum
How to use checksums
c94bf3dd9e94fb31dc32e94d89fc4c8c67bc064591de1005b496583c0f3eaf9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 28, 2026.

Transparency log

Release files / mcpforunityserver-9.3.0b20260128055651-py3-none-any.whl

Download URL mcpforunityserver-9.3.0b20260128055651-py3-none-any.whl
Size 192.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc0a5a7ab4072bd663c21d7291bf97f0a65ef99e1af691dcd6df0cb7a403336a
BLAKE2b-256 checksum
How to use checksums
dfb63b753fc87c5aec4c08a2e9c72b9564e72aae47e7b5e791276bb1e4adc917
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 28, 2026.

Transparency log

Release history Release notifications | RSS feed

10.1.0

2 release files

10.0.2

2 release files

10.0.0

2 release files

9.7.3

2 release files

9.7.1

2 release files

9.7.0

2 release files

9.6.8

2 release files

9.6.6

2 release files

9.6.5

2 release files

9.6.4

2 release files

9.6.2

2 release files

9.6.0

2 release files

9.5.3

2 release files

9.5.2

2 release files

9.5.1

2 release files

9.5.0

2 release files

9.4.7

2 release files

9.4.6

2 release files

9.4.4

2 release files

9.4.2

2 release files

9.4.1

2 release files

9.4.0

2 release files

9.3.2

2 release files

9.3.1

2 release files

9.3.0

2 release files

This release

9.2.0

2 release files

9.1.0

2 release files

9.0.8

2 release files

9.0.7

2 release files

9.0.3

2 release files

9.0.2

2 release files

9.0.1

2 release files

9.0.0

2 release files

8.7.1

2 release files

8.7.0

2 release files

8.6.0

2 release files

8.5.0

2 release files

8.3.0

2 release files

8.2.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page