Back to Home
IvanMurzak icon

Unity-MCP

by IvanMurzak

Overview

Integrates AI Language Models with the Unity Editor and runtime to automate game development tasks, generate code, debug, and enable AI-driven game mechanics.

Installation

Run Command
docker run -p 8080:8080 ivanmurzakdev/unity-mcp-server

Environment Variables

  • MCP_PLUGIN_PORT
  • MCP_PLUGIN_CLIENT_TIMEOUT
  • MCP_PLUGIN_CLIENT_TRANSPORT
  • OPENAI_API_KEY

Security Notes

The server, via the Unity Plugin, exposes a 'script-execute' tool that dynamically compiles and runs C# code using Roslyn. While Roslyn itself is managed, allowing an external AI (potentially controlled by a user) to execute arbitrary C# code within the Unity Editor or a compiled game environment presents a significant security risk. A compromised or maliciously prompted AI could execute harmful code on the system running Unity. There are no clear sandboxing mechanisms mentioned for the dynamically executed code. No hardcoded secrets were found in the provided server-side code snippets; external API keys (like OpenAI's) are expected to be provided via environment variables.

Similar Servers

Stats

Interest Score99
Security Score3
Cost ClassHigh
Avg Tokens800
Stars787
Forks94
Last Update2026-01-19

Tags

AIUnityGame DevelopmentLLMModel Context Protocol