A toolkit for controlling Unity Editor externally via REST API, MCP (Model Context Protocol), and CLI.
README
UniCortex
Caution
This project is still under active development. The API and command structure may change without notice.
A toolkit for controlling Unity Editor externally via REST API, MCP (Model Context Protocol), and CLI.
Primarily designed for AI agents (Claude Code, Codex CLI, etc.) to operate Unity Editor through MCP. Also provides a CLI tool for terminal-based control.
Requirements
Unity 2022.3 or later
.NET 10 SDK (for MCP server and CLI)
Installation
Add via Unity Package Manager using a Git URL:
Open Package Manager
Click the + button
Select "Add package from git URL"
Enter the following URL:
https://github.com/VeyronSakai/UniCortex.git
MCP Server Setup
Add the following MCP server configuration to your MCP client's settings file (e.g., .mcp.json, claude_desktop_config.json, etc.). Refer to your client's documentation for the exact configuration location.
Replace /path/to/your/unity/project with the absolute path of your Unity project. After saving the configuration, restart the client to apply the changes.
The MCP server reads the port number from Library/UniCortex/config.json (written automatically when Unity Editor starts) and connects to the HTTP server.
No pre-build or tool installation is required. The MCP server is built and started automatically via dotnet run.
Alternatively, you can specify the URL directly via the UNICORTEX_URL environment variable (takes priority over UNICORTEX_PROJECT_PATH):
UniCortex also provides a CLI tool for controlling Unity Editor from the terminal:
# Set the Unity project pathexport UNICORTEX_PROJECT_PATH="/path/to/your/unity/project"# Run CLI commands
dotnet run --project "${UNICORTEX_PROJECT_PATH}/Library/PackageCache/com.veyron-sakai.uni-cortex@*/Tools~/UniCortex.Cli/" -- editor ping
dotnet run --project "${UNICORTEX_PROJECT_PATH}/Library/PackageCache/com.veyron-sakai.uni-cortex@*/Tools~/UniCortex.Cli/" -- scene hierarchy
dotnet run --project "${UNICORTEX_PROJECT_PATH}/Library/PackageCache/com.veyron-sakai.uni-cortex@*/Tools~/UniCortex.Cli/" -- gameobject find "t:Camera"
# Build all projects
dotnet build Tools~/UniCortex.Core/
dotnet build Tools~/UniCortex.Mcp/
dotnet build Tools~/UniCortex.Cli/
# Run tests
UNICORTEX_PROJECT_PATH=$(pwd)/Samples~ dotnet test Tools~/UniCortex.Core.Test/
# Run MCP server
dotnet run --project Tools~/UniCortex.Mcp/
# Run CLI
dotnet run --project Tools~/UniCortex.Cli/ -- editor ping
## Changes - Update files for release @[veyronsakai-app[bot]](https://github.com/apps/veyronsakai-app) (#195) - Serialize MCP tool execution via shared async sequencer @VeyronSakai (#194) - Fix Unity editor test regressions @VeyronSakai (#192) - Fix Unity editor test regressions @VeyronSakai (#191)
High
4/20/2026
0.1.30
## Changes - Update files for release @[veyronsakai-app[bot]](https://github.com/apps/veyronsakai-app) (#190) - Expand CLI documentation and local tool support @VeyronSakai (#189) - Handle cancelled test runs cleanly @VeyronSakai (#188) - Add Project Window asset selection @VeyronSakai (#187) - Bump actions/create-github-app-token from 3.0.0 to 3.1.1 @[dependabot[bot]](https://github.com/apps/dependabot) (#185) - Ignore mcp.json @VeyronSakai (#183) - Add extension support for user-defined MCP t
High
4/18/2026
0.1.29
## Changes - Update files for release @[veyronsakai-app[bot]](https://github.com/apps/veyronsakai-app) (#179) - Add captureAudio parameter to movie recorder @VeyronSakai (#178)
High
4/9/2026
0.1.27
## Changes - Update files for release @[veyronsakai-app[bot]](https://github.com/apps/veyronsakai-app) (#173) - Add Timeline Play and Stop operations @VeyronSakai (#172) - Add Movie Recorder feature using Unity Recorder @VeyronSakai (#162)
High
4/8/2026
Dependencies & License Audit
Loading dependencies...
Similar Packages
PerformanceStudioFree, open-source SQL Server execution plan analyzer โ cross-platform GUI + CLI with 30 analysis rules, missing index detection, SSMS extension. Built-in MCP server for AI-assisted plan review.v1.7.0
shellguard๐ก๏ธ Enable secure, read-only SSH access for LLM agents to audit servers, run diagnostics, and inspect logs without risking data changes.main@2026-04-21
mcp-tidy๐งน Simplify your MCP servers with mcp-tidy, clearing server bloat to enhance performance and improve tool selection in Claude Code.main@2026-04-21