Unity MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HOSTNoThe host address the server will bind to0.0.0.0
PORTNoThe port on which the server will run3000
LOG_FILENoPath to log filelogs/mcp-server.log
LOG_LEVELNoLogging levelinfo
BATCH_MODENoWhether to run Unity in batch modetrue
TIMEOUT_MSNoTimeout for Unity operations in milliseconds60000
UNITY_PATHYesPath to Unity Editor executable
PROJECT_PATHYesPath to your Unity project
ALLOWED_PATHSNoComma-separated list of allowed pathsAssets,ProjectSettings,Packages

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools