FunPlay Unity
The Most Advanced MCP Server for Unity Editor with execute_code, prompts/resources, input simulation, screenshots, and play mode automation.
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
Maintainer
Works with
Installation
Manual Installation
npx funplay-unityConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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"
}
}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.
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/"
}
}
}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.
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.
FunPlay Unity Alternatives — Similar Developer Tools Servers
Looking for alternatives to FunPlay Unity? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
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.
Set Up FunPlay Unity in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.