MCP for Unity
MCP-Server von Coplay (CoplayDev)
Control the Unity Editor from your assistant: scenes, GameObjects, C# scripts, assets, tests and builds.
MCP for Unity installieren
Läuft auf deinem Rechner. Dein Client startet ihn mit diesem Befehl:
Braucht uv (Python) auf deinem Rechner. Die Schritte unten zeigen, wo der Befehl in jedem Client hingehört.
Diesen Server teilen
Öffnet diese Seite, mit dem Installationsbefehl und den Einrichtungsschritten.
mcp.tc/i/unityÜber den Server
Connects an AI assistant to a running Unity Editor. It exposes tools to create and edit GameObjects, components, prefabs, scenes, materials, shaders, textures, animation, physics, VFX and UI Toolkit. It can also write and validate C# scripts, read the console, run Unity Test Framework tests, manage packages and trigger player builds.
Runs locally with uvx over stdio (or optionally HTTP), and needs Python with uv. The Unity package must also be installed in your project so the Editor can connect to the server. No API key or sign-in is needed for local use. Maintained by Coplay and not affiliated with Unity Technologies.
Was du damit machen kannst
- Create, modify and delete GameObjects and their components
- Load, save and query scenes and prefabs
- Create, edit and validate C# scripts
- Manage assets, materials, shaders and textures
- Run Unity Test Framework tests and read console output
- Trigger player builds and switch platforms
- Manage packages, physics, animation, VFX and UI Toolkit
- Fetch Unity documentation and inspect APIs via reflection
Tools 43
apply_text_editsApply text edits to script content.
batch_executeExecute multiple Unity operations in a single batch.
create_scriptCreate new C# scripts.
debug_request_contextDebug and inspect MCP request context
delete_scriptDelete C# scripts.
execute_custom_toolExecute custom Unity Editor tools registered by the project.
execute_codeExecute arbitrary C# code inside the Unity Editor with access to Unity APIs.
execute_menu_itemExecute Unity Editor menu items.
find_gameobjectsFind GameObjects in the scene by various criteria.
find_in_fileSearch for content within Unity project files.
get_shaGet SHA hash of script content
get_test_jobGet status of an async test job.
31 weitere Tools anzeigen
manage_animationAnimator control, AnimatorController CRUD and AnimationClip operations.
manage_assetCreate, modify, search and organize Unity assets.
manage_buildTrigger player builds, switch platforms, configure settings, batch builds.
manage_componentsAdd, remove and configure GameObject components.
manage_editorControl Editor state, play mode, preferences, undo/redo.
manage_gameobjectCreate, modify, transform and delete GameObjects.
manage_cameraManage Unity Camera and Cinemachine with presets, pipelines and blending.
manage_graphicsManage volumes, post-processing, light baking, rendering stats and URP features.
manage_materialCreate and modify Unity materials and shaders.
manage_packagesInstall, remove, embed packages and configure registries.
manage_physicsManage 3D and 2D physics settings, joints, queries, forces and simulation.
manage_prefabsCreate, instantiate, unpack and modify prefabs.
manage_probuilderCreate and edit ProBuilder meshes, shapes and geometry operations.
manage_profilerProfiler session control, counter reads, memory snapshots, Frame Debugger.
manage_sceneLoad, save, query hierarchy, multi-scene editing, templates and validation.
manage_scriptCreate, read and modify C# scripts.
manage_script_capabilitiesQuery script management capabilities
manage_scriptable_objectCreate and modify ScriptableObjects.
manage_shaderWork with Unity shaders.
manage_textureCreate and modify textures with patterns, gradients and noise.
manage_toolsManage which tool groups are visible in this session
manage_uiManage UI Toolkit elements: UXML, USS and UIDocument components.
manage_vfxManage visual effects, particle systems and trails.
read_consoleRead Unity Editor console output: logs, warnings, errors.
refresh_unityRefresh the Unity Editor asset database.
run_testsRun Unity Test Framework tests.
script_apply_editsApply code edits to C# scripts with validation.
set_active_instanceSet the active Unity Editor instance for multi-instance workflows.
unity_docsFetch Unity ScriptReference, Manual and package docs.
unity_reflectInspect Unity C# APIs via live reflection.
validate_scriptValidate C# script syntax and compilation.
Am 3. Okt. 2026 aus dem Manifest des Pakets gelesen, nicht über eine Live-Verbindung.
Beispiel-Prompts
Create a cube at the origin and add a Rigidbody to it
Write a PlayerController C# script and attach it to the Player object
Run all play mode tests and show me the failures
Read the Unity console and tell me what errors are present
Einrichtung
Jeder Client startet MCP for Unity mit demselben Befehl auf deinem Rechner. Wähl deinen; die Seite merkt sich deine Wahl.
Claude Code
- Run this in a terminal, in your project folder:
claude mcp add --transport stdio unity -- uvx --from mcpforunityserver mcp-for-unity --transport stdio- Start Claude Code and type
/mcp. unity should show as connected.
Add --scope user to make it available in every project.
Claude Desktop
- Open Settings → Developer → Edit Config. It opens
claude_desktop_config.json. Add:
{
"mcpServers": {
"unity": {
"command": "uvx",
"args": [
"--from",
"mcpforunityserver",
"mcp-for-unity",
"--transport",
"stdio"
]
}
}
}- Save the file and restart Claude Desktop.
Needs uv (Python) on your computer. The file lives in ~/Library/Application Support/Claude/ on macOS and %APPDATA%\Claude\ on Windows.
Cursor
Zu Cursor hinzufügen (öffnet in einem neuen Tab)
Or add it by hand to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project):
{
"mcpServers": {
"unity": {
"command": "uvx",
"args": [
"--from",
"mcpforunityserver",
"mcp-for-unity",
"--transport",
"stdio"
]
}
}
}Needs uv (Python) on your computer.
VS Code
Install in VS Code (öffnet in einem neuen Tab)
Or from a terminal:
code --add-mcp '{"name":"unity","type":"stdio","command":"uvx","args":["--from","mcpforunityserver","mcp-for-unity","--transport","stdio"]}'Or commit it to the repo in .vscode/mcp.json:
{
"servers": {
"unity": {
"type": "stdio",
"command": "uvx",
"args": [
"--from",
"mcpforunityserver",
"mcp-for-unity",
"--transport",
"stdio"
]
}
}
}Needs uv (Python) on your computer.
Devin Desktop
- Add it to
~/.config/devin/mcp_config.json(macOS and Linux) or%APPDATA%\devin\mcp_config.json(Windows):
{
"mcpServers": {
"unity": {
"command": "uvx",
"args": [
"--from",
"mcpforunityserver",
"mcp-for-unity",
"--transport",
"stdio"
]
}
}
}- Refresh the MCP server list in Cascade.
Devin Desktop is the new name for Windsurf.
Codex
codex mcp add unity -- uvx --from mcpforunityserver mcp-for-unity --transport stdioOr edit ~/.codex/config.toml directly:
[mcp_servers.unity]
command = "uvx"
args = ["--from", "mcpforunityserver", "mcp-for-unity", "--transport", "stdio"]Needs uv (Python) on your computer.
Gemini CLI
gemini mcp add unity uvx -- --from mcpforunityserver mcp-for-unity --transport stdioThis adds it to the current project. Add -s user to use it everywhere.
Any client
Most clients that start local servers accept this shape:
{
"mcpServers": {
"unity": {
"command": "uvx",
"args": [
"--from",
"mcpforunityserver",
"mcp-for-unity",
"--transport",
"stdio"
]
}
}
}Zed puts servers under context_servers in its settings, with the same command, args and env fields.
Needs uv (Python) on your computer.
Häufige Fragen
Can I paste mcp.tc/i/unity into my MCP client?
No. MCP for Unity runs on your own computer, started by your client, so it has no web address to connect to. The quick link is the page to share; the install command is uvx --from mcpforunityserver mcp-for-unity --transport stdio.
Does MCP for Unity need an API key?
No. It doesn’t declare any keys or environment variables. It runs with your user account’s permissions, so check what its tools can reach.
Is MCP for Unity a remote or a local server?
Local. Your client starts it as a process on your computer with uvx --from mcpforunityserver mcp-for-unity --transport stdio, which needs uv (Python).
What can MCP for Unity do?
It has 43 tools, including apply_text_edits, batch_execute und create_script. You can Create, modify and delete GameObjects and their components, Load, save and query scenes and prefabs und Create, edit and validate C# scripts.
Which clients can use it?
Any client that starts local servers: Claude Code, Claude Desktop, Cursor, VS Code, Devin Desktop, Codex, Gemini CLI, Zed and others. claude.ai and ChatGPT only connect to remote servers.
Who wrote this page?
mcp.tc’s robot read MCP for Unity’s public metadata (its package and repository pages), and an AI model drafted the text from it. A person reviews anything the checks can’t confirm. The text can still be wrong, so if you spot a mistake, use Report this listing on this page.
Einbinden
Zeig MCP for Unity in einem README oder auf deiner Website. Jede Einbindung verlinkt auf diese Seite, nutzt den Installationsbefehl des Servers und setzt keine Cookies. So funktionieren Einbindungen
README-Badge
[](https://mcp.tc/i/unity)<a href="https://mcp.tc/i/unity"><img src="https://mcp.tc/i/unity/badge.svg" alt="MCP for Unity on mcp.tc" height="20"></a>Es folgt dem hellen oder dunklen Modus der Lesenden. Hänge ?theme=light oder ?theme=dark an, um ihn festzulegen, oder ?style=compact, um das Zeichen ohne Schriftzug zu zeigen.
Website-Karte
<script src="https://mcp.tc/w/unity.js" async></script>Die Karte erscheint dort, wo das Tag steht. Füge dem Tag data-theme="dark" oder data-size="compact" hinzu, um sie zu ändern. Die Datei enthält alles, was sie braucht, stellt also keine weiteren Anfragen und setzt keine Cookies.
iframe
<iframe src="https://mcp.tc/embed/unity" title="MCP for Unity on mcp.tc" width="420" height="200" loading="lazy" allow="clipboard-write" style="border:0;border-radius:8px;max-width:100%"></iframe>Nutze es auf Seiten, die keine Skripte erlauben. Hänge ?theme=light oder ?theme=dark an die Adresse an, um die Farben festzulegen.
JSON
Der Eintrag als Daten für deine eigenen Seiten und Tools: Name, Kurzbeschreibung, Installationsbefehl, Tools und die „Add to“-Links. Jede Website kann ihn lesen (CORS ist offen).
https://mcp.tc/i/unity.jsonmcp.tc ist nicht mit Coplay (CoplayDev) verbunden. Diese Seite entstand aus den öffentlichen Metadaten von MCP for Unity, zuletzt geprüft am 3. Okt. 2026, und ein KI-Modell hat die Beschreibung geschrieben, sie kann also Fehler enthalten. Namen und Marken gehören ihren Inhabern. Stimmt etwas nicht? Eintrag melden.