Логотип Unreal Engine MCP Python Bridge Plugin

Unreal Engine MCP Python Bridge Plugin

Спільнота
appleweed

An Unreal Engine plugin that implements an MCP server allowing MCP clients to access the UE Editor Python API.

Видавецьappleweed
РепозиторійUnrealMCPBridge
МоваC++
Форки
16
Зірки
65
Доступні інструменти
0
Тип транспортуstdio
Категорії
ЛіцензіяMIT
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    Unreal Engine MCP Python Bridge Plugin надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 0

    Перегляньте нижче дії, які можна викликати, з назвами й описами, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до відкритого коду

    Зірки: 65, форки: 16 — у пов’язаному репозиторії.

Unreal Engine MCP Python Bridge Plugin

This is a plugin for Unreal Engine (UE) that creates a server implementation of Model Context Protocol (MCP). This allows MCP clients, like Anthropic's Claude, to access the full UE Python API.

Use Cases

  • Developing tools and workflows in Python with an agent like Claude.
  • Intelligent and dynamic automation of such workflows.
  • General collaborative development with an agent.

Prerequisites

  • Python 3.10 or higher available on your system PATH, with the official MCP Python SDK installed:

    bash
    pip install mcp

    This is the only Python dependency. The client script unreal_mcp_client.py uses from mcp.server.fastmcp import FastMCP to expose the bridge tools to your agent. A MCPClient/requirements.txt file is provided for convenience (pip install -r MCPClient/requirements.txt). Note: this is your system Python — the script runs as a subprocess of your agent, not inside the editor's bundled Python.

  • An AI Agent. Below, we assume Claude will be used. But any AI Agent that implements MCP should suffice.

  • Unreal Engine 5 with the Python Editor Script Plugin enabled.

  • Visual Studio 2019 or higher (only needed if building the plugin from source — not required for the Fab install).

  • Note the Unreal Engine Python API.

Installing from Fab

The easiest way to install the MCP Python Bridge plugin is from the Fab store listing. Once you purchase the plugin, it will appear in your Library in the Epic Games Launcher. Click "Install to Engine" and choose the appropriate version of Unreal Engine.

Installing from GitHub

  1. Create a new Unreal Engine C++ project.
  2. Under the project root directory, find the Plugins folder.
  3. Clone this repo into the Plugins folder so that there is a new containing folder with all the project contents underneath.
  4. Right-click your UE project file (ends with .uproject) and select "Generate Visual Studio project files". If you don't immediately see that option, first select "Show more options" and it should appear.
  5. Open your new Visual Studio project and build.
  6. Copy unreal_mcp_client.py from the 'MCPClient' folder to a location of your choice.
  7. Find your claude_desktop_config.json configuration file. Mac location: ~/Library/Application\ Support/Claude/claude_desktop_config.json Windows location: [path_to_your_user_account]\AppData\Roaming\Claude\claude_desktop_config.json
  8. Add the unreal-engine server section to your config file and update the path location excluding the square brackets, below. Mac path format: /[path_from_step_4]/unreal_mcp_client.py Windows path format: C:\\[path_from_step_4]\\unreal_mcp_client.py
json
{
  "mcpServers": {
    "unreal-engine": {
      "command": "python",
      "args": [
        "[mac_or_windows_format_path_to_unreal_mcp_client.py]"
      ]
    } 
  }
}
  1. Start Unreal Engine and load your new project.
  2. Enable the new UnrealMCPBridge plugin, and restart.
  3. There should be a new toolbar button that says, "Start MCP Bridge" when you hover with your mouse.
  4. Click the MCP Bridge button. A pop-up will state, "MCP Python bridge running." The Output Log will note a new socket server listening on 127.0.0.1:9000.
  5. Launch Claude as an administrator.
  6. Click the "Attach from MCP" plug-icon. Under "Choose an integration" are two test Prompts: create_castle and create_town. You can edit their implementations in unreal_server_init.py under the Content folder of the plugin. Be sure to restart Unreal Engine after any changes.
  7. Alternatively, ask Claude to build in your project using the UE Python API.
  8. A list of currently implemented tools can be found by clicking the hammer-icon to the left of the plug-icon.

Developing New Tools and Prompts

Examine at unreal_mcp_client.py and you'll see how MCP defines tools and prompts using Python decorators above functions. As an example:

