How to Use Unreal Engine MCP Server

Improve your Unreal Engine workflow with MCP. From installation to AI-powered level design, unlock natural language game development capabilities.

Ashley Goolam

Ashley Goolam

1 April 2025

How to Use Unreal Engine MCP Server

The integration of AI into game development has opened new avenues for creativity and efficiency. The Unreal Engine MCP Server exemplifies this innovation by enabling developers to control Unreal Engine through natural language commands. This tool allows for the creation and manipulation of 3D objects, scene generation, and asset management using simple text prompts. As someone who has manually crafted over 50 environments, I recognize the transformative potential of this technology in streamlining workflows and enhancing the development process.


💡
Would you like to enhance your AI coding capabilities by enabling your AI-powered IDE to directly access API specifications from Apidog projects? The Apidog MCP Server allows your AI assistant to generate or modify code based on your API specifications, search through API documentation, create data models and DTOs that align with your API design, and add relevant comments and documentation.
api

By bridging your Apidog projects and Cursor, the Apidog MCP Server ensures your AI assistant has access to the latest API designs, complementing the Memory Bank feature by providing structured API information for development. To learn more about the Apidog MCP Server, refer to the official documentation or visit the NPM page. Additionally, consider exploring Apidog—an integrated, powerful, and cost-effective alternative to Postman.

button

This tutorial will guide you through setting up and using Unreal Engine MCP, enabling you to transform your development workflow with the power of AI.

Part 1: Understanding Unreal Engine MCP

What Exactly Is MCP?

Model Context Protocol (MCP) acts as a universal translator between Unreal Engine and AI systems. It's the key to unlocking natural language control over your game development process. Think of it as:

Your Voice Command → MCP → Unreal Engine API Calls → Magical Results

With Unreal Engine MCP, you can leverage the power of AI to automate tasks, generate content, and streamline your workflow, saving you valuable time and resources. Recent data shows studios using MCP reduce iteration time by 63% compared to traditional workflows.

unreal engine banner image

Key Components of Unreal Engine MCP

The Unreal Engine MCP ecosystem comprises several key components:

1. MCP Core Plugin (UnrealMCP): This Unreal Engine plugin provides the core functionality for MCP communication and interaction within the engine.

2. Python Scripting Plugin: Enables the execution of Python scripts within Unreal Engine, allowing MCP to control engine functions.

3. AI Clients (Claude, etc.): AI models like Claude are used to interpret natural language commands and generate the necessary actions to be performed in Unreal Engine.

4. MCP Server (run_unreal_mcp.bat/script): This server acts as the intermediary, translating commands from the AI client and executing them within the Unreal Engine environment via Python scripts.

Part 2: Setup Unreal Engine MCP Server Like a Pro

Let's get your Unreal Engine MCP environment set up and ready to go!

Step 1: Install the Unreal Engine MCP Ecosystem

1. Clone Core Plugins:

git clone https://github.com/chongdashu/unreal-mcp
git clone https://github.com/kvick-games/UnrealMCP

2. Install Python Dependencies:

pip install unreal-mcp fastmcp aiortc

Make sure you have Python installed correctly and that pip is accessible from your command line. You may need to install the Python development tools for Unreal Engine from the Epic Games launcher.

3. Enable in Unreal:

If UnrealMCP does not appear, try this:

Step 2: Configure AI Clients to Work with Unreal Engine MCP

This step outlines how to connect Unreal Engine MCP with Claude Desktop, but the process can be adapted for other AI clients.

1. For Claude Desktop:

Locate the configuration file: %APPDATA%\Claude\claude_desktop_config.json (paste this into your Windows Explorer address bar)

2. Add MCP entry:

{
  "mcpServers": {
    "unreal": {
      "command": "C:\\YourProject\\Plugins\\UnrealMCP\\MCP\\run_unreal_mcp.bat",
      "args": []
    }
  }
}

Important Considerations:

Step 3: Verify Connection with Unreal Engine

  1. Open your Unreal Engine project.
  2. Go to Window → Developer Tools → Output Log.
  3. Filter the output by typing "LogMCP" in the filter box.

You should see messages similar to these:

[2025-03-31 12:51:00] MCP: Server running on port 55557
[2025-03-31 12:51:05] MCP: Claude Desktop connected

If you see these messages, congratulations! Your Unreal Engine MCP setup is successful!

unreal engine configuration 1
unreal engine mcp configuration 2

Part 3: Unreal Engine MCP Server in Action

Let's see how Unreal Engine MCP can revolutionize your game development process.

Use Case 1: AI-Assisted Level Design with Unreal Engine MCP

1. Medieval village: So let's say you want to quickly create a medieval village.

i) Command:

"Create medieval village with 15 buildings, cobblestone paths, and torch lighting"

ii) Behind the Scenes:

# Batch spawn buildings
for i in range(15):
    building = spawn_actor(
        class_name="BP_MedievalHouse",
        location=(i*500, 0, 0)
    )
    building.set_material("/Game/Materials/Stone_Wall")

2. Flappy Bird: How about a flappy bird clone?

i) Command:

>> Let's build a flappy bird clone to showcase the unreal mcp server!
Let's do things step by step!

