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.1.0
Version published
Weekly downloads
148
-62.81%
Maintainers
1
Weekly downloads
 
Created
Source

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 & buildget_project_info, list_build_scenes, get_player_settings, list_packages, get_quality_settings, get_scripting_defines, get_project_version, get_changelog

Code & assemblieslist_assemblies, list_scripts, find_scripts_by_content

Scenes & prefabslist_all_scenes, get_scene_summary, list_prefabs

Assets & referencesget_asset_folder_tree, list_assets_by_extension, find_references (by path or GUID)

Materials & shaderslist_materials, list_shaders

Animationlist_animator_controllers, list_animation_clips, get_animator_states

Audiolist_audio_clips, list_audio_mixers

Addressables & localizationget_addressables_info, get_localization_tables

Input, tags & layersget_input_axes, get_tags_and_layers

Testing & docslist_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.js with the path to this repository’s built entry point.
  • /absolute/path/to/YourUnityProject with 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 (after npm run build)
  • Development: npm run dev or npx 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).

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