MCP Unity

Agent skill by CoderGamester · for Cursor, Claude Code, Codex, GitHub Copilot, Windsurf, Google Antigravity and OpenCode

A free MIT Unity package and Node.js MCP server that lets Cursor, Claude Code, Codex, Copilot and other agents work inside the Unity Editor: edit GameObjects and components, build scenes and prefabs, run tests and read console logs.

  • Engine: Unity 6+
  • 7 agents
  • License: MIT
  • Free
  • 2k stars

What it does

MCP Unity is a Unity Editor package paired with a small Node.js server that speaks the Model Context Protocol. Once it is running, an AI coding agent can work directly in your open Unity project instead of only editing script files.

Its tools cover the everyday editor jobs: selecting, creating and updating GameObjects, adding and changing components, creating, loading, saving and deleting scenes, making prefabs, adding assets to a scene, running menu items, recompiling scripts, running Test Runner tests and reading console logs. It also exposes project information such as the scene hierarchy and installed packages, and can add Unity's package cache to VS Code-style editors so the agent understands your dependencies.

You add it in Unity's Package Manager with "Add package from git URL" using the repo address, then use the package's Server Window to write the config for your agent. It needs Unity 6 or later and Node.js 18 or later. Installing Unity packages through the agent is switched off by default for safety.

Features

  • Create and edit GameObjects and components from chat
  • Create, load, save and delete scenes and prefabs
  • Run Unity Test Runner tests and read console logs
  • One-click config writing for common agents
  • Package installs through the agent are off by default

Limits

  • Needs Unity 6 or later and Node.js 18+
  • No one-line install: you add it through Package Manager with a Git URL
  • The agent must support MCP

Similar skills and which to pick

Browse all 74 agent skills