MCP for Unity

Server MCP di Coplay (CoplayDev)

Control the Unity Editor from your assistant: scenes, GameObjects, C# scripts, assets, tests and builds.

Gira in locale (Gira sul tuo computer: la sua pagina riporta il comando di installazione)Gira con uvx

Installa MCP for Unity

Gira sul tuo computer. Il tuo client lo avvia con questo comando:

uvx --from mcpforunityserver mcp-for-unity --transport stdio

Richiede uv (Python) sul tuo computer. I passaggi qui sotto mostrano dove va il comando in ogni client.

Condividi questo server

Apre questa pagina, con il comando di installazione e i passaggi di configurazione.

mcp.tc/i/unity

Descrizione

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.

Cosa puoi fare

  • 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

Tool 43

  • apply_text_edits

    Apply text edits to script content.

  • batch_execute

    Execute multiple Unity operations in a single batch.

  • create_script

    Create new C# scripts.

  • debug_request_context

    Debug and inspect MCP request context

  • delete_script

    Delete C# scripts.

  • execute_custom_tool

    Execute custom Unity Editor tools registered by the project.

  • execute_code

    Execute arbitrary C# code inside the Unity Editor with access to Unity APIs.

  • execute_menu_item

    Execute Unity Editor menu items.

  • find_gameobjects

    Find GameObjects in the scene by various criteria.

  • find_in_file

    Search for content within Unity project files.

  • get_sha

    Get SHA hash of script content

  • get_test_job

    Get status of an async test job.

Mostra altri 31 tool
  • manage_animation

    Animator control, AnimatorController CRUD and AnimationClip operations.

  • manage_asset

    Create, modify, search and organize Unity assets.

  • manage_build

    Trigger player builds, switch platforms, configure settings, batch builds.

  • manage_components

    Add, remove and configure GameObject components.

  • manage_editor

    Control Editor state, play mode, preferences, undo/redo.

  • manage_gameobject

    Create, modify, transform and delete GameObjects.

  • manage_camera

    Manage Unity Camera and Cinemachine with presets, pipelines and blending.

  • manage_graphics

    Manage volumes, post-processing, light baking, rendering stats and URP features.

  • manage_material

    Create and modify Unity materials and shaders.

  • manage_packages

    Install, remove, embed packages and configure registries.

  • manage_physics

    Manage 3D and 2D physics settings, joints, queries, forces and simulation.

  • manage_prefabs

    Create, instantiate, unpack and modify prefabs.

  • manage_probuilder

    Create and edit ProBuilder meshes, shapes and geometry operations.

  • manage_profiler

    Profiler session control, counter reads, memory snapshots, Frame Debugger.

  • manage_scene

    Load, save, query hierarchy, multi-scene editing, templates and validation.

  • manage_script

    Create, read and modify C# scripts.

  • manage_script_capabilities

    Query script management capabilities

  • manage_scriptable_object

    Create and modify ScriptableObjects.

  • manage_shader

    Work with Unity shaders.

  • manage_texture

    Create and modify textures with patterns, gradients and noise.

  • manage_tools

    Manage which tool groups are visible in this session

  • manage_ui

    Manage UI Toolkit elements: UXML, USS and UIDocument components.

  • manage_vfx

    Manage visual effects, particle systems and trails.

  • read_console

    Read Unity Editor console output: logs, warnings, errors.

  • refresh_unity

    Refresh the Unity Editor asset database.

  • run_tests

    Run Unity Test Framework tests.

  • script_apply_edits

    Apply code edits to C# scripts with validation.

  • set_active_instance

    Set the active Unity Editor instance for multi-instance workflows.

  • unity_docs

    Fetch Unity ScriptReference, Manual and package docs.

  • unity_reflect

    Inspect Unity C# APIs via live reflection.

  • validate_script

    Validate C# script syntax and compilation.

Dal manifest del pacchetto, non da una connessione attiva (3 ott 2026).

Prompt di esempio

  • 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

Configurazione

Ogni client avvia MCP for Unity sul tuo computer con lo stesso comando. Scegli il tuo; la pagina ricorda la tua scelta.

Claude Code

  1. Eseguilo in un terminale, nella cartella del tuo progetto:
claude mcp add --transport stdio unity -- uvx --from mcpforunityserver mcp-for-unity --transport stdio
  1. Avvia Claude Code e digita /mcp. unity dovrebbe risultare collegato.

Aggiungi --scope user per renderlo disponibile in tutti i progetti.

Claude Desktop

  1. Apri Settings → Developer → Edit Config. Si apre claude_desktop_config.json. Aggiungi:
claude_desktop_config.json
{
  "mcpServers": {
    "unity": {
      "command": "uvx",
      "args": [
        "--from",
        "mcpforunityserver",
        "mcp-for-unity",
        "--transport",
        "stdio"
      ]
    }
  }
}
  1. Salva il file e riavvia Claude Desktop.

Richiede uv (Python) sul tuo computer. Il file si trova in ~/Library/Application Support/Claude/ su macOS e in %APPDATA%\Claude\ su Windows.

Cursor

Oppure aggiungilo a mano in ~/.cursor/mcp.json (tutti i progetti) o in .cursor/mcp.json (questo progetto):

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

