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.4.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.

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

Click a category to expand and see its tools.

📦 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
💻 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
list_prefabsPrefabs (optional path prefix)
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)
🎨 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
🖼️ 2D & sprites
ToolDescription
list_sprite_atlasesSprite Atlas assets
list_tilemap_assetsTilemap-related assets
✨ 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 both paths with your actual paths. Other MCP clients: same pattern; 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

Security

No game code, assets, or secrets in this repo. The Unity project path is supplied at runtime by your MCP client. Safe for public or private use. Maintained anonymously.

More

  • View on MCP Registry — Find this server in the official registry
  • PURPOSE.md — Why this server exists and when to use it
  • Search: Unity MCP server, MCP Unity

FAQs

Package last updated on 13 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