Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”“ No API keyProgramming

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

Unity with the Funplay package installed from the Git URL (or OpenUPM), and the server started from the Funplay menu in the Editor.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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.