MCP server for Unity integration, allowing AI assistants to understand and interact with Unity projects in real-time. Provides access to scene hierarchy, project settings, and code execution in the Unity Editor.
Unity MCP Server has 15 tools with consistent naming patterns (all verb_noun) and complete input schemas. However, descriptions are frequently generic or lack action guidance. Parameter descriptions are sparse or missing entirely. Output schemas are not documented in the source. Error handling is minimal. Security considerations around the execute_editor_command tool (IRREVERSIBLE risk) are not adequately addressed with confirmation patterns. No tool annotations (readOnlyHint/destructiveHint) despite clear risk levels.
Edit a file by replacing specific text segments with new content
Execute C# code directly in the Unity Editor - allows full flexibility including custom namespaces and multiple classes
Find all assets of a specific type in the Unity project
Retrieve information about the current scene in Unity Editor with configurable detail level
Get a recursive tree view of a directory structure in the Unity project
Get the current Unity Editor state including scene information, selected objects, and play mode status
Get detailed information about a specific file
execute_editor_command lacks confirmation/dry-run pattern despite IRREVERSIBLE risk. No confirmation_request or dry-run support documented. LLM can execute arbitrary C# code with no safeguard.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) despite explicit risk labels in tool metadata. Agents cannot distinguish safe reads from destructive writes without parsing descriptions.
Output schemas not documented in source code. No visible response type definitions for any tool. LLMs cannot predict what fields to expect or plan downstream tool composition.
Parameter descriptions are minimal or absent. Examples: verify_connection and get_editor_state accept no parameters but lack explicit empty parameter documentation. Most other tools have minimal 1-2 sentence descriptions per param.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | C | 60 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 0 | - | v1 |
Retrieve detailed information about specific GameObjects in the current scene
Retrieve Unity Editor logs with filtering options
List the contents of a directory in the Unity project
Read the contents of a file from the Unity project
Read the contents of multiple files from the Unity project
Search for files matching a pattern within the Unity project
Verify that the MCP server has an active connection to Unity Editor
Write or create a file in the Unity project
execute_editor_command accepts free-form C# code string with minimal constraints. No sandboxing, no execution limits, no timeout handling, no rollback capability. Agents can hang the Unity Editor or corrupt the project.
Path handling in read_file and write_file relies on client-provided paths with attempt to validate against assetRootPath, but no encryption/secrets filtering in responses. Agents can read sensitive project files (API keys in config, credentials in build scripts).
No pagination parameters or result limits visible in list_directory, search_files, get_directory_tree. Large directory trees could return thousands of entries, exhausting context window.
Tool descriptions do not explain when/why to use each variant. Example: get_current_scene_info vs get_editor_state both retrieve scene data, what's the difference? When should an agent pick one over the other?
Error handling delegated to caller (no recovery guidance visible). If execute_editor_command fails with a C# syntax error, what should the agent do? Retry with a different script? Ask for help?
No documented constraints on code execution in execute_editor_command. Can the LLM call Unity APIs that require Editor context (EditorApplication.isPlaying)? Can it call asset import APIs? Which namespaces are available?