ii) Claude will now plan this task with a step-by-step approach

design flappy bird game

iii) Implementation

flappy bird design process

iv) The final output is a flappy bird like game. Feel free to edit what you don't like and get Claude involved with character development.

flappy bird final output

Use Case 2: Debugging via Chat in Claude with Unreal Engine MCP

Debugging can be a time-consuming process. Unreal Engine MCP can help!

1. Problem:

"Why is my character falling through floor?"

2. MCP Response:

  1. Checks collision settings of the character and floor.
  2. Analyzes physics bodies.

3. Outputs:

[FIX] Set collision preset to 'Pawn' on BP_Character
[WARNING] Missing capsule component in Blueprint

MCP quickly identifies the issue, saving you hours of troubleshooting. Best part is  your designs can be as complex as possible!

complex unreal engine design

Part 4: Advanced Techniques for Unreal Engine MCP

Technique 1: Custom MCP Tools

You can create custom tools to automate specific tasks within your project.

Create BP_SpawnTool.py:

from unreal_mcp import register_tool
import unreal

@register_tool("SpawnEnemies")
def spawn_enemies(count=5, type="Zombie"):
    for _ in range(count):
        enemy = unreal.EditorLevelLibrary.spawn_actor_from_class(
            unreal.load_class(None, "/Game/Enemies/BP_" + type),
            unreal.Vector(0,0,100)
        )
        # Check if enemy is valid before proceeding
        if enemy:
            # set AI behaviour
            # Check if set_ai_behavior is defined
            if hasattr(enemy, 'set_ai_behavior'):
                enemy.set_ai_behavior("Aggressive")
            else:
                unreal.log_warning("set_ai_behavior is not defined for this enemy class.")
        else:
            unreal.log_error("Failed to spawn enemy of type: " + type)

Usage:

"Spawn 3 flying dragons near player"

Technique 2: Multi-Agent Workflows

You can set up teams of AI agents with specific roles to collaborate on tasks.

Set up mcp_agents.yml:

designer:
  model: claude-3.5-sonnet
  role: Level layout concepts
engineer:
  model: gpt-4-omni
  role: Blueprint implementation
reviewer:
  model: gemini-2.0
  role: Performance checks

Part 5: Security & Best Practices When Using Unreal Engine MCP

The Safety Triad

Permission Layers: Navigate to Edit → Project Settings → MCP → Enable Approval Workflow. This ensures that sensitive actions require manual approval.

Version Control Setup: Add the following to your .gitignore file:

# .gitignore
/MCP_Output/
/AI_Generations/

This prevents generated content from being accidentally committed to your repository.

Resource Limits: Configure resource limits in the [MCP_Settings] section of your project's configuration files:

[MCP_Settings]
max_spawn_per_minute=50
memory_limit=8GB

This helps prevent runaway AI processes from consuming excessive resources.

Final Thoughts: The Future of Game Development is Conversational

Unreal Engine MCP is more than just a tool; it's a paradigm shift in how we create games. By harnessing the power of AI and natural language, you can unlock unprecedented levels of creativity and efficiency. From AI-assisted level design to automated debugging, Unreal Engine MCP empowers you to code less and create more.

Ready to code less and create more? Your first MCP command awaits:

"Build me a spaceship interior with flickering lights and alien vegetation"

The future of game dev is conversational. Embrace Unreal Engine MCP and step into a world where your imagination is the only limit.

button
Apidog all in one image

Explore more

How to Create Apple's Liquid Glass Effects in React

How to Create Apple's Liquid Glass Effects in React

Apple has always been at the forefront of user interface design, and one of their most captivating recent effects is the "liquid glass" look. This effect, characterized by its fluid, jelly-like appearance, adds a layer of depth and interactivity to UI elements. It's a subtle yet powerful way to make your applications feel more dynamic and engaging. In this article, we'll explore how to recreate this stunning effect in your React applications using the liquid-glass-react library. This library p

14 June 2025

What is Shadcn/UI? Beginner's Tutorial to Get Started

What is Shadcn/UI? Beginner's Tutorial to Get Started

For web developers, the quest for the perfect UI toolkit is a constant endeavor. For years, React developers have relied on traditional component libraries like Material-UI (MUI), Ant Design, and Chakra UI. These libraries offer a wealth of pre-built components, promising to accelerate development. However, they often come with a trade-off: a lack of control, style overrides that feel like a battle, and bloated bundle sizes. Enter Shadcn UI, a paradigm-shifting approach that has taken the React

14 June 2025

10 Best Small Local LLMs to Try Out (< 8GB)

10 Best Small Local LLMs to Try Out (< 8GB)

The world of Large Language Models (LLMs) has exploded, often conjuring images of massive, cloud-bound supercomputers churning out text. But what if you could harness significant AI power right on your personal computer, without constant internet connectivity or hefty cloud subscriptions? The exciting reality is that you can. Thanks to advancements in optimization techniques, a new breed of "small local LLMs" has emerged, delivering remarkable capabilities while fitting comfortably within the me

13 June 2025

Practice API Design-first in Apidog

Discover an easier way to build and use APIs