Richiede uv (Python) sul tuo computer.

VS Code

Oppure da un terminale:

code --add-mcp '{"name":"unity","type":"stdio","command":"uvx","args":["--from","mcpforunityserver","mcp-for-unity","--transport","stdio"]}'

Oppure fai commit nel repository in .vscode/mcp.json:

.vscode/mcp.json
{
  "servers": {
    "unity": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "--from",
        "mcpforunityserver",
        "mcp-for-unity",
        "--transport",
        "stdio"
      ]
    }
  }
}

Richiede uv (Python) sul tuo computer.

Devin Desktop

  1. Aggiungilo a ~/.config/devin/mcp_config.json (macOS e Linux) o a %APPDATA%\devin\mcp_config.json (Windows):
mcp_config.json
{
  "mcpServers": {
    "unity": {
      "command": "uvx",
      "args": [
        "--from",
        "mcpforunityserver",
        "mcp-for-unity",
        "--transport",
        "stdio"
      ]
    }
  }
}
  1. Aggiorna l’elenco dei server MCP in Cascade.

Devin Desktop è il nuovo nome di Windsurf.

Codex

codex mcp add unity -- uvx --from mcpforunityserver mcp-for-unity --transport stdio

Oppure modifica direttamente ~/.codex/config.toml:

config.toml
[mcp_servers.unity]
command = "uvx"
args = ["--from", "mcpforunityserver", "mcp-for-unity", "--transport", "stdio"]

Richiede uv (Python) sul tuo computer.

Gemini CLI

gemini mcp add unity uvx -- --from mcpforunityserver mcp-for-unity --transport stdio

Così lo aggiungi al progetto corrente. Aggiungi -s user per usarlo ovunque.

Qualsiasi client

La maggior parte dei client che avviano server locali accetta questa forma:

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

Zed mette i server sotto context_servers nelle sue impostazioni, con gli stessi campi command, args ed env.

Richiede uv (Python) sul tuo computer.

Domande frequenti

Posso incollare mcp.tc/i/unity nel mio client MCP?

No. MCP for Unity gira sul tuo computer, avviato dal tuo client, quindi non ha un indirizzo web a cui collegarsi. Il link rapido è la pagina da condividere; il comando di installazione è uvx --from mcpforunityserver mcp-for-unity --transport stdio.

MCP for Unity richiede una chiave API?

No. Non dichiara chiavi né variabili d’ambiente. Gira con i permessi del tuo account utente, quindi controlla cosa possono raggiungere i suoi tool.

MCP for Unity è un server remoto o locale?

Locale. Il tuo client lo avvia come processo sul tuo computer con uvx --from mcpforunityserver mcp-for-unity --transport stdio, che richiede uv (Python).

Cosa può fare MCP for Unity?

Ha 43 tool, tra cui apply_text_edits, batch_execute e create_script.

Quali client possono usarlo?

Qualsiasi client che avvia server locali: Claude Code, Claude Desktop, Cursor, VS Code, Devin Desktop, Codex, Gemini CLI, Zed e altri. claude.ai e ChatGPT si collegano solo a server remoti.

Chi ha scritto questa pagina?

Il robot di mcp.tc ha letto i metadati pubblici di MCP for Unity (le pagine del suo pacchetto e del repository), e un modello di AI ne ha ricavato il testo. Una persona esamina tutto ciò che i controlli non riescono a confermare. Il testo può comunque contenere errori, quindi se ne trovi uno usa Segnala questa scheda su questa pagina.

Embed

Mostra MCP for Unity in un README o sul tuo sito. Ogni embed rimanda a questa pagina, usa il comando di installazione del server e non imposta cookie. Come funzionano gli embed

Badge per il README

Anteprima del badge, chiaroAnteprima del badge, scuro
Markdown
[![MCP for Unity on mcp.tc](https://mcp.tc/i/unity/badge.svg)](https://mcp.tc/i/unity)
HTML
<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>

Segue la modalità chiara o scura di chi legge. Aggiungi ?theme=light o ?theme=dark per fissarla, oppure ?style=compact per mostrare il simbolo senza la scritta.

Scheda per il sito

HTML
<script src="https://mcp.tc/w/unity.js" async></script>

La scheda compare dove si trova il tag. Aggiungi data-theme="dark" o data-size="compact" al tag per cambiarla. Il file contiene tutto ciò che serve, quindi non fa altre richieste e non imposta cookie.

iframe

HTML
<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>

Usalo nelle pagine che non consentono script. Aggiungi ?theme=light o ?theme=dark all’indirizzo per fissare i colori.

JSON

La scheda come dati per le tue pagine e i tuoi strumenti: nome, descrizione breve, comando di installazione, tool e i link «Aggiungi a». Qualsiasi sito può leggerla (CORS aperto).

https://mcp.tc/i/unity.json

Cosa significa ogni campo

mcp.tc non è affiliato a Coplay (CoplayDev). Questa pagina è stata costruita dai metadati pubblici di MCP for Unity (ultimo controllo: 3 ott 2026), e la descrizione l’ha scritta un modello di AI, quindi può contenere errori. Nomi e marchi appartengono ai rispettivi titolari. Qualcosa non va? Segnala questa scheda.