Sponsored by Deepsite.site

Mcp Unity Manager Server

Created By
bsmi0218 months ago
he MCP Unity Manager Server is a TypeScript powerhouse that lets you control Unity Editor programmatically through the Model Context Protocol (MCP). Built to work seamlessly with the Unity Bridge Asset, it's your gateway to automating Unity tasks like a pro.
Content

MCP Unity Manager Logo

Control Unity Editor like a boss with MCP.

What is this?

The MCP Unity Manager Server is a TypeScript powerhouse that lets you control Unity Editor programmatically through the Model Context Protocol (MCP). Built to work seamlessly with the Unity Bridge Asset, it's your gateway to automating Unity tasks like a pro.

Key Features

  • 🎮 Full Unity Control: Create, modify, and delete assets, GameObjects, and scenes
  • 🔌 Flexible Connection: WebSocket or Stdio - you choose how to connect
  • 🧵 Thread Safe: We handle all the threading bullshit so you don't have to
  • 🚀 Simple API: Clean, intuitive interface for Unity automation
  • Fast & Reliable: Built for performance and stability

Quick Setup

  1. Install the Unity Bridge

    # In Unity: Window -> Package Manager -> + -> Add package from git URL
    https://github.com/modelcontext/mcp-unity-bridge-asset.git
    
  2. Configure the Bridge

    • Unity Editor -> Edit -> Project Settings -> MCP Bridge
    • Set WebSocket port (default: 8765)
  3. Run this Server

    npm install
    npm run build
    npm start
    

Basic Usage

// Create a new material
await mcpClient.execute('manage_asset', {
    operation: 'create',
    assetPath: 'Assets/Materials/NewMaterial.mat',
    assetType: 'Material'
});

// Create and position a cube
await mcpClient.execute('manage_gameobject', {
    operation: 'create',
    objectName: 'MyCube',
    properties: {
        position: { x: 0, y: 1, z: 0 }
    }
});

// Save the current scene
await mcpClient.execute('manage_scene', {
    operation: 'save',
    scenePath: 'Assets/Scenes/MyScene.unity'
});

How It Works

graph LR
    Unity[Unity Editor]
    Bridge[Unity Bridge Asset\nC# Package]
    Server[MCP Unity Server\nTypeScript]
    Client[Your Code/Tool]

    Unity <--> Bridge
    Bridge <-->|WebSocket/Stdio| Server
    Server <-->|MCP Protocol| Client

    classDef unity fill:#478CBF,color:white
    classDef bridge fill:#44A833,color:white
    classDef server fill:#3178C6,color:white
    classDef client fill:#9B4F96,color:white
    
    class Unity unity
    class Bridge bridge
    class Server server
    class Client client

Configuration

// Server config (environment variables or config file)
export MCP_TRANSPORT_TYPE=websocket  # or stdio
export MCP_WEBSOCKET_PORT=8765      # must match Unity Bridge setting

Unity Bridge Configuration

Tools > MCP Bridge > MCP Bridge Settings

MCP Unity Bridge Config

Available Tools

ToolDescriptionStatus
🎨 manage_assetCreate, modify, delete Unity assetsStable
🎲 manage_gameobjectControl GameObjects and componentsStable
📦 manage_sceneHandle scene operationsBeta
🔄 ping_unity_bridgeTest connection to UnityStable

Requirements

  • Unity 2022.3.0f1 or later
  • Node.js 18+
  • TypeScript 4.9+

Need Help?

  • Check the Unity Bridge docs
  • Open an issue with:
    • What you tried
    • What screwed up
    • Error messages
    • Relevant code

Contributing

  1. Fork this
  2. Create your feature branch
  3. Make your changes
  4. Test your stuff
  5. Submit a pull request

License

MIT - Do whatever the f you want


Made with 🖕 using Model Context Protocol

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
CursorThe AI Code Editor
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Serper MCP ServerA Serper MCP Server
ChatWiseThe second fastest AI chatbot™
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
WindsurfThe new purpose-built IDE to harness magic
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Playwright McpPlaywright MCP server
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
DeepChatYour AI Partner on Desktop
Tavily Mcp
Amap Maps高德地图官方 MCP Server