MCP ConfigsMay 12, 2026·2 min read

Unity MCP — Control Unity Editor from Agents

Unity MCP bridges MCP clients to your Unity Editor so assistants can manage scenes, assets, scripts, and builds via tools instead of manual clicking.

Agent ready

Safe staging for this asset

This asset is staged first. The copied prompt tells the agent to inspect the staged files and ask before activating scripts, MCP config, or global config.

Stage only · 17/100Policy: stage
Agent surface
Any MCP/CLI agent
Kind
Mcp Config
Install
Stage only
Trust
Trust: Established
Entrypoint
Asset
Safe staging command
npx -y tokrepo@latest install 019d30ca-e0c5-4eb2-a0f6-1d3ff9711351 --target codex

Stages files first; activation requires review of the staged README and plan.

Intro

Unity MCP bridges MCP clients to your Unity Editor so assistants can manage scenes, assets, scripts, and builds via tools instead of manual clicking.

  • Best for: Unity teams who want LLMs to automate editor workflows (scene edits, package management, build pipelines)
  • Works with: Unity 2021.3+ editor, Python 3.10+, MCP clients (Claude Desktop/Code, Cursor, VS Code, etc.)
  • Setup time: 20 minutes

Practical Notes

  • Release notes in README show versioned tool growth (for example v9.6.1 adds build tooling and multi-scene ops)
  • Performance tip: README claims batch_execute can be 10–100× faster than individual calls

Treat Unity as an API, Not a GUI

The win is not “an LLM can click buttons” — it’s that your editor workflow becomes a repeatable tool contract:

  • Use batch_execute for multi-step operations so you get one atomic-ish plan and fewer round-trips.
  • Route requests to the correct Unity instance when you have multiple editors open.
  • Keep transports local-first (loopback) unless you truly need LAN binding.

Once connected, you can standardize tasks:

  • “Create a new scene from template, add a prefab, set lighting defaults”
  • “Scan packages, add a scoped registry, then validate compile”
  • “Build a player with a known profile and export artifacts”

That makes AI-assisted Unity work auditable: every change is a tool call you can reproduce.

FAQ

Q: Do I need Python? A: Yes. The README lists Python 3.10+ and uv as requirements for the bridge/server pieces.

Q: Which transport should I start with? A: HTTP localhost is the default and works with many clients; stdio is also available.

Q: How do I speed up multi-step edits? A: Use batch_execute (README claims 10–100× faster).

🙏

Source & Thanks

Source: https://github.com/CoplayDev/unity-mcp > License: MIT > GitHub stars: 9,486 · forks: 1,074

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets