unityctl MCP server and CLI for controlling the Unity Editor

unityctl MCP server and CLI for controlling the Unity Editor

unityctl•byjason-hub-star

An MCP server paired with a .NET CLI that lets AI agents build Unity scenes, write C# scripts, validate projects and ship games with verification and rollback.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Provides 12 MCP tools with on-demand schema loading for 171 canonical Unity commands.
  • •Creates and manipulates Unity objects, components and scenes through CLI/MCP commands.
  • •Supports a closed-loop automation cycle where agents verify, diagnose and recover from changes.
  • •Offers rollback of failed batch operations and undo for safe experimentation.

BEST FOR

  • •AI agents that need to build and edit Unity scenes programmatically.
  • •Headless CI/CD pipelines that validate and build Unity projects without an open GUI.

ABOUT UNITYCTL

unityctl MCP server and CLI for controlling the Unity Editor is cataloged as an MCP server attributed to jason-hub-star. An MCP server paired with a .NET CLI that lets AI agents build Unity scenes, write C# scripts, validate projects and ship games with verification and rollback. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for unityctl MCP server and CLI for controlling the Unity Editor are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How does unityctl keep MCP prompts small?

It exposes 12 MCP tools and loads canonical command schemas on demand rather than sending all schemas every turn.

What happens if an agent makes a bad change?

Batch execution can roll back on failure and an undo command is available, so mistakes need not be permanent.

Upstream README

View this exact version on GitHub

README.md · 51b99280c04f · Fetched 2026-11-13 09:56:30 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

unityctl

English | 한국어

NuGet NuGet CI Unity Integration License: MIT

The execution layer for AI-driven game development.

Give your AI agent 179 commands to build Unity scenes, write C# scripts, validate builds, and ship games — with automatic rollback when things go wrong.

179 CLI commands · 12 MCP tools · 966 PR .NET tests · Windows / macOS / Linux

Live unityctl session: status, scene hierarchy, mesh create-primitive, gameobject find, screenshot capture — every response written to out/ as an artifact

Unrehearsed session against a live Unity 6000.3.16f1 Editor — every command answers in structured JSON and drops an artifact in out/.

Benchmarked head-to-head against the official Unity CLI (1.0.0-beta.2 + com.unity.pipeline) on the same editor session — faster round-trips, smaller responses, and every measured gap absorbed the same day. See the benchmark.

Measured (same editor, same tasks)unityctl v0.6.0Official Unity CLI
Scene hierarchy read286 ms / 919 B617 ms / 1,602 B
Play enter → console → stop965 ms2,588 ms
Multi-statement C# eval1,755 ms (opt-in gate)2,634 ms (always on)
Domain-reload survival (unattended)313–516 ms739 ms
Unattended test run1 passed (4.2 s)false success — 0 tests ran
Wrong argumentsexplicit failure + candidate listsilently ignored, returns success
Screenshot with no camera in scenecaptures the viewfails

Quality gates: every PR runs the .NET Shared/Core/Cli/Mcp test suites on Windows, macOS, and Linux. Unity Editor-dependent validation is separated into the Unity Integration workflow, with init, sample-project doctor, check, scene hierarchy, player-settings set/get, and workflow verify evidence uploaded from nightly/manual runs. Unity Integration requires either a UNITY_LICENSE or UNITY_SERIAL GitHub secret.

Contributors: see CONTRIBUTING.md for the test trust checklist, flaky-test policy, command sync checklist, and Unity live-validation split.


The Problem

AI agents can write code, but they can't build games — because Unity has no programmatic interface for scene editing, asset management, or project validation.

Existing Unity MCP servers try to fix this, but they create new problems for AI agents:

Pain PointImpact on AI Agent
45 KB+ schemas loaded every turnWastes tokens on tool definitions instead of reasoning
No validation feedbackAgent can't tell if the scene is broken after changes
No rollbackOne bad command corrupts the project state
WebSocket drops on Play ModeAgent loses connection during Unity's Domain Reload
Editor must be openCI/CD pipelines can't run without a GUI

The Solution

unityctl is a .NET CLI + MCP server that turns Unity Editor into a programmable API.

