Navigation
Unity MCP Server for Smithery.ai: Rapid Deployment & AI-Driven Coding - MCP Implementation

Unity MCP Server for Smithery.ai: Rapid Deployment & AI-Driven Coding

Rev up Unity game dev with this MCP server – deploy to Smithery.ai in seconds, harness AI magic, and code like a pro. Pure developer joy, no hassle.

Developer Tools
4.3(89 reviews)
133 saves
62 comments

Ranked in the top 3% of all AI tools in its category

About Unity MCP Server for Smithery.ai

What is Unity MCP Server for Smithery.ai: Rapid Deployment & AI-Driven Coding?

Unity MCP Server is a cutting-edge Model Context Protocol (MCP) solution designed to streamline Unity game development workflows. Built for seamless integration with the Smithery.ai platform, it empowers developers to manage projects, edit scenes, generate prefabs, and create C# scripts with AI-driven efficiency. This server acts as a central hub for automating repetitive tasks, reducing manual overhead, and accelerating development cycles through smart code generation and real-time collaboration.

How to Use Unity MCP Server for Smithery.ai: Rapid Deployment & AI-Driven Coding?

Get started by ensuring Node.js 18+ and a Unity installation are installed. Clone the repository, install dependencies, and build the project locally using npm commands. For immediate development, run npm run dev, or deploy to Smithery.ai with npm run smithery:start. Docker users can simplify setup with docker-compose up -d. Configure environment variables like UNITY_PROJECTS_PATH to tailor storage locations and enable Smithery mode via SMITHERY=true.

Unity MCP Server for Smithery.ai Features

Key Features of Unity MCP Server for Smithery.ai: Rapid Deployment & AI-Driven Coding?

Project & Scene Mastery: Instantly spin up Unity projects and scenes with preconfigured settings. Prefab Customization: Build reusable prefabs with drag-and-drop component assignments. Script Automation: Generate MonoBehaviour, ScriptableObject, or EditorWindow scripts using AI-optimized templates. Smithery.ai Synergy: Full compatibility with the platform's AI-driven coding suggestions and workflow optimizations. Plus, Docker-native deployment ensures cross-platform consistency.

Use Cases of Unity MCP Server for Smithery.ai: Rapid Deployment & AI-Driven Coding?

Unity MCP Server for Smithery.ai FAQ

FAQ from Unity MCP Server for Smithery.ai: Rapid Deployment & AI-Driven Coding?

Q: Does the server require Unity to be running?
A: Basic operations (like project management) work headlessly, but actual scene editing requires Unity Editor to be installed.

Q: Can I customize script templates?
A: Absolutely! Store custom templates in the SCRIPT_ROOT directory for personalized code generation.

Q: How does Smithery.ai integration work?
A: Enabling Smithery mode connects to the platform's WebSocket API, allowing AI-powered code suggestions to flow directly into your Unity projects.

Q: What's the recommended Docker setup?
A: Use docker-compose up for production deployments - it handles port mappings and environment variables automatically.

Content

Unity MCP Server for Smithery.ai

A comprehensive Model Context Protocol (MCP) server for Unity game development that provides tools for project management, scene editing, prefab creation, script generation, and more.

Features

  • Project Management : Create and open Unity projects
  • Scene Editing : Create and modify Unity scenes
  • Prefab Creation : Generate prefabs with customizable components
  • Script Generation : Create C# scripts using various templates (MonoBehaviour, ScriptableObject, EditorWindow)
  • Smithery.ai Integration : Full compatibility with Smithery.ai platform

Getting Started

Prerequisites

  • Node.js 18 or higher
  • Unity installed (for actual Unity operations)

Installation

  1. Clone the repository:
git clone https://github.com/GrandMasterK414/unity-mcp-server.git
cd unity-mcp-server
  1. Install dependencies:
npm install
  1. Build the project:
npm run build

Running the Server

Local Development

npm run dev

Smithery.ai Deployment

npm run smithery:start

Or using Docker:

docker-compose up -d

Configuration

The server can be configured through environment variables:

  • SMITHERY: Set to "true" to enable Smithery mode (uses WebSocket transport)
  • PORT: WebSocket server port (default: 3000)
  • UNITY_PROJECTS_PATH: Directory to store Unity projects
  • SCRIPT_ROOT: Directory to store script templates

API Tools

Create Unity Project

Creates a new Unity project with specified configuration.

{
  "name": "MyGameProject",
  "path": "./projects",
  "unityVersion": "2022.3.5f1"
}

Open Unity Project

Opens an existing Unity project.

{
  "path": "./projects/MyGameProject"
}

Create Unity Scene

Creates a new Unity scene.

{
  "name": "MainLevel",
  "projectPath": "./projects/MyGameProject"
}

Create Unity Prefab

Creates a new Unity prefab.

{
  "name": "EnemyCharacter",
  "projectPath": "./projects/MyGameProject",
  "components": ["Rigidbody", "MeshRenderer", "BoxCollider"]
}

Generate Unity Script

Generates a new C# script for Unity.

{
  "name": "PlayerController",
  "projectPath": "./projects/MyGameProject",
  "scriptType": "MonoBehaviour",
  "template": "// Optional custom template content"
}

Docker Support

The server can be deployed using Docker:

# Build the Docker image
docker build -t unity-mcp-server .

# Run the container
docker run -p 3000:3000 -d unity-mcp-server

License

This project is licensed under the MIT License - see the LICENSE file for details.

Related MCP Servers & Clients