Skip to main content
Glama

MCP Server for Unity

by zabaglione

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoHTTP server port3000
UNITY_PATHNoPath to Unity executable (auto-detected if not set)

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
project_setup_path

Set the Unity project path

project_read_info

Get Unity project information

asset_create_script

Create a new C# script in the Unity project

asset_create_scene

Create a new Unity scene

asset_create_material

Create a new Unity material

asset_create_shader

Create a new Unity shader

asset_read_script

Read a C# script from the Unity project

asset_list_scripts

List all C# scripts in the Unity project

asset_list_shaders

List all shaders in the Unity project

asset_list_materials

List all materials in the Unity project

asset_list_all

List assets in the Unity project

editor_create_script

Create a Unity Editor extension script

editor_list_scripts

List all editor scripts in the Unity project

build_execute_project

Build the Unity project

system_setup_refresh

Install Unity refresh handler script

system_refresh_assets

Trigger Unity asset database refresh and optional script recompilation

system_batch_start

Start batch mode for multiple file operations

system_batch_end

End batch mode and trigger single refresh for all operations

diagnostics_set_unity_path

Set Unity executable path for diagnostics

diagnostics_read_editor_log

Read Unity Editor log for errors and warnings

diagnostics_compile_scripts

Compile Unity scripts and get compilation errors

diagnostics_validate_assets

Validate asset integrity (missing meta files, orphaned assets, etc.)

diagnostics_run_tests

Run Unity tests and get results

diagnostics_summary

Get comprehensive diagnostics summary for AI analysis

diagnostics_install_script

Install Unity diagnostics script for real-time error detection

diagnostics_read_results

Read diagnostics results saved by Unity

ai_analyze_requirements

Analyze natural language requirements and generate project plan

ai_create_project_structure

Create project structure based on project type

ai_setup_architecture

Setup architecture pattern for the project

system_create_player_controller

Generate a complete player controller system

system_create_camera

Generate a camera system

system_create_ui_framework

Generate a complete UI framework

system_create_audio_manager

Generate an audio management system

asset_update_material_shader

Change the shader of an existing material

asset_update_material_properties

Update properties of an existing material

asset_read_material

Read material properties and current shader

asset_batch_convert_materials

Convert multiple materials to specified shader with property mapping

asset_create_material_with_shader

Create a material with a specific shader (including custom shaders)

asset_update_shader

Update content of an existing shader

asset_read_shader

Read shader content

asset_update_material

Update complete material file content

asset_clone_material

Clone a material with a new name

asset_update_script

Update content of an existing C# script

code_analyze_diff

Get detailed diff between current file and new content

code_detect_duplicates

Detect duplicate class names across the project

code_suggest_namespace

Suggest namespace based on file location

code_apply_namespace

Apply namespace to a script file

compile_get_errors

Get detailed compilation errors with context

compile_get_status

Get current compilation status

compile_install_helper

Install compilation helper script for real-time error monitoring

ui_create_uxml

Create a new UXML file for Unity UI Toolkit

ui_create_uss

Create a new USS file for Unity UI Toolkit styling

ui_update_uxml

Update content of an existing UXML file

ui_update_uss

Update content of an existing USS file

ui_read_uxml

Read content of a UXML file

ui_read_uss

Read content of a USS file

ui_list_uxml

List all UXML files in the project

ui_list_uss

List all USS files in the project

ui_create_component

Create a complete UI component with UXML, USS, and C# controller

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zabaglione/mcp-server-unity'

If you have feedback or need assistance with the MCP directory API, please join our Discord server