For AI agents, this means a closed-loop automation cycle — the agent doesn't just execute commands, it can verify results, diagnose failures, and recover from mistakes:

Plan - Execute - Verify - Diagnose Loop

Other tools give agents hands. unityctl gives agents hands, eyes, and a safety net.


Why unityctl for AI Agents?

unityctlExisting Unity MCP
Schema overhead5 KB per session (9x smaller)45 KB+ loaded every turn
Validation loopproject validate + scene diff + screenshot captureAgent flies blind
Error recoveryscript get-errors with file/line/columnRaw console output or nothing
Safe experimentationbatch execute --rollbackOnFailure + undoNo rollback — mistakes are permanent
Connection stabilityNamed Pipe — survives Domain ReloadWebSocket drops, reconnect needed
CI/CDcheck / test / build --dry-run work headlessEditor must be open
Diagnosticsdoctor classifies failures + suggests next steps"Connection failed"
Commands179 (read + write + validate + diagnose)~34-200 tools
Audit trailNDJSON flight recorder for every commandNo history
RuntimeNative .NET — no Python/TS bridgeBridge overhead
Installdotnet tool install -g unityctlNode.js + npm + port config
LicenseMITVaries

Token Efficiency

AI agent costs are dominated by tool schemas sent every turn. unityctl uses on-demand schema loading:

Measured token cost: unityctl via Bash = 0 overhead, 6.8x cheaper than CoplayDev MCP

The CLI exposes 179 entry points, including convenience wrappers. The 12 MCP tools keep prompts small by loading 171 canonical command schemas on demand through unityctl_query, unityctl_run, and unityctl_schema.


Install

Standalone binary — no .NET SDK required (recommended):

# macOS (Apple Silicon) — swap in unityctl-osx-x64 / unityctl-linux-x64 as needed
curl -L https://github.com/Jason-hub-star/unityctl/releases/latest/download/unityctl-osx-arm64.tar.gz | tar xz
./unityctl --version

Windows: download unityctl-win-x64.zip from Releases and unzip. Each archive contains a self-contained unityctl + unityctl-mcp executable and the embedded Unity plugin template.

Or via .NET tool (requires .NET 10 SDK):

dotnet tool install -g unityctl
dotnet tool install -g unityctl-mcp

Optional agent workflow skill for Claude Code and Codex:

npx skills add Jason-hub-star/unityctl \
  --skill unityctl-workflows \
  -a claude-code -a codex

The skill teaches agents to discover the live command surface, target the right Unity project, and close every edit with structured readback and verification.

Bootstrap notes:

  • --source accepts a local Unityctl.Plugin folder or a Git URL: https://github.com/Jason-hub-star/unityctl.git?path=/src/Unityctl.Plugin#v0.6.6

Quick Start

# 1. Install the Editor plugin
unityctl init --project /path/to/project \
  --source "https://github.com/Jason-hub-star/unityctl.git?path=/src/Unityctl.Plugin#v0.6.6"

# 2. Open the project in Unity Editor, then verify connectivity
unityctl ping --project /path/to/project --json
unityctl status --project /path/to/project --json

# 3. Start building
unityctl gameobject create --name "Player" --project /path/to/project
unityctl component add --id "<PlayerId>" --type "Rigidbody" --project /path/to/project
unityctl scene save --project /path/to/project

# 4. Validate
unityctl project validate --project /path/to/project --json

# 5. Build
unityctl build --project /path/to/project --dry-run    # 13 preflight checks

MCP Setup (AI Agents)

One command per client — it merges into the existing config instead of replacing it:

unityctl mcp install --client claude-code            # or cursor / codex
unityctl mcp install --client vscode --project .     # VS Code is workspace-scoped
unityctl mcp install --client cursor --dry-run       # preview, writes nothing

Or add it by hand:

{
  "mcpServers": {
    "unityctl": {
      "command": "unityctl-mcp"
    }
  }
}

Documentation

Changelog

See GitHub Releases for version history.

License

MIT — see LICENSE

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for unityctl MCP server and CLI for controlling the Unity Editor from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/unityctl)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools