FunPlay Unity

v0.3.7Developer Toolsstable

The Most Advanced MCP Server for Unity Editor with execute_code, prompts/resources, input simulation, screenshots, and play mode automation.

aiai-toolsclaude-codecodexcursor
Share:
66
Stars
0
Downloads
0
Weekly
0/5

What is FunPlay Unity?

FunPlay Unity is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to most advanced mcp server for unity editor with execute_code, prompts/resources, input simulation, screenshots, and play mode automation.

The Most Advanced MCP Server for Unity Editor with execute_code, prompts/resources, input simulation, screenshots, and play mode automation.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • The Most Advanced MCP Server for Unity Editor with execute_c

Use Cases

Advanced Unity Editor automation via MCP
Code execution, screenshots, and play mode control
FunplayAI

Maintainer

LicenseMIT
Languagec#
Versionv0.3.7
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx funplay-unity

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use FunPlay Unity

FunPlay Unity MCP Server is a Unity Editor integration that exposes 91 tools across 20 modules to AI coding assistants, enabling them to create GameObjects, manage scenes, run and monitor play mode, capture screenshots, simulate input, and execute arbitrary C# code directly inside your running Unity project. The server runs as a Unity package on a local HTTP endpoint, meaning any MCP-compatible client — Claude Code, Cursor, GitHub Copilot, VS Code — connects to it without any cloud dependency. It is designed for game developers who want to accelerate iteration by letting AI agents perform Editor operations end-to-end.

Prerequisites

  • Unity 2021.3 LTS or later installed with a project open in the Unity Editor
  • An MCP-compatible client such as Claude Code, Claude Desktop, or Cursor
  • OpenUPM CLI (optional, for command-line package installation) or Unity Package Manager access
  • The local HTTP endpoint port 8765 available and not blocked by a firewall
1

Install the FunPlay package into your Unity project

Add the package via OpenUPM CLI, the Unity Package Manager UPM Git URL, or by editing Packages/manifest.json directly.

# Option A: OpenUPM CLI
openupm add com.gamebooom.unity.mcp

# Option B: Edit Packages/manifest.json
{
  "scopedRegistries": [
    {
      "name": "OpenUPM",
      "url": "https://package.openupm.com",
      "scopes": ["com.gamebooom"]
    }
  ],
  "dependencies": {
    "com.gamebooom.unity.mcp": "0.4.3"
  }
}
2

Start the MCP server from the Unity Editor menu

After the package imports, go to Funplay → MCP Server in the Unity menu bar to open the server control panel. Click Start Server. The server listens on http://127.0.0.1:8765/ by default. Settings are saved to UserSettings/FunplayMcpSettings.json.

3

Configure your MCP client to connect

Add the FunPlay server to your MCP client config using HTTP transport. The server auto-exposes its tools over this URL; no extra environment variables are needed.

{
  "mcpServers": {
    "funplay": {
      "type": "http",
      "url": "http://127.0.0.1:8765/"
    }
  }
}
4

Select the tool profile in Unity

From the Funplay MCP Server panel, choose your tool profile. 'Core' exposes 29 high-signal tools. 'Full' unlocks all 91 tools across all modules including advanced animation, UI, and performance analysis.

5

Verify the connection from your AI client

Ask Claude or your AI assistant to list the available Unity tools or to take a screenshot of the current Scene view. A successful response confirms the MCP connection is working.

FunPlay Unity Examples

Client configuration

Claude Code / Claude Desktop config using HTTP transport to connect to the locally-running FunPlay Unity MCP server.

{
  "mcpServers": {
    "funplay": {
      "type": "http",
      "url": "http://127.0.0.1:8765/"
    }
  }
}

Prompts to try

Example Unity Editor tasks you can delegate to Claude once the FunPlay MCP server is running.

- "Create a 3D platformer level with five floating platforms and a player spawn point"
- "Take a screenshot of the current Scene view and describe what you see"
- "Add a Rigidbody component to every GameObject named 'Enemy' in the scene"
- "Enter play mode, wait 3 seconds, then exit and tell me if there were any console errors"
- "Generate a C# script that moves the player with WASD and attach it to the Player object"
- "List all assets in the Assets/Prefabs folder"

Troubleshooting FunPlay Unity

MCP client cannot reach the server at http://127.0.0.1:8765/

Make sure you clicked Start Server in the Funplay → MCP Server panel and that Unity is still running. The server only runs while the Unity Editor is open. Also check that port 8765 is not occupied by another process ('lsof -i :8765' on macOS/Linux).

execute_code returns a compilation error

The execute_code tool compiles C# in-memory via Roslyn. Ensure you are using Unity-compatible API (UnityEngine namespace). Code that references Editor-only APIs may fail in play mode. Check the Unity Console for full error details.

Package does not appear in Unity after installation

Open Window → Package Manager, switch to 'My Registries', and verify the OpenUPM scoped registry is configured correctly. If using the Git URL, check that Unity has internet access and the URL is exactly 'https://github.com/FunplayAI/funplay-unity-mcp.git'.

Frequently Asked Questions about FunPlay Unity

What is FunPlay Unity?

FunPlay Unity is a Model Context Protocol (MCP) server that most advanced mcp server for unity editor with execute_code, prompts/resources, input simulation, screenshots, and play mode automation. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install FunPlay Unity?

Follow the installation instructions on the FunPlay Unity GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with FunPlay Unity?

FunPlay Unity works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is FunPlay Unity free to use?

Yes, FunPlay Unity is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "funplay-unity": { "command": "npx", "args": ["-y", "funplay-unity"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use FunPlay Unity?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides