MCP for Unity
Serveur MCP par Coplay (CoplayDev)
Control the Unity Editor from your assistant: scenes, GameObjects, C# scripts, assets, tests and builds.
Installer MCP for Unity
Tourne sur votre machine. Votre client le lance avec cette commande :
Nécessite uv (Python) sur votre ordinateur. Les étapes ci-dessous montrent où placer la commande dans chaque client.
Partager ce serveur
Ouvre cette page, avec la commande d’installation et les étapes de configuration.
mcp.tc/i/unityPrésentation
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.
Ce que vous pouvez faire
- 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
Outils 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.
Afficher 31 outils de plus
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.
Tirés du manifeste du paquet, pas d’une connexion en direct, le 3 oct. 2026.
Exemples de 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
Configuration
Chaque client lance MCP for Unity sur votre machine avec la même commande. Choisissez le vôtre ; la page retient votre choix.
Claude Code
- Lancez ceci dans un terminal, dans le dossier de votre projet :
claude mcp add --transport stdio unity -- uvx --from mcpforunityserver mcp-for-unity --transport stdio- Démarrez Claude Code et tapez
/mcp. unity devrait apparaître comme connecté.
Ajoutez --scope user pour le rendre disponible dans tous vos projets.
Claude Desktop
- Ouvrez Settings → Developer → Edit Config. Cela ouvre
claude_desktop_config.json. Ajoutez :
{
"mcpServers": {
"unity": {
"command": "uvx",
"args": [
"--from",
"mcpforunityserver",
"mcp-for-unity",
"--transport",
"stdio"
]
}
}
}- Enregistrez le fichier et redémarrez Claude Desktop.
Nécessite uv (Python) sur votre ordinateur. Le fichier se trouve dans ~/Library/Application Support/Claude/ sous macOS et dans %APPDATA%\Claude\ sous Windows.
Cursor
Ajouter à Cursor (s’ouvre dans un nouvel onglet)
Ou ajoutez-le à la main dans ~/.cursor/mcp.json (tous les projets) ou .cursor/mcp.json (ce projet) :
{
"mcpServers": {
"unity": {
"command": "uvx",
"args": [
"--from",
"mcpforunityserver",
"mcp-for-unity",
"--transport",
"stdio"
]
}
}
}Nécessite uv (Python) sur votre ordinateur.
VS Code
Installer dans VS Code (s’ouvre dans un nouvel onglet)
Ou depuis un terminal :
code --add-mcp '{"name":"unity","type":"stdio","command":"uvx","args":["--from","mcpforunityserver","mcp-for-unity","--transport","stdio"]}'Ou committez-le dans le dépôt, dans .vscode/mcp.json :
{
"servers": {
"unity": {
"type": "stdio",
"command": "uvx",
"args": [
"--from",
"mcpforunityserver",
"mcp-for-unity",
"--transport",
"stdio"
]
}
}
}Nécessite uv (Python) sur votre ordinateur.
Devin Desktop
- Ajoutez-le à
~/.config/devin/mcp_config.json(macOS et Linux) ou%APPDATA%\devin\mcp_config.json(Windows) :
{
"mcpServers": {
"unity": {
"command": "uvx",
"args": [
"--from",
"mcpforunityserver",
"mcp-for-unity",
"--transport",
"stdio"
]
}
}
}- Actualisez la liste des serveurs MCP dans Cascade.
Devin Desktop est le nouveau nom de Windsurf.
Codex
codex mcp add unity -- uvx --from mcpforunityserver mcp-for-unity --transport stdioOu modifiez directement ~/.codex/config.toml :
[mcp_servers.unity]
command = "uvx"
args = ["--from", "mcpforunityserver", "mcp-for-unity", "--transport", "stdio"]Nécessite uv (Python) sur votre ordinateur.
Gemini CLI
gemini mcp add unity uvx -- --from mcpforunityserver mcp-for-unity --transport stdioCela l’ajoute au projet en cours. Ajoutez -s user pour l’utiliser partout.
Tout client
La plupart des clients qui lancent des serveurs locaux acceptent cette forme :
{
"mcpServers": {
"unity": {
"command": "uvx",
"args": [
"--from",
"mcpforunityserver",
"mcp-for-unity",
"--transport",
"stdio"
]
}
}
}Zed place les serveurs sous context_servers dans ses réglages, avec les mêmes champs command, args et env.
Nécessite uv (Python) sur votre ordinateur.
FAQ
Puis-je coller mcp.tc/i/unity dans mon client MCP ?
Non. MCP for Unity tourne sur votre propre ordinateur, lancé par votre client, il n’a donc pas d’adresse web à laquelle se connecter. Le lien rapide est la page à partager ; la commande d’installation est uvx --from mcpforunityserver mcp-for-unity --transport stdio.
MCP for Unity a-t-il besoin d’une clé API ?
Non. Il ne déclare ni clé ni variable d’environnement. Il s’exécute avec les droits de votre compte utilisateur, vérifiez donc ce que ses outils peuvent atteindre.
MCP for Unity est-il un serveur distant ou local ?
Local. Votre client le lance comme un processus sur votre ordinateur avec uvx --from mcpforunityserver mcp-for-unity --transport stdio, qui nécessite uv (Python).
Que peut faire MCP for Unity ?
Il a 43 outils, dont apply_text_edits, batch_execute et create_script. Vous pouvez create, modify and delete GameObjects and their components, load, save and query scenes and prefabs et create, edit and validate C# scripts.
Quels clients peuvent l’utiliser ?
Tout client qui lance des serveurs locaux : Claude Code, Claude Desktop, Cursor, VS Code, Devin Desktop, Codex, Gemini CLI, Zed et d’autres. claude.ai et ChatGPT ne se connectent qu’à des serveurs distants.
Qui a rédigé cette page ?
Le robot de mcp.tc a lu les métadonnées publiques de MCP for Unity (ses pages de paquet et de dépôt), et un modèle d’IA en a tiré le texte. Une personne examine tout ce que les vérifications ne peuvent pas confirmer. Le texte peut encore contenir des erreurs : si vous en repérez une, utilisez Signaler cette fiche sur cette page.
Intégrer
Affichez MCP for Unity dans un README ou sur votre site. Chaque intégration renvoie à cette page, utilise la commande d’installation du serveur et ne dépose aucun cookie. Comment fonctionnent les intégrations
Badge pour README
[](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>Il suit le mode clair ou sombre du lecteur. Ajoutez ?theme=light ou ?theme=dark pour le fixer, ou ?style=compact pour afficher le symbole sans le nom.
Carte pour site web
<script src="https://mcp.tc/w/unity.js" async></script>La carte apparaît à l’endroit de la balise. Ajoutez data-theme="dark" ou data-size="compact" à la balise pour la modifier. Le fichier contient tout ce qu’il lui faut : il ne fait aucune autre requête et ne dépose aucun cookie.
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>Utilisez-la sur les pages qui n’autorisent pas les scripts. Ajoutez ?theme=light ou ?theme=dark à l’adresse pour fixer les couleurs.
JSON
La fiche sous forme de données pour vos pages et vos outils : nom, accroche, commande d’installation, outils et liens « Add to ». N’importe quel site peut la lire (CORS ouvert).
https://mcp.tc/i/unity.jsonmcp.tc n’est pas affilié à Coplay (CoplayDev). Cette page a été construite à partir des métadonnées publiques de MCP for Unity, vérifiées pour la dernière fois le 3 oct. 2026, et un modèle d’IA a rédigé la description : elle peut contenir des erreurs. Les noms et marques appartiennent à leurs propriétaires. Quelque chose cloche ? Signaler cette fiche.