Logo von Unreal Engine MCP Python Bridge Plugin

Unreal Engine MCP Python Bridge Plugin

Community
appleweed

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

Herausgeberappleweed
RepositoryUnrealMCPBridge
SpracheC++
Forks
16
Sterne
65
Verfügbare Tools
0
Transporttypstdio
Kategorien
LizenzMIT
Links
  • Tools mit KI-Workflows verbinden

    Unreal Engine MCP Python Bridge Plugin stellt MCP-Funktionen bereit, die kompatible KI-Clients und Agenten nutzen können.

  • 0 verfügbare Tools

    Sehen Sie sich unten die aufrufbaren Aktionen an, einschließlich Namen und Beschreibungen, sofern der Server diese bereitstellt.

  • Konfiguration zum Kopieren

    Nutzen Sie die Installationsbeispiele, um diesen Server in Ihrem bevorzugten MCP-Client zu konfigurieren.

  • Open-Source-Kennzahlen

    65 Sterne und 16 Forks im verlinkten Repository.

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.

Installation

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

Unreal Engine MCP Python Bridge Plugin MCP mit mehreren KI-Modellen nutzen

TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. Sobald Unreal Engine MCP Python Bridge Plugin verbunden ist, können Sie die Integration mit verschiedenen KI-Modellen in TypingMind verwenden, statt sie für jedes Modell separat einzurichten. Diese MCP-Integration läuft lokal über den TypingMind-MCP-Konnektor auf Ihrem Gerät.

Einrichtungsanleitung für den lokalen Konnektor

Nutzen Sie diese Option, wenn der MCP-Server Zugriff auf lokale Dateien, Apps oder private Ressourcen auf Ihrem Computer benötigt.

1

MCP-Einstellungen öffnen

Gehen Sie in TypingMind zu „Einstellungen“, „Erweiterte Einstellungen“ und dann „Model Context Protocol“ und wählen Sie „Konnektor-Setup“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Klicken Sie auf das Symbol „Optionen“.
  3. Gehen Sie zu „Erweiterte Einstellungen“.
  4. Öffnen Sie den Abschnitt „Model Context Protocol“.
  5. Klicken Sie auf „Konnektor-Setup“ und wählen Sie „Dieses Gerät“.
Einrichtungsbildschirm des TypingMind-MCP-Konnektors mit ausgewählter Option „Dieses Gerät“
2

Konnektor-Befehl ausführen

Wählen Sie „Dieses Gerät“, kopieren Sie den Befehl aus TypingMind und führen Sie ihn im Terminal aus. Lassen Sie den Prozess laufen, solange Sie MCP verwenden.

  1. Kopieren Sie den in TypingMind angezeigten Einrichtungsbefehl.
  2. Öffnen Sie unter macOS Terminal bzw. unter Windows Windows Terminal.
  3. Fügen Sie den Befehl ein und führen Sie ihn aus.
  4. Bestätigen Sie die Paketinstallation, wenn Sie im Terminal zum Fortfahren aufgefordert werden.
  5. Lassen Sie das Terminalfenster geöffnet und den Prozess darin laufen, solange Sie MCP-Tools verwenden.
3

Unreal Engine MCP Python Bridge Plugin als Server hinzufügen

Wenn der Konnektorstatus „Bereit“ anzeigt, klicken Sie auf „Server ändern“ und fügen Sie die MCP-Server-Konfiguration ein.

  1. Warten Sie, bis der Konnektorstatus „Bereit“ anzeigt.
  2. Klicken Sie auf „Server ändern“.
  3. Fügen Sie die MCP-Server-Konfiguration für Unreal Engine MCP Python Bridge Plugin ein.
  4. Speichern Sie die Serverliste.
  5. Aktualisieren Sie die Ansicht, um bei Bedarf zu prüfen, ob der Konnektor weiterhin bereit ist.
