Logotipo de UnrealMCP 插件

UnrealMCP 插件

Comunidad
kvick-games

MCP to allow AI agents to control Unreal

Editorkvick-games
RepositorioUnrealMCP
IdiomaC++
Forks
82
Estrellas
612
Herramientas disponibles
0
Tipo de transportestdio
Categorías
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    UnrealMCP 插件 ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 0 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés en el código abierto

    612 estrellas y 82 forks en el repositorio enlazado.

UnrealMCP Plugin

Discord

VERY WIP REPO

I'm working on adding more tools now and cleaning up the codebase, I plan to allow for easy tool extension outside the main plugin

This is very much a work in progress, and I need to clean up a lot of stuff!!!!!

Also, I only use windows, so I don't know how this would be setup for mac/unix

Overview

UnrealMCP is an Unofficial Unreal Engine plugin designed to control Unreal Engine with AI tools. It implements a Machine Control Protocol (MCP) within Unreal Engine, allowing external AI systems to interact with and manipulate the Unreal environment programmatically.

I only just learned about MCP a few days ago, so I'm not that familiar with it, I'm still learning so things might be initially pretty rough. I've implemented this using https://github.com/ahujasid/blender-mcp as a reference, which relies on claude for desktop. It may or may not work with other models, if you experiment with any, please let me know!

⚠️ DISCLAIMER

This plugin allows AI agents to directly modify your Unreal Engine project. While it can be a powerful tool, it also comes with risks:

  • AI agents may make unexpected changes to your project
  • Files could be accidentally deleted or modified
  • Project settings could be altered
  • Assets could be overwritten

IMPORTANT SAFETY MEASURES:

  1. Always use source control (like Git or Perforce) with your project
  2. Make regular backups of your project
  3. Test the plugin in a separate project first
  4. Review changes before committing them

By using this plugin, you acknowledge that:

  • You are solely responsible for any changes made to your project
  • The plugin author is not responsible for any damage, data loss, or issues caused by AI agents
  • You use this plugin at your own risk

Features

  • TCP server implementation for remote control of Unreal Engine
  • JSON-based command protocol for AI tools integration
  • Editor UI integration for easy access to MCP functionality
  • Comprehensive scene manipulation capabilities
  • Python companion scripts for client-side interaction

Roadmap

These are what I have in mind for development as of 3/14/2025 I'm not sure what's possible yet, in theory anything, but it depends on how good the integrated LLM is at utilizing these tools.

  • Basic operations working
  • Python working
  • Materials
  • User Extensions (in progress)
  • Asset tools
  • Blueprints
  • Niagara VFX
  • Metasound
  • Landscape (I might hold off on this because Epic has mentioned they are going to be updating the landscape tools)
  • Modeling Tools
  • PCG

Requirements

  • Unreal Engine 5.5 (I have only tested on this version, may work with earlier, but no official support)
  • C++ development environment configured for Unreal Engine
  • Python 3.7+ for client-side scripting
  • Model to run the commands, in testing I've been using Claude for Desktop https://claude.ai/download

Installation

  1. Clone this repository into your Unreal project's Plugins directory:

    git clone https://github.com/kvick-games/UnrealMCP.git Plugins/UnrealMCP

    The project path should match this pattern like so: ...\UNREAL_PROJECT\Plugins\UnrealMCP\

  2. Regenerate your project files (right-click your .uproject file and select "Generate Visual Studio project files")

  3. Build the project in whatever IDE you use, I use Rider, Visual Studio works (working on releases now)

  4. Open your project and enable the plugin in Edit > Plugins > UnrealMCP

  5. Enable Python plugins in Unreal

  6. Run setup_unreal_mcp.bat (I probably need to make some fixes to this file as more people try it out)

  7. Currently I've only tested with Claude for Desktop so follow the instructions below to continue

With Claude for Desktop

You will need to find your installation directory for claude for desktop. Find claude_desktop_config.json and add an entry and make it look like so:

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

IN THE COMMAND FIELD PUT YOUR PATH TO YOUR PLUGIN DIRECTORY POINTED TO THE SCRIPT: "run_unreal_mcp.bat" This script is located within ../plugin_root_directory/MCP/run_unreal_mcp.bat

You can refer to this link for more info: https://modelcontextprotocol.io/quickstart/user

To find the path to your claude for desktop install you can go into settings and click 'Edit Config' On my Windows PC the path is: C:\Users\USERNAME\AppData\Roaming\Claude

Usage

In Unreal Editor

Once the plugin is enabled, you'll find MCP controls in the editor toolbar button. image

image

The TCP server can be started/stopped from here. Check the output log under log filter LogMCP for extra information.

