Sign In

unity-mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unity-mcp-server

Lightweight MCP server for any Unity project - project info, build scenes, agent docs (no Unity Editor required)

Source
npmnpm
Version
1.5.0
Version published
Weekly downloads
148
-62.81%
Maintainers
1
Weekly downloads
 
Created
Source

Unity MCP Server

MCP server for Unity — Gives AI assistants (Cursor, Claude Desktop, etc.) structured access to your Unity project. No Unity Editor required.

npm version MCP Registry

Cursor / IDE → Unity MCP Server → Unity Project

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.

Overview

  • Editor-free — Reads only from the project filesystem.
  • One server, many projects — Set UNITY_PROJECT_PATH per project in your MCP config.
  • MCP-native — Works with any MCP client (Cursor, Claude Desktop, Windsurf).

Tools

Expand a category below to see the tools it includes.

📦 Project & build💻 Code & assemblies🎬 Scenes & prefabs📁 Assets & references
🎨 Materials & shaders🎞️ Animation🖼️ 2D & sprites✨ Rendering
📝 TextMeshPro & UI🎮 Input🏷️ Tags & layers🌐 Addressables & localization
🔊 Audio🧪 Testing & docs🔄 CI & version control🔌 Integrations
⚡ Speed & productivity
📦 Project & build
ToolDescription
get_project_infoPath, Unity version, build scene count, player/product name
list_build_scenesScenes in EditorBuildSettings (build order)
get_player_settingsProduct name, company, bundle ID, version
list_packagesPackages from manifest.json
get_quality_settingsQuality levels
get_scripting_definesGlobal and per-assembly defines
get_physics_settingsPhysics / Physics2D settings
get_graphics_settingsGraphics settings (GraphicsSettings.asset)
get_time_settingsTime / fixed timestep (TimeManager.asset)
get_build_target_infoActive build target / platform
get_feature_set_inferenceInfer Unity 6 feature sets from packages (2D, ECS, AR, etc.)
get_project_versionBundle version
get_changelogCHANGELOG contents
get_audio_settingsAudioManager.asset (global volume, reverb, DSP buffer)
get_navigation_settingsNavMesh/agent settings from ProjectSettings
get_xr_settingsXR/VR project settings
get_script_execution_orderScript execution order (MonoManager)
get_version_control_settingsSerialization mode, visible meta files
get_layer_collision_matrixLayer collision matrix and layer names
get_cloud_services_configUnity Cloud / Unity Connect config
get_package_dependency_graphPackage dependency graph (manifest + lock)
💻 Code & assemblies
ToolDescription
list_assembliesAssembly definitions with references, platforms
list_scriptsC# scripts (optional folder filter)
find_scripts_by_contentBy type/pattern (e.g. MonoBehaviour)
get_assembly_dependency_graphNodes and edges
list_editor_scriptsScripts in Editor folders
list_visual_scripting_assetsBolt / Unity Visual Scripting .asset files
🎬 Scenes & prefabs
ToolDescription
list_all_scenesAll .unity files under Assets
get_scene_summaryRoot GameObjects, component count
get_scene_components_by_typeGameObjects in a scene with a component type (e.g. Camera, Light)
list_prefabsPrefabs (optional path prefix)
list_prefab_variantsPrefabs that are variants of another prefab
get_prefab_script_guidsScript GUIDs used by a prefab
list_subscenesECS/DOTS .subscene assets
📁 Assets & references
ToolDescription
get_asset_folder_treeFolder tree under Assets
list_assets_by_extensionBy extension (e.g. .png, .fbx)
find_referencesAssets referencing a path or GUID
list_large_assetsFiles over N MB (default 5)
list_video_clipsVideo clip assets (.mp4, .mov, .webm, etc.)
list_legacy_font_assetsLegacy fonts (.fontsettings, .ttf, .otf) — not TMP
list_render_texturesRenderTexture assets
list_terrain_dataTerrainData and TerrainLayer assets
list_lighting_settings_assetsLighting-related .asset files
🎨 Materials & shaders
ToolDescription
list_materialsMaterials (optional folder)
list_shaders.shader in Assets and Packages
list_shader_graphsShader Graph assets
list_vfx_graphsVFX Graph assets
🎞️ Animation
ToolDescription
list_animator_controllers.controller assets
list_animation_clips.anim assets
get_animator_statesState names from a controller
list_timeline_playablesTimeline .playable assets
list_avatar_masksAvatar Mask (.mask) assets
list_animator_override_controllersAnimatorOverrideController assets
🖼️ 2D & sprites
ToolDescription
list_sprite_atlasesSprite Atlas assets
list_tilemap_assetsTilemap-related assets
list_sprite_assetsTextures configured as sprites (spriteMode in .meta)
✨ Rendering
ToolDescription
list_render_pipelinesURP/HDRP pipeline assets, volume profiles
📝 TextMeshPro & UI
ToolDescription
list_tmp_fontsTMP/font assets
get_tmp_settings_pathTMP Settings asset path
list_ui_documents.uxml and .uss (UI Toolkit)
🎮 Input
ToolDescription
get_input_axesInputManager axes
list_input_action_assetsNew Input System .inputactions
get_input_actions_summaryAction maps and actions from a file
🏷️ Tags & layers
ToolDescription
get_tags_and_layersTags and layers from TagManager
🌐 Addressables & localization
ToolDescription
get_addressables_infoGroups and config path
get_localization_tablesLocalization table files
🔊 Audio
ToolDescription
list_audio_clips.wav, .mp3, .ogg, .aiff
list_audio_mixersAudio Mixer assets
🧪 Testing & docs
ToolDescription
list_test_assembliesTest assembly definitions
get_repo_docsREADME, CONTRIBUTING, .cursorrules, etc.
read_agent_docs.agents/AGENT.md, optional REPO_UNDERSTANDING.md
🔄 CI & version control
ToolDescription
list_ci_configs.github/workflows, Jenkinsfile, unity-cloud-build
list_presets.preset assets
get_git_lfs_trackedLFS patterns from .gitattributes
get_plastic_configPlastic SCM config
🔌 Integrations (config discovery only)
ToolDescription
get_playfab_configTitle ID, config paths
list_figma_related_assetsFigma folder / named assets
get_firebase_configGoogleServices path, project ID
get_steam_configsteam_appid.txt, Steamworks path
get_discord_configDiscord SDK path
get_fmod_configBanks path, bank files
get_wwise_configSound banks, project paths
list_substance_assets.sbsar, .sbs
list_speedtree_assets.spm, .stm
list_lottie_assetsLottie JSON assets
get_analytics_or_crash_configSentry, Crashlytics, BugSnag, etc.
get_ads_configUnity Ads, AdMob, ironSource presence
⚡ Speed & productivity
ToolDescription
get_project_statsOne-shot stats: scripts, prefabs, scenes, materials, animations, assemblies, packages
get_scene_referenced_assetsAsset paths referenced by a scene (build size / impact)
detect_assembly_cyclesCircular refs in assembly definitions (fix compile errors)
find_script_referencesC# files that reference a type/class name (refactoring)
get_broken_script_refsPrefabs/scenes with missing script refs
get_prefab_dependenciesAsset paths referenced by a prefab (impact analysis)

All tools read from the project filesystem only.

Prerequisites

  • Node.js 18+
  • UNITY_PROJECT_PATH — Absolute path to your Unity project root (set in your MCP client)

Installation

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.

Configuration (Cursor)

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.

Development

  • Run built: node dist/index.js
  • Run dev: npm run dev or npx tsx src/index.ts

Integration with Unity Editor

  • Current 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.

Security

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.

Documentation

  • MCP Registry — Discover and install this server from the official registry.
  • PURPOSE.md — Purpose of this server and when to use it.
  • docs/REGISTRY.md — How to publish and update the MCP Registry listing.

FAQs

Package last updated on 16 Feb 2026

Did you know?

Socket

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.

Install

Related posts