Integration between Model Context Protocol (MCP) and Unity, allowing AI assistants to understand and interact with Unity projects in real-time.
UnityMCPIntegration MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. Integration between Model Context Protocol (MCP) and Unity, 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.
Once UnityMCPIntegration is connected, these are the calls the assistant has available:
get_editor_state — Get comprehensive information about the Unity project and editor stateget_current_scene_info — Get detailed information about the current sceneget_game_objects_info — Get information about specific GameObjects in the sceneexecute_editor_command — Execute C# code directly in the Unity Editorget_logs — Retrieve and filter Unity console logsverify_connection — Check if there's an active connection to Unity Editorread_file — Read contents of a file in your Unity projectread_multiple_files — Read multiple files at oncewrite_file — Create or overwrite a file with new contentedit_file — Make targeted edits to existing files with diff previewlist_directory — Get a listing of files and folders in a directorydirectory_tree — Get a hierarchical view of directories and filesYou will need one environment variable: MCP_WEBSOCKET_PORT. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
@smithery/cli on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.
Among the file and storage access options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. UnityMCPIntegration's toolset — get_editor_state, get_current_scene_info, get_game_objects_info and 11 more — is a fair guide to whether it matches your workflow. It is maintained by quazaai; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| get_editor_state | Get comprehensive information about the Unity project and editor state |
| get_current_scene_info | Get detailed information about the current scene |
| get_game_objects_info | Get information about specific GameObjects in the scene |
| execute_editor_command | Execute C# code directly in the Unity Editor |
| get_logs | Retrieve and filter Unity console logs |
| verify_connection | Check if there's an active connection to Unity Editor |
| read_file | Read contents of a file in your Unity project |
| read_multiple_files | Read multiple files at once |
| write_file | Create or overwrite a file with new content |
| edit_file | Make targeted edits to existing files with diff preview |
| list_directory | Get a listing of files and folders in a directory |
| directory_tree | Get a hierarchical view of directories and files |
| search_files | Find files matching a search pattern |
| get_file_info | Get metadata about a specific file or directory |
{
"mcpServers": {
"unitymcpintegration": {
"command": "npx",
"args": ["-y", "@smithery/cli"],
"env": {
"MCP_WEBSOCKET_PORT": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| MCP_WEBSOCKET_PORT | Configuration value read at startup. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.