MCP-Einstellungen in TypingMind mit aktivem Server und der Schaltfläche „Server ändern“
{
  "mcpServers": {
    "unrealmcpbridge": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Verbindung modellübergreifend nutzen

Speichern Sie die Serverliste, öffnen Sie „Plugins“ und aktivieren Sie die MCP-Tools von Unreal Engine MCP Python Bridge Plugin. Wählen Sie dann ein beliebiges unterstütztes KI-Modell in TypingMind und verwenden Sie die Tools im Chat oder weisen Sie sie einem KI-Agenten zu.

  1. Öffnen Sie die Seite „Plugins“ in TypingMind.
  2. Aktivieren Sie die MCP-Tools von Unreal Engine MCP Python Bridge Plugin.
  3. Starten Sie einen Chat und wählen Sie das KI-Modell, das Sie verwenden möchten.
  4. Nutzen Sie die MCP-Tools im Chat oder weisen Sie sie einem KI-Agenten zu.
  5. Wechseln Sie bei Bedarf zu einem anderen KI-Modell, ohne die MCP-Verbindung erneut herzustellen.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit Unreal Engine MCP Python Bridge Plugin bei dieser Aufgabe helfen?
Unreal Engine MCP Python Bridge Plugin
Gerne. Ich habe es gelesen.
Das habe ich mit Unreal Engine MCP Python Bridge Plugin gefunden.

Häufig gestellte Fragen

Wofür wird der MCP-Server Unreal Engine MCP Python Bridge Plugin verwendet?

Unreal Engine MCP Python Bridge Plugin ist ein MCP-Server, über den kompatible KI-Clients auf externe Tools und Kontext zugreifen können. In TypingMind können Sie diesen MCP-Server einmal hinzufügen und seine Tools in Ihrem KI-Arbeitsbereich verfügbar machen.

Kann ich Unreal Engine MCP Python Bridge Plugin MCP mit mehreren KI-Modellen in TypingMind verwenden?

Ja. TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. So können Sie Unreal Engine MCP Python Bridge Plugin mit verschiedenen KI-Modellen wie Claude, ChatGPT, Gemini oder anderen in TypingMind konfigurierten Modellen verwenden, ohne den MCP-Server für jedes Modell separat einzurichten.

Warum Unreal Engine MCP Python Bridge Plugin MCP mit TypingMind nutzen?

TypingMind ist eine der besten Oberflächen für LLM-Chats, da es mehrere KI-Modelle, Prompts, Plugins, KI-Agenten, API-Schlüssel und MCP-Tools in einem Arbeitsbereich vereint. Sobald Unreal Engine MCP Python Bridge Plugin verbunden ist, können Sie die zugehörigen MCP-Tools mit Ihren bevorzugten Modellen nutzen und Ihre Chat-Abläufe in TypingMind übersichtlich organisieren.

Wie verbinde ich Unreal Engine MCP Python Bridge Plugin MCP mit TypingMind?

Unreal Engine MCP Python Bridge Plugin wird über den lokalen MCP-Konnektor von TypingMind angebunden. Das ist die beste Wahl, wenn der MCP-Server auf lokale Dateien, Desktop-Apps, Befehlszeilentools oder private Ressourcen auf Ihrem Computer zugreifen muss.

Welche Tools stellt Unreal Engine MCP Python Bridge Plugin MCP in TypingMind bereit?

Unreal Engine MCP Python Bridge Plugin stellt MCP-Funktionen bereit, die Sie auf der Plugins-Seite in TypingMind aktivieren und im Chat verwenden oder KI-Agenten zuweisen können.

Muss ich meine API-Schlüssel mit TypingMind teilen, um Unreal Engine MCP Python Bridge Plugin MCP zu verwenden?

Nein. TypingMind arbeitet vorrangig lokal, sodass Sie die Kontrolle über Ihre Modellanbieter, API-Schlüssel, Prompts und MCP-Konfiguration behalten. Falls Unreal Engine MCP Python Bridge Plugin eine Authentifizierung erfordert, fügen Sie beim Erstellen der Verbindung die erforderlichen Header, OAuth-Einstellungen oder die lokale Konfiguration für diesen MCP-Server hinzu.

Ähnliche MCP-Server

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