xuunity-mcp
XUUnity MCP is a lightweight Unity MCP server for safe Unity Editor automation.
Install / Use
claude mcp add FoxsterDev -- npx -y github:FoxsterDev/xuunity-mcpIf 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
AutomationSupported Platforms
Our assessment of xuunity-mcp
xuunity-mcp scores 71/100 on our quality scale, 2652nd of 2,894 Automation skills we index.
Its MCP Server is 60 KB long, well organised into 33 sections with 33 code examples: long enough that it reads more like full documentation than a focused instruction file, which agents can find harder to follow.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 5 days ago, so xuunity-mcp is actively maintained.
- Our last check on 2026-09-20 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 87/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit โ read the skill file before letting an agent act on it.
xuunity-mcp compared with similar skills
All 4 of these similar skills score higher than xuunity-mcp; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| xuunity-mcp (this skill)by FoxsterDev | 71 | 3 | 5d ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 101.9k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 77.7k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.6k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 89.6k | 2d ago | MCP Server |
Frequently asked questions
- How do I install xuunity-mcp?
- Run
claude mcp add FoxsterDev -- npx -y github:FoxsterDev/xuunity-mcp. The install tabs above show the steps for each supported agent. - Which AI agents does xuunity-mcp work with?
- It is written for Claude Code, Claude Desktop, Cursor and OpenAI Codex, as a MCP Server file. Other agents that read the same format can often use it too.
- Is xuunity-mcp safe to use?
- It is MIT-licensed and scores 87/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 xuunity-mcp still maintained?
- The repository was last updated 5 days ago, so xuunity-mcp is actively maintained.
Skill content
View source on GitHubRecovery and Project Automation
Use --help for the complete command list, including required arguments.
Recovery guidance should carry a literal next command; inspect its result before
retrying the original operation. See Agent Workflows
for evidence selection, recovery prerequisites and build-artifact handoff checks.
The bridge ticks from EditorApplication.update. Long work run inline in
[InitializeOnLoad] blocks its heartbeat and request processing. Use
project-hook-scaffold and project-action-invoke for project-owned actions,
and supported batch/build operations for builds. Check background execution and
actual progress before assuming a deferred callback cannot run.
Why Use It
Use XUUnity MCP when you want a local-first, validation-first Unity MCP for safe editor automation, not broad unrestricted editor mutation.
- compile checks without switching the active Unity build target
- EditMode and PlayMode tests with normalized result accounting
- scene snapshots, scene assertions, console tail, and Game View screenshots
- bounded scenario validation and request-journal recovery after editor reloads
- same-host multi-project routing for workstations with multiple Unity projects
- editor-only package, disabled by default, with no player-build footprint by default
Search positioning keywords for this repo:
xuunity mcpunity mcplightweight unity mcpsafe unity mcpvalidation-first unity mcpunity mcp for compile checks and tests
Quick Start
Choose one path first:
- Agent Quick Start for AI-driven setup from a short prompt
- Manual Install for direct human setup
- Verify Existing Install when the helper or client wiring may already exist
Prerequisites
- Unity 2021.3 LTS+; the current release has live validation on Unity 2021.3, 2022.3, and 6000.x. See Status.
- Python 3.10+
- one MCP client: Claude Code, Claude Desktop, Cursor, Rider, Windsurf, Antigravity IDE, or a Codex-style agent with the Codex visual setup guide
Before running the helper, verify which Python it will use:
command -v python3
python3 --version
If your default python3 is older than 3.10, set PYTHON explicitly before
running run_installed_or_refresh_xuunity_mcp.sh, run.sh, or
xuunity_light_unity_mcp.sh.
On native Windows (PowerShell or cmd.exe):
py -3 --version
# or: python --version
The .cmd and .ps1 launcher flavors probe py, then python, then
python3, reject the Microsoft Store stub interpreter, and require Python
3.10+. Set PYTHON to a full python.exe path when the probe picks the wrong
interpreter.
Important:
- UI auto-review, sandbox auto-approval, or tool-level approval is not the same thing as user approval of setup mutations.
- An existing host-tools directory may be reused, but its helper files must not
be executed until their version and
.source_roothave been compared with the requested release. Refresh stale helper files from the approved release source first; file existence alone does not mean the helper is current.
Agent Quick Start
This section is the fast-path for AI agents that need to install MCP into a new repo and run the first MCP command or EditMode tests correctly.
Agent Defaults
Use this contract when the user gives a short request such as:
[!IMPORTANT] Replace
/path/to/UnityProjectwith the absolute path to your Unity project before sending the prompt. Example shape for macOS/Linux:/absolute/path/to/MyGame. On Windows, use an absolute drive-letter or UNC path.
Set up XUUnity Light Unity MCP release v0.3.83 from the canonical repository
https://github.com/FoxsterDev/xuunity-mcp for /path/to/UnityProject, follow
https://github.com/FoxsterDev/xuunity-mcp/blob/v0.3.83/README.md. Before executing
an existing helper, compare its version and .source_root with v0.3.83 and refresh
stale files from that release. On native Windows, migrate only the XUUnity client
block to cmd.exe plus run_installed_or_refresh_xuunity_mcp.cmd. After any helper
or client-config change, restart or refresh the client, list the live MCP tools,
and run unity_status_summary. Require mcp_server_info.version=0.3.83 in that live
result. Only then run EditMode tests.
Agent defaults:
- treat the current host client that is executing the request as the default MCP wiring target unless the user explicitly names a different client
- treat the explicitly requested Unity project path as the only default setup target
- prefer Git UPM package mode unless the user explicitly asks for local package development
- reuse an existing helper install directory only after comparing its installed
version and
.source_rootwith the requested release; refresh stale files before executing the helper - on native Windows, require
cmd.exeplusrun_installed_or_refresh_xuunity_mcp.cmd; an existingbash/run.shclient block requires an approved migration, not reuse
Required Sequence
- Read the release-pinned
https://github.com/FoxsterDev/xuunity-mcp/blob/v0.3.83/README.md, itsINSTALL.md, and the matchingdocs/clients/*guide for the current host client. - Run a non-mutating preflight:
- confirm Python 3.10+
- confirm Unity project structure
- detect whether the request targets one Unity project or an entire workspace
- compare the requested package release with the current manifest pin
- inspect the installed helper version,
.source_root, and refresh launcher before executing any existing helper - on native Windows, inspect the client block for the required native
.cmdlauncher - identify whether user-level client config such as
~/.codex/config.tomlor~/.claude.jsonwould change
- Produce a setup plan before mutating files:
- for one requested Unity project, use
setup-plan --project-root "<UNITY_PROJECT_ROOT>" - for a workspace or nested hub, use
setup-plan --workspace-root "<WORKSPACE_ROOT>" --recursive
- for one requested Unity project, use
- Show a short preflight review and wait for approval before any mutation, clone, installer run, manifest change, or user-level client config update.
- After approval, apply setup only to the approved project roots.
- Run
validate-setup. - Run
ensure-ready --open-editorwhen Unity is not already ready and wait for it to finish before checking status. Record whether the result reportsopened_by_host: true.ensure-ready --open-editoris the default launch path: an editor launched any other way splits the log lane for the whole session โ the host default Editor.log path goes stale, and everyunity_console_grep/unity_console_tailcall then needs an expliciteditorLogPath(use thebridge_state.editor_log_pathvalue).unity_status_summaryreports this up front aseditor_launch_lane: not_opened_by_host. - Run the first status check:
- use
request-status-summarywhen the current client session cannot see newly wired MCP tools yet - use
unity_status_summaryas the first live MCP-tool smoke check after the client has loaded the server
- use
- After any helper or client-config change, restart or refresh the client,
confirm that
xuunity_light_unityappears in its MCP server list, list the live MCP tools, and rununity_status_summary; requiremcp_server_info.version=0.3.83. Helper-only validation does not prove that the current MCP client session is connected. - When the user requested tests, run EditMode tests only after the live status summary is healthy.
- If
ensure-ready --open-editoropened Unity for this run (opened_by_host: true), restore editor state before the final report:xuunity_light_unity_mcp.sh restore-editor-state --project-root "<UNITY_PROJECT_ROOT>"xuunity_light_unity_mcp.sh verify-editor-closed --project-root "<UNITY_PROJECT_ROOT>" --timeout-ms 0
- Finish with:
- files changed
- commands run
- readiness result
- first MCP command result
- EditMode test result
- whether a client restart is still required
- whether Unity was restored/closed when opened by the helper
Preflight Review Checklist
- detected current client
- intended client wiring target
- requested Unity project root
- any additional discovered Unity projects
- requested package release and current manifest pin
- installed helper version, source root, and refresh requirement
- current client launcher flavor
- whether setup will modify user-level client config
- files planned for mutation
- commands planned after approval
- whether the client must restart or refresh its MCP server list afterward
Required Preflight Review Template
Every agent should show a short review block like this before setup-apply:
Preflight review
- Current client: <detected client>
- Wiring target: <target client>
- Unity project root: <approved project root>
- Additional discovered
Truncated for display โ read the full file on GitHub.
Related Skills
Agent-Reach
101.9kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu โ one CLI, zero API fees.
headroom
77.7kCompress 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.6kOpen-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.
Scrapling
89.6k๐ท๏ธ A Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
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.
