Funplay Unity MCP
Lets your AI agent work inside a running Unity Editor: build scenes, write scripts, simulate input and take screenshots.
285 stars on GitHubby FunplayAILicense MITUpdated 21 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add funplay-unity -- dnx funplay.unity.mcp --yes
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Build a snake game with a 10x10 grid, food spawning, score UI and a game-over screen.
Run the game in play mode, press the jump key and take a screenshot.
What it is
Funplay MCP for Unity is an MIT-licensed server that runs inside the Unity Editor and lets AI assistants operate your open project. The agent can create scenes, generate scripts, set up UI and check the result while the game runs. It works with clients such as Claude Code, Cursor, Codex and VS Code Copilot.
What it can do
execute_code: run code inside the Unity Editor- Scene creation and editor automation
- Script generation
- Input simulation
- Screenshots
- Play mode automation
- Prompts and resources for the project
When to use
- βΊWhen you want an agent to build a small game or scene in Unity from one description
- βΊWhen you need an agent to test your game in play mode with simulated input and screenshots
- βΊWhen you want to configure several Unity projects at once, each with its own port
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
unity-build-pipelineLets your agent set up Unity player builds, choose scenes and scripting backends, shrink build size and run repeatable command-line builds.unity-ai-game-creatorHelps your agent create complete Unity games from ideas. It generates visual elements, scene structures, and sounds, guiding development step-by-step.unity-input-systemGives your agent a way to set up Unity player controls with the Input System package, using action maps and support for gamepad, keyboard and touch.Frequently asked questions
Is it free and open source?
Yes. The readme says it is MIT licensed.
Which AI tools does it work with?
Claude Code, Cursor, Kimi Code, LM Studio, Windsurf, Codex, VS Code Copilot and others. A one-click Configure button in the Funplay MCP Server window writes the client settings for you.
How does it connect?
The Editor runs a local HTTP server at 127.0.0.1 on a port derived from the project path, so two projects do not clash. The window shows the exact URL.
Can I control which tools are exposed?
Yes. The Funplay menu has a Tool Exposure window for the core and full tool sets, and MCP Settings for execute_code safety defaults.
What about script recompiles?
Direct in-process HTTP is the default. An experimental Broker Mode keeps the connection across script recompiles and Play Mode domain reloads.
Does it install project skills?
Yes. Configure + Skills can install the built-in unity-mcp-workflow and unity-ui-composition skills for supported clients.
If it does not work
- βΊIf your client cannot connect, copy the exact URL and port from the Funplay MCP Server window rather than from another Editor.
- βΊIf the window reports a fallback port, click Use Per-Project Port or Pin Current Port and wait for the server to restart before configuring.
- βΊAfter upgrading, run Reconfigure MCP + Skills and reconnect your client.
5 new skills a week. 1 minute to read.