npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

unity-editor-mcp

v1.3.1

Published

MCP server for Unity Editor integration - enables AI assistants to control Unity Editor

Readme

Unity Editor MCP Server

MCP (Model Context Protocol) server for Unity Editor integration. Enables AI assistants like Claude and Cursor to interact directly with Unity Editor for automated game development.

Features

  • 33 comprehensive tools for Unity Editor automation
  • GameObject management - Create, find, modify, delete GameObjects
  • Scene management - Create, load, save, list scenes
  • Scene analysis - Deep inspection and component analysis
  • UI interactions - Find, click, and interact with UI elements
  • Asset management - Create and modify prefabs and materials
  • Play mode controls - Start, pause, stop Unity play mode
  • System tools - Console logs, asset refresh, connection testing

Quick Start

Using npx (Recommended)

npx unity-editor-mcp

Global Installation

npm install -g unity-editor-mcp
unity-editor-mcp

Local Installation

npm install unity-editor-mcp
npx unity-editor-mcp

Unity Setup

  1. Install the Unity package from: https://github.com/ozankasikci/unity-mcp.git?path=unity-editor-mcp
  2. Open Unity Package Manager → Add package from git URL
  3. The package will automatically start a TCP server on port 6402

MCP Client Configuration

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "unity-editor-mcp": {
      "command": "npx",
      "args": ["unity-editor-mcp"]
    }
  }
}

Alternative (if globally installed)

{
  "mcpServers": {
    "unity-editor-mcp": {
      "command": "unity-editor-mcp"
    }
  }
}

Available Tools

System & Core (3 tools)

  • ping - Test Unity Editor connection
  • read_logs - Read Unity console logs
  • refresh_assets - Trigger asset recompilation

GameObject Management (5 tools)

  • create_gameobject - Create GameObjects with primitives and transforms
  • find_gameobject - Find GameObjects by name, tag, layer
  • modify_gameobject - Modify GameObject properties
  • delete_gameobject - Delete GameObjects
  • get_hierarchy - Get scene hierarchy

Scene Management (5 tools)

  • create_scene - Create new scenes
  • load_scene - Load scenes (Single/Additive)
  • save_scene - Save current scene
  • list_scenes - List project scenes
  • get_scene_info - Get scene details

Scene Analysis (5 tools)

  • get_gameobject_details - Deep GameObject inspection
  • analyze_scene_contents - Scene statistics and analysis
  • get_component_values - Component property inspection
  • find_by_component - Find objects by component type
  • get_object_references - Analyze object relationships

Play Mode Controls (4 tools)

  • play_game - Start Unity play mode
  • pause_game - Pause/resume play mode
  • stop_game - Stop play mode
  • get_editor_state - Get editor state

UI Interactions (5 tools)

  • find_ui_elements - Find UI elements by type, tag, or name
  • click_ui_element - Click on UI buttons and interactive elements
  • get_ui_element_state - Get UI element properties and state
  • set_ui_element_value - Set values for input fields and sliders
  • simulate_ui_input - Simulate keyboard and mouse input on UI

Asset Management (5 tools)

  • create_prefab - Create prefabs from GameObjects
  • modify_prefab - Modify existing prefab properties
  • instantiate_prefab - Instantiate prefabs in the scene
  • create_material - Create new materials with shaders
  • modify_material - Modify material properties and textures

Requirements

  • Unity: 2020.3 LTS or newer
  • Node.js: 18.0.0 or newer
  • MCP Client: Claude Desktop, Cursor, or compatible client

Troubleshooting

Connection Issues

  1. Ensure Unity Editor is running with the Unity package installed
  2. Check Unity console for connection messages
  3. Verify port 6402 is not blocked by firewall

Installation Issues

# Clear npm cache
npm cache clean --force

# Reinstall
npm uninstall -g unity-editor-mcp
npm install -g unity-editor-mcp

Repository

Full source code and documentation: https://github.com/ozankasikci/unity-mcp

License

MIT License - see LICENSE file for details.