Once the server is confirmed up and running from the editor. Open Claude for Desktop, ensure that the tools have successfully enabled, ask Claude to work in unreal.

Currently only basic operations are supported, creating objects, modfiying their transforms, getting scene info, and running python scripts. Claude makes a lot of errors with unreal python as I believe there aren't a ton of examples for it, but let it run and it will usually figure things out. I would really like to improve this aspect of how it works but it's low hanging fruit for adding functionality into unreal.

Client-Side Integration

Use the provided Python scripts in the MCP directory to connect to and control your Unreal Engine instance:

python
from unreal_mcp_client import UnrealMCPClient

# Connect to the Unreal MCP server
client = UnrealMCPClient("localhost", 13377)

# Example: Create a cube in the scene
client.create_object(
    class_name="StaticMeshActor",
    asset_path="/Engine/BasicShapes/Cube.Cube",
    location=(0, 0, 100),
    rotation=(0, 0, 0),
    scale=(1, 1, 1),
    name="MCP_Cube"
)

Command Reference

The plugin supports various commands for scene manipulation:

  • get_scene_info: Retrieve information about the current scene
  • create_object: Spawn a new object in the scene
  • delete_object: Remove an object from the scene
  • modify_object: Change properties of an existing object
  • execute_python: Run Python commands in Unreal's Python environment
  • And more to come...

Refer to the documentation in the Docs directory for a complete command reference.

Security Considerations

  • The MCP server accepts connections from any client by default
  • Limit server exposure to localhost for development
  • Validate all incoming commands to prevent injection attacks

Troubleshooting

  • Ensure Unreal Engine is running with the MCP plugin.
  • Check logs in Claude for Desktop for stderr output.
  • Reach out on the discord, I just made it, but I will check it periodically Discord (Dreamatron Studios): https://discord.gg/abRftdSe

Project Structure

  • Source/UnrealMCP/: Core plugin implementation
    • Private/: Internal implementation files
    • Public/: Public header files
  • Content/: Plugin assets
  • MCP/: Python client scripts and examples
  • Resources/: Icons and other resources

License

MIT License

Copyright (c) 2025 kvick

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Credits

Thank you to testers!!!

Contributing

Contributions are welcome, but I will need some time to wrap my head around things and cleanup first, lol

Instalación

TypingMind
{
  "mcpServers": {
    "unrealmcp": {
      "command": "cmd.exe",
      "args": [
        "/c",
        "Plugins/UnrealMCP/MCP/run_unreal_mcp.bat"
      ]
    }
  }
}

Usa el MCP de UnrealMCP 插件 con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado UnrealMCP 插件, puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Esta integración MCP se ejecuta localmente en tu dispositivo a través del conector MCP de TypingMind.

Guía de configuración para usar el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade UnrealMCP 插件 como servidor

Cuando el estado del conector sea «Listo», haz clic en «Edita servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en Edita servidores.
  3. Pega la configuración del servidor MCP de UnrealMCP 插件.
  4. Guarda la lista de servidores.
  5. Actualiza para comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Edita servidores»
{
  "mcpServers": {
    "unrealmcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Úsala con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de UnrealMCP 插件 y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de UnrealMCP 插件.
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar UnrealMCP 插件 para ayudarme con esta tarea?
UnrealMCP 插件
Claro. Lo he leído.
Esto he encontrado usando UnrealMCP 插件.

Preguntas frecuentes

¿Para qué sirve el servidor MCP UnrealMCP 插件?

UnrealMCP 插件 es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas y contexto externos. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP UnrealMCP 插件 con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar UnrealMCP 插件 con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el conector MCP de UnrealMCP 插件 con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves de API y herramientas MCP en un solo espacio de trabajo. Con UnrealMCP 插件 conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu flujo de trabajo de chat en TypingMind.

¿Cómo conecto el servidor MCP UnrealMCP 插件 a TypingMind?

UnrealMCP 插件 funciona a través del conector MCP local de TypingMind. Es la mejor opción cuando el servidor MCP necesita acceder a archivos locales, aplicaciones de escritorio, herramientas de línea de comandos o recursos privados de tu ordenador.

¿Qué herramientas ofrece el servidor MCP UnrealMCP 插件 en TypingMind?

UnrealMCP 插件 ofrece funciones MCP que puedes activar desde la página Plugins de TypingMind y usar en el chat o asignar a agentes de IA.

¿Tengo que compartir mis claves de API con TypingMind para usar el servidor MCP UnrealMCP 插件?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves de API, prompts y configuración MCP. Si UnrealMCP 插件 requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver todos

Crea ya tu propio espacio de trabajo IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