unity-mcp-server
Python MCP server for Unity MCP — enables AI assistants (Claude, Cursor, VS Code Copilot, Windsurf) to control the Unity Editor via the Model Context Protocol.
Quick Start
1. Install the Unity package
In Unity: Window > Package Manager > + > Add package from git URL:
https://github.com/mzbswh/unity-mcp.git?path=unity-mcp
2. Configure your MCP client
Add to your MCP client config (e.g. .cursor/mcp.json, .vscode/mcp.json):
{
"mcpServers": {
"unity": {
"command": "uvx",
"args": ["unity-mcp-server"]
}
}
}
Or use Window > Unity MCP > Clients tab in Unity for one-click configuration.
3. Verify
Ask your AI assistant: "List all GameObjects in my Unity scene"
Streamable HTTP Mode
By default the server runs in stdio mode (MCP client launches it automatically). To run as a standalone HTTP server:
UNITY_MCP_TRANSPORT=streamable-http uvx unity-mcp-server
Then configure your MCP client with http://127.0.0.1:8080/mcp.
Environment Variables
| Variable | Default | Description |
|---|---|---|
UNITY_MCP_HOST |
127.0.0.1 |
Unity Editor host address |
UNITY_MCP_PORT |
51279 |
Unity Editor TCP port |
UNITY_MCP_TIMEOUT |
60 |
Request timeout (seconds) |
UNITY_MCP_TRANSPORT |
stdio |
Transport mode: stdio or streamable-http |
UNITY_MCP_HTTP_PORT |
8080 |
HTTP port (only for streamable-http mode) |
Docker
cd unity-server
# stdio mode (default)
docker compose up -d
# Streamable HTTP mode
UNITY_MCP_TRANSPORT=streamable-http docker compose up -d
Extra Tools
In addition to all Unity Editor tools (60+), this server provides:
analyze_script— C# script static analysisvalidate_assets— Asset naming and directory validation
License
Metadata
Release files for unity-mcp-server 1.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| unity_mcp_server-1.0.11.tar.gz | 30.9 kB | With provenance | Details for unity_mcp_server-1.0.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| unity_mcp_server-1.0.11-py3-none-any.whl | Python 3 | none | any | Details for unity_mcp_server-1.0.11-py3-none-any.whl |
Total release size: 62.8 kB
Release files / unity_mcp_server-1.0.11.tar.gz
| Download URL | unity_mcp_server-1.0.11.tar.gz |
|---|---|
| Size | 30.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7e25ea880077e331c9a8ff68bc11a5be4608152aead75632bfcd783297bfb91
|
|
BLAKE2b-256 checksum How to use checksums |
dd8ea2b3abbf1e1bc5128b5474e99c245e2dff21d62268c1deeb2a2820568d71
|
| 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 Mar 16, 2026.
Transparency logRelease files / unity_mcp_server-1.0.11-py3-none-any.whl
| Download URL | unity_mcp_server-1.0.11-py3-none-any.whl |
|---|---|
| Size | 32.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c629c56a56122c58f31d6d700750e48531d26f57466d2c03e8b65f3123c7395
|
|
BLAKE2b-256 checksum How to use checksums |
bbe0fa38452738ae43bca930438474b0ae461ba3c0d5631191db25d1f2d3ef73
|
| 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 Mar 16, 2026.
Transparency logSecurity for unity-mcp-server 1.0.11
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for unity_mcp_server-1.0.11.tar.gz
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 Mar 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.