Unity MCP Server
MCP server for Unity — A lightweight Model Context Protocol (MCP) server that gives AI assistants structured access to your Unity projects. Use with Cursor, Claude Desktop, or any MCP client. Query project metadata, build settings, and agent documentation from any MCP-capable client—without running the Unity Editor.
Overview
Unity MCP Server runs as a separate process and reads your Unity project from disk. Point it at any project root via UNITY_PROJECT_PATH; one installation can serve multiple projects by changing the environment variable in your client config.
Key points:
- Editor-free — Uses only the project filesystem. No Unity process or Editor dependency.
- Single binary — One Node.js server for all your Unity projects.
- MCP-native — Built on the official MCP SDK; works with Cursor, Claude Desktop, Windsurf, and other MCP clients.
Tools (by category)
Project & build — get_project_info, list_build_scenes, get_player_settings, list_packages, get_quality_settings, get_scripting_defines, get_project_version, get_changelog
Code & assemblies — list_assemblies, list_scripts, find_scripts_by_content
Scenes & prefabs — list_all_scenes, get_scene_summary, list_prefabs
Assets & references — get_asset_folder_tree, list_assets_by_extension, find_references (by path or GUID)
Materials & shaders — list_materials, list_shaders
Animation — list_animator_controllers, list_animation_clips, get_animator_states
Audio — list_audio_clips, list_audio_mixers
Addressables & localization — get_addressables_info, get_localization_tables
Input, tags & layers — get_input_axes, get_tags_and_layers
Testing & docs — list_test_assemblies, get_repo_docs, read_agent_docs
All tools read from the project filesystem only; no Unity Editor is required.
Prerequisites
- Node.js 18 or later
- UNITY_PROJECT_PATH — Absolute path to your Unity project root (set in your MCP client configuration)
Installation
git clone https://github.com/YOUR_USERNAME/unity-mcp-server.git
cd unity-mcp-server
npm install
npm run build
The server is invoked via stdio. Your MCP client starts it; you do not run it manually in production.
Configuration
Cursor
Add the following to your MCP settings (project or user):
{
"mcpServers": {
"unity": {
"command": "node",
"args": ["/absolute/path/to/unity-mcp-server/dist/index.js"],
"env": {
"UNITY_PROJECT_PATH": "/absolute/path/to/YourUnityProject"
}
}
}
}
Replace:
/absolute/path/to/unity-mcp-server/dist/index.jswith the path to this repository’s built entry point./absolute/path/to/YourUnityProjectwith the absolute path to your Unity project root.
Other MCP clients
Use the same pattern: run node with dist/index.js as the argument and set UNITY_PROJECT_PATH in the environment. Refer to your client’s documentation for where to configure MCP servers.
Development
- Production:
node dist/index.js(afternpm run build) - Development:
npm run devornpx tsx src/index.ts
Security and public use
This repository contains only generic tooling: no game code, assets, API keys, or secrets. The Unity project path is provided at runtime by your MCP client and is not stored in this repo. Safe to use in public or private contexts. The project is maintained anonymously; no author attribution is required.
Further reading
See PURPOSE.md for the rationale behind this server and when it is useful for your workflow.
Discoverability
Search for Unity MCP server, MCP Unity, or Model Context Protocol Unity to find this repo. You can also browse the MCP Registry for published servers (this server may be listed there once submitted).