AI-driven Unity scene builder using Cline and Unity-MCP
From README links · today
Let an AI agent edit Unity scenes, assets, and scripts through MCP tools.
What they did
They connected an AI coding agent (Cline) to the Unity Editor through the Unity-MCP package, which exposes editor and runtime operations as MCP tools. Instead of hand-writing boilerplate, they asked the agent to scaffold a small gameplay prototype: create a new scene, add a ground plane and a player capsule with a Rigidbody, wire up a simple movement script, and then enter play mode to sanity-check behavior. The agent used Unity-MCP tools to inspect the project hierarchy, create and modify GameObjects and components, generate C# scripts, and trigger editor operations, iterating on compile errors until the scene ran.
How it went
The prototype scene came together quickly with far less manual clicking, and the agent could self-correct compile errors by reading console output. Polish level is prototype-grade: the movement script is basic and the scene is not production-ready, but it demonstrates a fast loop from prompt to playable scene.
Worth knowing
Requires Unity 2022.3+ and the Unity-MCP package installed via OpenUPM, plus an MCP-capable client configured to launch the server. The agent can make destructive editor changes, so version control and scene backups matter. Complex gameplay logic still needs human review, and tool coverage depends on the installed package version.
Wiring
Install the com.ivanmurzak.unity.mcp package via OpenUPM (or the unity-mcp-cli), open the Unity project so the MCP server starts, then configure Cline's MCP settings to point at the Unity-MCP server endpoint. Order: package install → Unity editor running → MCP client config → agent session. The agent then calls Unity-MCP tools for scene/asset/script operations and reads results back.
Try it yourself
Set up Unity-MCP in this Unity project and connect it to Cline. Then create a new scene called Prototype with a ground plane, a player capsule with a Rigidbody and a basic WASD movement script, and verify it compiles and runs in play mode.
Tools in this stack
Run this stack
Install the stack into this project. It writes AGENTS.md and the manifest, merges the MCP servers into .mcp.json, and — with --yes — runs the tool installs.
npx runchr install runchr/stack-cline-and-ivanmurzak-unity-mcp-and-kilocodecurl -s https://api.runchr.com/api/recipes/runchr/stack-cline-and-ivanmurzak-unity-mcp-and-kilocode/manifestThis stack has no prompt yet. You get the tools and the wiring, not the prompt.
The manifest is also at api.runchr.com/api/recipes/runchr/stack-cline-and-ivanmurzak-unity-mcp-and-kilocode/manifest.