@mcp.tool()
def get_project_dir() -> str:
    """Get the top level project directory"""
    result = send_command("get_project_dir")
    if result.get("status") == "success":
        response = result.get("result")
        return response
    else:
        return json.dumps(result)

This sends the get_project_dir command to Unreal Engine for execution and returns the project level directory for the current project. Under the Content folder of the plugin, you will see the server-side implementation of this tool command:

@staticmethod
def get_project_dir():
    """Get the top level project directory"""
    try:
        project_dir = unreal.Paths.project_dir()
        return json.dumps({
            "status": "success",
            "result" : f"{project_dir}"
        })
    except Exception as e:
        return json.dumps({ "status": "error", "message": str(e) })

Follow this pattern to create new tools the appear in the Claude desktop interface under the hammer-icon.

Implementing new prompts is a matter of adding them to unreal_mcp_client.py. As an example, here is the create_castle prompt from unreal_mcp_client.py:

@mcp.prompt()
def create_castle() -> str:
    """Create a castle"""
    return f"""
Please create a castle in the current Unreal Engine project.
0. Refer to the Unreal Engine Python API when creating new python code: https://dev.epicgames.com/documentation/en-us/unreal-engine/python-api/?application_version=5.5
1. Clear all the StaticMeshActors in the scene.
2. Get the project directory and the content directory.
3. Find basic shapes to use for building structures.
4. Create a castle using these basic shapes.
"""

Be sure to maintain triple-quotes so the entire prompt is returned. A good way to iterate over creating prompts is simply iterating each step number with Claude until you get satisfactory results. Then combine them all into a numbered step-by-step prompt as shown.

You must restart Claude for any changes to unreal_mcp_client.py to take effect. Note for Windows, you might need to end the Claude process in the Task Manager to truly restart Claude.

Встановлення

TypingMind
{
  "mcpServers": {
    "unrealmcpbridge": {
      "command": "python",
      "args": [
        "[mac_or_windows_format_path_to_unreal_mcp_client.py]"
      ]
    }
  }
}

Використовуйте MCP Unreal Engine MCP Python Bridge Plugin з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення Unreal Engine MCP Python Bridge Plugin ви можете використовувати їх із різними моделями ШІ в TypingMind, а не налаштовувати окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Параметри конектора».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Параметри конектора» й виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо термінал запитає дозволу продовжити.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте Unreal Engine MCP Python Bridge Plugin як сервер

Коли статус конектора зміниться на «Готово», натисніть «Змінити сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Змінити сервери».
  3. Вставте конфігурацію сервера MCP Unreal Engine MCP Python Bridge Plugin.
  4. Збережіть список серверів.
  5. Оновіть дані, щоб переконатися, що конектор досі готовий до роботи.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Змінити сервери»
{
  "mcpServers": {
    "unrealmcpbridge": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для Unreal Engine MCP Python Bridge Plugin, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для Unreal Engine MCP Python Bridge Plugin.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через Unreal Engine MCP Python Bridge Plugin?
Unreal Engine MCP Python Bridge Plugin
Звісно. Я це прочитав.
Ось що я знайшов за допомогою Unreal Engine MCP Python Bridge Plugin.

Поширені запитання

Для чого використовується сервер MCP Unreal Engine MCP Python Bridge Plugin?

Unreal Engine MCP Python Bridge Plugin — це сервер MCP, який дає змогу сумісним клієнтам ШІ підключатися до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати MCP Unreal Engine MCP Python Bridge Plugin з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати Unreal Engine MCP Python Bridge Plugin з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати MCP Unreal Engine MCP Python Bridge Plugin із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши Unreal Engine MCP Python Bridge Plugin, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити MCP Unreal Engine MCP Python Bridge Plugin до TypingMind?

Unreal Engine MCP Python Bridge Plugin працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає MCP Unreal Engine MCP Python Bridge Plugin у TypingMind?

Unreal Engine MCP Python Bridge Plugin надає можливості MCP, які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно передавати свої ключі API в TypingMind, щоб використовувати MCP Unreal Engine MCP Python Bridge Plugin?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає змогу зберігати контроль над постачальниками моделей, ключами API, промптами та конфігурацією MCP. Якщо Unreal Engine MCP Python Bridge Plugin потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