mcp-unity
llms.txt1.9k starsChanged 3 months agoMITView on GitHub
MCP Unity is an open-source implementation of the Model Context Protocol (MCP) for the Unity Editor. It connects a C# Unity Editor package with a Node.js/TypeScript server over WebSockets and exposes high-level "tools" and "resources" so language-model agents and other automated clients can safely inspect, test, and modify Unity projects in real-time. This repository consists of two coordinated halves that communicate using JSON-encoded MCP messages: - Editor/ – Unity package that starts an internal WebSocket server and registers C# MCP…
Trending
Quiet since June.thin dataabout the whole repository
Who's talking about CoderGamester/mcp-unity
- @tom-doerr.bsky.social“https://github.com/CoderGamester/mcp-unity”Bluesky · Mar 22, 2026 · 1 likes
- mcp-use/mcp-use“mcp-unity server compatibility”GitHub · Feb 5, 2026 · 1 reactions
- xiaolai/nlpm“Audit candidate: CoderGamester/mcp-unity”GitHub · Jun 17, 2026
- JSONbored/awesome-claude“content(mcp): add MCP Unity Editor server”GitHub · Jun 6, 2026
- cline/mcp-marketplace“[Server Submission]: MCP Unity Game Engine”GitHub · Mar 23, 2025
The biggest 5 of 6 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 6
Talked about on GitHub and Bluesky (6 times).
On GitHub · 5
- Feb 5, 2026mcp-unity server compatibility — mcp-use/mcp-use1 reaction · 14 comments
- Jun 17, 2026Audit candidate: CoderGamester/mcp-unity — xiaolai/nlpm0 reactions · 2 comments
- Jun 6, 2026content(mcp): add MCP Unity Editor server — JSONbored/awesome-claude0 reactions · 3 comments
- Mar 23, 2025[Server Submission]: MCP Unity Game Engine — cline/mcp-marketplace0 reactions · 3 comments
- Mar 19, 2025Added Unity MCP server — modelcontextprotocol/servers0 reactions
On Bluesky · 1
- Mar 22, 2026https://github.com/CoderGamester/mcp-unity — @tom-doerr.bsky.social1 likes and repost
The file
Files
# MCP Unity
> MCP Unity is an open-source implementation of the Model Context Protocol (MCP) for the Unity Editor.
> It connects a C# Unity Editor package with a Node.js/TypeScript server over WebSockets and exposes
> high-level "tools" and "resources" so language-model agents and other automated clients can safely
> inspect, test, and modify Unity projects in real-time.
This repository consists of two coordinated halves that communicate using JSON-encoded MCP messages:
- **Editor/** – Unity package that starts an internal WebSocket server and registers C# MCP tools & resources.
- **Server/** – Node.js/TypeScript application that runs outside Unity, connects to the Editor server, and
re-exposes identical MCP tools/resources for AI assistants.
Together they allow AI coding assistants (e.g. Windsurf, Cursor, Claude Code, GitHub Copilot) to drive the Unity Editor headlessly,
automate scene and asset management, run tests, install packages, and gather diagnostics.
## Docs
- [Project README](README.md): Full feature list, installation, and getting-started guide.
- [Installation guide](README.md#installation): Step-by-step setup instructions.
- [Unity Editor Tools source](Editor/Tools/): C# classes that implement individual editor actions.
- [Node.js Tools source](Server~/src/tools/): TypeScript wrappers that forward requests to Unity.
## Tools
- [`execute_menu_item`](README.md#mcp-server-tools): Executes Unity Editor menu items by path.
- [`select_gameobject`](README.md#mcp-server-tools): Selects GameObjects in the Unity scene by path or instance ID.
- [`update_gameobject`](README.md#mcp-server-tools): Creates or updates GameObjects (name, tag, layer, active/static).
- [`update_component`](README.md#mcp-server-tools): Adds or edits component fields on GameObjects.
- [`add_package`](README.md#mcp-server-tools): Installs Unity packages via the Package Manager.
- [`run_tests`](README.md#mcp-server-tools): Runs Unity Test Runner tests (EditMode/PlayMode).
- [`send_console_log`](README.md#mcp-server-tools): Sends a console message to the Unity Editor log.
- [`add_asset_to_scene`](README.md#mcp-server-tools): Adds an AssetDatabase asset to the current scene.
## Resources
- [unity://menu-items](README.md#mcp-server-resources): Returns all available Unity menu items.
- [unity://scenes-hierarchy](README.md#mcp-server-resources): Current scene hierarchy tree.
- [unity://gameobject/{id}](README.md#mcp-server-resources): Detailed info for a specific GameObject.
- [unity://logs](README.md#mcp-server-resources): Unity console log entries.
- [unity://packages](README.md#mcp-server-resources): Installed/available Unity packages.
- [unity://assets](README.md#mcp-server-resources): AssetDatabase search results.
- [unity://tests/{testMode}](README.md#mcp-server-resources): Test metadata for EditMode/PlayMode.
## Optional
- [Model Context Protocol specification](https://modelcontextprotocol.io/spec): Formal protocol definition for MCP.
- [Unity Editor](https://unity.com/releases/editor/archive): Official Unity Editor download and documentation.
- [Node.js](https://nodejs.org/en/download/): JavaScript runtime used for the MCP server backend.
- [WebSocket-Sharp (C#)](https://github.com/sta/websocket-sharp/tree/master/websocket-sharp/Server): C# WebSocket server library used in the Unity package.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

