# Funplay Unity MCP

> Funplay Unity MCP is an open-source MCP server for developer tools. MIT-licensed Unity Editor MCP server that lets AI assistants build inside your project. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Windows, macOS, Linux
- **Repository:** https://github.com/funplayai/funplay-unity-mcp
- **MCP Registry name:** io.github.FunplayAI/funplay-unity-mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [games and play](https://ai-powered.com/categories/games-and-play)
- **Listing updated:** 2026-11-18

## About

The package runs a local MCP server inside the Unity Editor so assistants such as Claude Code, Cursor, Codex, Windsurf, LM Studio, VS Code Copilot and Kimi Code can operate your running project. The README describes tools for scene creation, script generation, runtime validation, input simulation, performance analysis and editor automation, with a prompt example of building a snake game from one sentence.

It installs through the Unity Package Manager from a Git URL or OpenUPM, then starts from the Funplay menu. Each project derives its own port so two editors do not collide, and writes require a verified project context. A one-click panel writes client configs and can install built-in project skills for Unity workflow and uGUI composition. An experimental broker mode keeps connections alive across script recompiles and domain reloads.

The registry entry also lists a NuGet stdio bridge, funplay.unity.mcp, for the local Unity server. You can edit which tools are exposed under core or full, and adjust safety defaults for the execute_code tool.

## Features

- **In-editor server:** Runs inside the Unity Editor and acts on the open project.
- **One-click client setup:** Writes config for supported AI clients and installs project skills.
- **Per-project ports:** Avoids clashes between editors open on different projects.
- **Tool exposure control:** Choose which tools the core or full sets expose.
- **Broker mode:** Experimental option to survive recompiles and Play Mode reloads.
- **uGUI skill:** Built-in guidance for responsive portrait and landscape UI.

## Good for

- Prototype a small game from a text prompt
- Generate and wire up gameplay scripts
- Validate a scene while in Play Mode
- Profile performance with an assistant

## Install

### Claude Code (Terminal)

```sh
claude mcp add funplay-unity-mcp -- dnx funplay.unity.mcp --yes
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "funplay-unity-mcp": {
      "command": "dnx",
      "args": [
        "funplay.unity.mcp",
        "--yes"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "funplay-unity-mcp": {
      "command": "dnx",
      "args": [
        "funplay.unity.mcp",
        "--yes"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "funplay-unity-mcp": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "funplay.unity.mcp",
        "--yes"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "funplay-unity-mcp": {
      "command": "dnx",
      "args": [
        "funplay.unity.mcp",
        "--yes"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "funplay-unity-mcp": {
      "command": "dnx",
      "args": [
        "funplay.unity.mcp",
        "--yes"
      ]
    }
  }
}
```

## Tools

- `execute_code`: Run code in the editor; safety defaults can be adjusted in MCP Settings.

## FAQ

### How do I install it?

Add the Git URL in Unity's Package Manager, or install from OpenUPM with openupm add com.gamebooom.unity.mcp.

### Which clients are supported?

Claude Code, Cursor, Codex, Windsurf, LM Studio, VS Code, Trae, Kiro and Kimi among others.

### Can I run several Unity projects?

Yes, each project can use its own port.

### What license?

The README says MIT.

### Is Funplay Unity MCP free?

Yes. Funplay Unity MCP is open source, so you can use and self-host it for free.

### How do I add Funplay Unity MCP to Claude Code?

Run this command in your terminal: claude mcp add funplay-unity-mcp -- dnx funplay.unity.mcp --yes

### What are the best alternatives to Funplay Unity MCP?

The closest alternatives to Funplay Unity MCP are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/funplay-unity-mcp
