mcp-unity
Model Context Protocol (MCP) plugin to connect with Unity Editor — designed for Cursor, Claude Code, Codex, Windsurf and other IDEs
Install / Use
claude mcp add CoderGamester -- npx -y github:CoderGamester/mcp-unityIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
OtherSupported Platforms
Our assessment of mcp-unity
mcp-unity scores 94/100 on our quality scale, 31st of 302 Other skills we index (top 11%).
Its MCP Server is 38 KB long, well organised into 36 sections with 15 code examples: a thorough specification that gives an agent plenty to work with.
With 2,012 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 26 days ago, so mcp-unity is actively maintained.
- Our last check on 2026-10-17 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
mcp-unity compared with similar skills
All 4 of these similar skills score higher than mcp-unity; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| mcp-unity (this skill)by CoderGamester | 94 | 2.0k | 26d ago | MCP Server |
| taste-skillby Leonxlnx | 100 | 111.0k | 1d ago | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 109.5k | 1d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 79.0k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.8k | today | CLAUDE.md |
Frequently asked questions
- How do I install mcp-unity?
- Run
claude mcp add CoderGamester -- npx -y github:CoderGamester/mcp-unity. The install tabs above show the steps for each supported agent. - Which AI agents does mcp-unity work with?
- It is written for Claude Code, Claude Desktop, Cursor, GitHub Copilot, Windsurf and OpenAI Codex, as a MCP Server file. Other agents that read the same format can often use it too.
- Is mcp-unity safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is mcp-unity still maintained?
- The repository was last updated 26 days ago, so mcp-unity is actively maintained.
Skill content
View source on GitHubMCP Unity Editor (Game Engine)
| 🇺🇸English | 🇨🇳简体中文 | 🇯🇵日本語 | |----------------------|---------------------------------|----------------------|
,/(/. *(/,
*/(((((/. *((((((*.
.*((((((((((/. *((((((((((/.
./((((((((((((((/ *((((((((((((((/,
,/(((((((((((((/*. */(((((((((((((/*.
,%%#((/((((((* ,/(((((/(#&@@(
,%%##%%##((((((/*. ,/((((/(#&@@@@@@(
,%%######%%##((/(((/*. .*/(((//(%@@@@@@@@@@@(
,%%####%#(%%#%%##((/((((((((//#&@@@@@@&@@@@@@@@(
,%%####%( /#%#%%%##(//(#@@@@@@@%, #@@@@@@@(
,%%####%( *#%###%@@@@@@( #@@@@@@@(
,%%####%( #%#%@@@@, #@@@@@@@(
,%%##%%%( #%#%@@@@, #@@@@@@@(
,%%%#* #%#%@@@@, *%@@@(
., ,/##*. #%#%@@@@, ./&@#* *`
,/#%#####%%#/, #%#%@@@@, ,/&@@@@@@@@@&\.
`*#########%%%%###%@@@@@@@@@@@@@@@@@@&*´
`*%%###########%@@@@@@@@@@@@@@&*´
`*%%%######%@@@@@@@@@@&*´
`*#%%##%@@@@@&*´
`*%#%@&*´
███╗ ███╗ ██████╗██████╗ ██╗ ██╗███╗ ██╗██╗████████╗██╗ ██╗
████╗ ████║██╔════╝██╔══██╗ ██║ ██║████╗ ██║██║╚══██╔══╝╚██╗ ██╔╝
██╔████╔██║██║ ██████╔╝ ██║ ██║██╔██╗ ██║██║ ██║ ╚████╔╝
██║╚██╔╝██║██║ ██╔═══╝ ██║ ██║██║╚██╗██║██║ ██║ ╚██╔╝
██║ ╚═╝ ██║╚██████╗██║ ╚██████╔╝██║ ╚████║██║ ██║ ██║
╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝ ╚═╝
MCP Unity is an implementation of the Model Context Protocol for Unity Editor, allowing AI assistants to interact with your Unity projects. This package provides a bridge between Unity and a Node.js server that implements the MCP protocol, enabling AI agents like Cursor, Windsurf, Claude Code, Codex CLI, GitHub Copilot, Google Antigravity, and OpenCode to execute operations within the Unity Editor.
Features
IDE Integration - Package Cache Access
MCP Unity provides automatic integration with VSCode-like IDEs (Visual Studio Code, Cursor, Windsurf, Google Antigravity) by adding the Unity Library/PackedCache folder to your workspace. This feature:
- Improves code intelligence for Unity packages
- Enables better autocompletion and type information for Unity packages
- Helps AI coding assistants understand your project's dependencies
MCP Server Tools
The following tools are available for manipulating and querying Unity scenes and GameObjects via MCP:
-
execute_menu_item: Executes Unity menu items (functions tagged with the MenuItem attribute)Example prompt: "Execute the menu item 'GameObject/Create Empty' to create a new empty GameObject"
-
select_gameobject: Selects game objects in the Unity hierarchy by path or instance IDExample prompt: "Select the Main Camera object in my scene"
-
update_gameobject: Updates a GameObject's core properties (name, tag, layer, active/static state), or creates the GameObject if it does not existExample prompt: "Set the Player object's tag to 'Enemy' and make it inactive"
-
update_component: Updates component fields on a GameObject or adds it to the GameObject if it does not contain the componentExample prompt: "Add a Rigidbody component to the Player object and set its mass to 5"
-
add_package: Installs new packages in the Unity Package ManagerExample prompt: "Add the TextMeshPro package to my project"
-
run_tests: Runs tests using the Unity Test RunnerExample prompt: "Run all the EditMode tests in my project"
-
send_console_log: Send a console log to UnityExample prompt: "Send a console log to Unity Editor"
-
add_asset_to_scene: Adds an asset from the AssetDatabase to the Unity sceneExample prompt: "Add the Player prefab from my project to the current scene"
-
create_prefab: Creates a prefab with optional MonoBehaviour script and serialized field valuesExample prompt: "Create a prefab named 'Player' from the 'PlayerController' script"
-
create_scene: Creates a new scene and saves it to the specified pathExample prompt: "Create a new scene called 'Level1' in the Scenes folder"
-
load_scene: Loads a scene by path or name, with optional additive loadingExample prompt: "Load the MainMenu scene"
-
delete_scene: Deletes a scene by path or name and removes it from Build SettingsExample prompt: "Delete the old TestScene from my project"
-
get_gameobject: Gets detailed information about a specific GameObject including all componentsExample prompt: "Get the details of the Player GameObject"
-
get_console_logs: Retrieves logs from the Unity console with pagination supportExample prompt: "Show me the last 20 error logs from the Unity console"
-
recompile_scripts: Recompiles all scripts in the Unity projectExample prompt: "Recompile scripts in my Unity project"
-
save_scene: Saves the current active scene, with optional Save As to a new pathExample prompt: "Save the current scene" or "Save the scene as 'Assets/Scenes/Level2.unity'"
-
get_scene_info: Gets information about the active scene including name, path, dirty state, and all loaded scenesExample prompt: "What scenes are currently loaded in my project?"
-
unload_scene: Unloads a scene from the hierarchy (does not delete the scene asset)Example prompt: "Unload the UI scene from the hierarchy"
-
duplicate_gameobject: Duplicates a GameObject in the scene with optional renaming and reparentingExample prompt: "Duplicate the Enemy prefab 5 times and rename them Enemy_1 through Enemy_5"
-
delete_gameobject: Deletes a GameObject from the sceneExample prompt: "Delete the old Player object from the scene"
-
reparent_gameobject: Changes the parent of a GameObject in the hierarchyExample prompt: "Move the HealthBar object to be a child of the UI Canvas"
-
move_gameobject: Moves a GameObject to a new position (local or world space)Example prompt: "Move the Player object to position (10, 0, 5) in world space"
-
rotate_gameobject: Rotates a GameObject to a new rotation (local or world space, Euler angles or quaternion)Example prompt: "Rotate the Camera 45 degrees on the Y axis"
-
scale_gameobject: Scales a GameObject to a new local scaleExample prompt: "Scale the Enemy object to twice its size"
-
set_transform: Sets position, rotation, and scale of a GameObject in a single operationExample prompt: "Set the Cube's position to (0, 5, 0), rotation to (0, 90, 0), and scale to (2, 2, 2)"
-
create_material: Creates a new material with specified shader and saves it to the projectExample prompt: "Create a red material called 'EnemyMaterial' using the URP Lit shader"
-
assign_material: Assigns a material to a GameObject's Renderer componentExample prompt: "Assign the 'EnemyMaterial' to the Enemy GameObject"
-
modify_material: Modifies properties of an existing material (colors, floats, textures)Example prompt: "Change the color of 'EnemyMaterial' to blue and set metallic to 0.8"
-
get_material_info: Gets detailed information about a material including shader and all propertiesExample prompt: "Show me all the properties of the 'PlayerMaterial'"
-
batch_execute: Executes multiple tool operations in a single batch request, reducing round-trips and enabling atomic operations with optional rollback on failureExample prompt: "Create 10 empty GameObjects named Enemy_1 through Enemy_10 in a single batch operation"
MCP App tools
-
show_unity_dashboard: Opens the Unity dashboard MCP App in VS Code (requires VS Code 1.109+)Example prompt: "Open the Unity dashboard app"
-
get_play_mode_status: Gets Unity play mode status (isPlaying, isPaused)Example prompt: "Is Unity in play mode?"
-
set_play_mode_status: Controls Unity play mode with actions: 'play' (start or unpause), 'pause' (toggle pause), 'stop' (exit play mode), 'step' (advance one frame)Example prompt: "Start Unity play mode" or "Pause the game" or "Step forward one frame"
MCP Server Resources
-
unity://menu-items: Retrieves a list of all available menu items in the Unity Editor to facilitateexecute_menu_itemtoolExample prompt: "Show me all available menu items related to GameObject creation"
-
unity://scenes-hierarchy: Retrieves a list of all game objects in the current Unity scene hierarchyExample prompt: "Show me the current scenes hierarchy structure"
-
unity://gameobject/{id}: Retrieves detailed information about a specific GameObject by instance ID or object path in the scene hierarchy, including all GameObject components with it's serialized properties and fieldsExample prompt: "Get me detailed information about the Player GameObject"
-
unity://logs: Retrieves a list of all logs from the Unity consoleExample prompt: "Show me the recent error messages from the Unity console"
-
unity://packages: Retrieves information about installed and available packages from the Unity Package ManagerExample prompt: "List all the packages currently installed in my Unity project"
-
unity://assets: Retrieves information about assets in the Unity Asset DatabaseExample prompt: "Find all texture assets in my project"
-
unity://tests/{testMode}: Retrieves information about tests in the Unity Test RunnerExample prompt: "List all available tests in my Unity project"
-
ui://unity-dashboard: Unity dashboard MCP App UIExample prompt: "Open the Unity dashboard app"
MCP Server Prompts
Prompts are pre-configured templates that provide guided workflows for common Unity tasks. They help AI assistants understand the proper sequence of operations and available tools for specific scenarios.
-
unity_dashboard: Opens the Unity dashboard MCP app with contextual information about its featuresUsage: In your AI assistant, use the prompt "unity_dashboard" to get guided access to the Unity dashboard
-
gameobject_handling_strategy: Provides a structured workflow for working with GameObjects, including which tools and resources to useUsage: In your AI assistant, use the prompt "gameobject
Truncated for display — read the full file on GitHub.
Related Skills
taste-skill
111.0kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
Agent-Reach
109.5kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
79.0kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.8kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
