
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
unity-mcp-server
Advanced tools
Lightweight MCP server for any Unity project - project info, build scenes, agent docs (no Unity Editor required)
MCP server for Unity — Gives AI assistants (Cursor, Claude Desktop, etc.) structured access to your Unity project. No Unity Editor required.
Your IDE talks to this server; the server reads your Unity project folder and answers with project info, build scenes, scripts, prefabs, and more — so the AI can help without opening the Editor.
UNITY_PROJECT_PATH per project in your MCP config.Expand a category below to see the tools it includes.
| Tool | Description |
|---|---|
get_project_info | Path, Unity version, build scene count, player/product name |
list_build_scenes | Scenes in EditorBuildSettings (build order) |
get_player_settings | Product name, company, bundle ID, version |
list_packages | Packages from manifest.json |
get_quality_settings | Quality levels |
get_scripting_defines | Global and per-assembly defines |
get_physics_settings | Physics / Physics2D settings |
get_graphics_settings | Graphics settings (GraphicsSettings.asset) |
get_time_settings | Time / fixed timestep (TimeManager.asset) |
get_build_target_info | Active build target / platform |
get_feature_set_inference | Infer Unity 6 feature sets from packages (2D, ECS, AR, etc.) |
get_project_version | Bundle version |
get_changelog | CHANGELOG contents |
get_audio_settings | AudioManager.asset (global volume, reverb, DSP buffer) |
get_navigation_settings | NavMesh/agent settings from ProjectSettings |
get_xr_settings | XR/VR project settings |
get_script_execution_order | Script execution order (MonoManager) |
get_version_control_settings | Serialization mode, visible meta files |
get_layer_collision_matrix | Layer collision matrix and layer names |
get_cloud_services_config | Unity Cloud / Unity Connect config |
get_package_dependency_graph | Package dependency graph (manifest + lock) |
| Tool | Description |
|---|---|
list_assemblies | Assembly definitions with references, platforms |
list_scripts | C# scripts (optional folder filter) |
find_scripts_by_content | By type/pattern (e.g. MonoBehaviour) |
get_assembly_dependency_graph | Nodes and edges |
list_editor_scripts | Scripts in Editor folders |
list_visual_scripting_assets | Bolt / Unity Visual Scripting .asset files |
| Tool | Description |
|---|---|
list_all_scenes | All .unity files under Assets |
get_scene_summary | Root GameObjects, component count |
get_scene_components_by_type | GameObjects in a scene with a component type (e.g. Camera, Light) |
list_prefabs | Prefabs (optional path prefix) |
list_prefab_variants | Prefabs that are variants of another prefab |
get_prefab_script_guids | Script GUIDs used by a prefab |
list_subscenes | ECS/DOTS .subscene assets |
| Tool | Description |
|---|---|
get_asset_folder_tree | Folder tree under Assets |
list_assets_by_extension | By extension (e.g. .png, .fbx) |
find_references | Assets referencing a path or GUID |
list_large_assets | Files over N MB (default 5) |
list_video_clips | Video clip assets (.mp4, .mov, .webm, etc.) |
list_legacy_font_assets | Legacy fonts (.fontsettings, .ttf, .otf) — not TMP |
list_render_textures | RenderTexture assets |
list_terrain_data | TerrainData and TerrainLayer assets |
list_lighting_settings_assets | Lighting-related .asset files |
| Tool | Description |
|---|---|
list_materials | Materials (optional folder) |
list_shaders | .shader in Assets and Packages |
list_shader_graphs | Shader Graph assets |
list_vfx_graphs | VFX Graph assets |
| Tool | Description |
|---|---|
list_animator_controllers | .controller assets |
list_animation_clips | .anim assets |
get_animator_states | State names from a controller |
list_timeline_playables | Timeline .playable assets |
list_avatar_masks | Avatar Mask (.mask) assets |
list_animator_override_controllers | AnimatorOverrideController assets |
| Tool | Description |
|---|---|
list_sprite_atlases | Sprite Atlas assets |
list_tilemap_assets | Tilemap-related assets |
list_sprite_assets | Textures configured as sprites (spriteMode in .meta) |
| Tool | Description |
|---|---|
list_render_pipelines | URP/HDRP pipeline assets, volume profiles |
| Tool | Description |
|---|---|
list_tmp_fonts | TMP/font assets |
get_tmp_settings_path | TMP Settings asset path |
list_ui_documents | .uxml and .uss (UI Toolkit) |
| Tool | Description |
|---|---|
get_input_axes | InputManager axes |
list_input_action_assets | New Input System .inputactions |
get_input_actions_summary | Action maps and actions from a file |
| Tool | Description |
|---|---|
get_addressables_info | Groups and config path |
get_localization_tables | Localization table files |
| Tool | Description |
|---|---|
list_audio_clips | .wav, .mp3, .ogg, .aiff |
list_audio_mixers | Audio Mixer assets |
| Tool | Description |
|---|---|
list_test_assemblies | Test assembly definitions |
get_repo_docs | README, CONTRIBUTING, .cursorrules, etc. |
read_agent_docs | .agents/AGENT.md, optional REPO_UNDERSTANDING.md |
| Tool | Description |
|---|---|
list_ci_configs | .github/workflows, Jenkinsfile, unity-cloud-build |
list_presets | .preset assets |
get_git_lfs_tracked | LFS patterns from .gitattributes |
get_plastic_config | Plastic SCM config |
| Tool | Description |
|---|---|
get_playfab_config | Title ID, config paths |
list_figma_related_assets | Figma folder / named assets |
get_firebase_config | GoogleServices path, project ID |
get_steam_config | steam_appid.txt, Steamworks path |
get_discord_config | Discord SDK path |
get_fmod_config | Banks path, bank files |
get_wwise_config | Sound banks, project paths |
list_substance_assets | .sbsar, .sbs |
list_speedtree_assets | .spm, .stm |
list_lottie_assets | Lottie JSON assets |
get_analytics_or_crash_config | Sentry, Crashlytics, BugSnag, etc. |
get_ads_config | Unity Ads, AdMob, ironSource presence |
| Tool | Description |
|---|---|
get_project_stats | One-shot stats: scripts, prefabs, scenes, materials, animations, assemblies, packages |
get_scene_referenced_assets | Asset paths referenced by a scene (build size / impact) |
detect_assembly_cycles | Circular refs in assembly definitions (fix compile errors) |
find_script_references | C# files that reference a type/class name (refactoring) |
get_broken_script_refs | Prefabs/scenes with missing script refs |
get_prefab_dependencies | Asset paths referenced by a prefab (impact analysis) |
All tools read from the project filesystem only.
git clone https://github.com/rachitkumarrastogi/unity-mcp-server.git
cd unity-mcp-server
npm install
npm run build
The server uses stdio; your MCP client starts it automatically.
Add to your MCP settings:
{
"mcpServers": {
"unity": {
"command": "node",
"args": ["/absolute/path/to/unity-mcp-server/dist/index.js"],
"env": {
"UNITY_PROJECT_PATH": "/absolute/path/to/YourUnityProject"
}
}
}
}
Replace the paths with your actual paths. For other MCP clients, use the same pattern and set UNITY_PROJECT_PATH in the environment.
node dist/index.jsnpm run dev or npx tsx src/index.tsCurrent workflow: The AI runs inside your IDE (Cursor, VS Code with MCP, Claude Desktop, Windsurf, or another MCP-capable client). This server provides the AI with read-only access to your project (scenes, scripts, settings, and related assets). You run Unity Editor separately to open scenes, enter Play mode, and build. The AI uses the server to inspect the project and to suggest changes, answer questions, and assist with refactoring.
Future compatibility: This server implements the standard MCP protocol over stdio and requires a single environment variable (UNITY_PROJECT_PATH). If Unity Editor gains built-in MCP client support, you could connect it to this server using the same configuration: command node, arguments pointing to dist/index.js, and UNITY_PROJECT_PATH set in the environment. No changes to this codebase would be required.
This repository does not include game code, assets, or secrets. The Unity project path is supplied at runtime by your MCP client. The server is suitable for public and private use.
FAQs
Lightweight MCP server for Unity - project info, Unity 6 coverage, AI/ML discovery, 39 agent skills, 130+ tools (no Unity Editor required)
The npm package unity-mcp-server receives a total of 117 weekly downloads. As such, unity-mcp-server popularity was classified as not popular.
We found that unity-mcp-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.