Skip to main content
Glama

unreal-mcp

Claude から実行中の Unreal Engine エディタを操作する MCP サーバーです。

Epic 公式の Python Remote Execution プロトコルを使用します。 239.0.0.1:6766 への UDP マルチキャストでエディタのインスタンスを検出し、その後 TCP チャネルでエディタ内の Python を実行します。

Claude  ──stdio──▶  unreal-mcp  ──UDP discovery + TCP──▶  Unreal Editor (PythonScriptPlugin)

プロトコルのクライアント側はベンダリングされていません。サーバーは実行時にエンジンインストール内の Epic の remote_execution.py を探すため、エンジンバージョンが変わっても動作し続けます。

要件

  • Unreal Engine 5.x(5.6 で開発)

  • Python 3.10 以上、および uv

Related MCP server: unreal-mcp

セットアップ

1. Unreal でリモート実行を有効にする — ここが誰もが失敗するステップです

リモート実行はデフォルトでオフです。有効にしないと、エディタは検出から見えず、すべてのツールが失敗します。

  1. Edit > PluginsPython Editor Script Plugin を有効化 → 再起動。

  2. Edit > Project Settings > Plugins > PythonEnable Remote Execution にチェック。

  3. エディタを再起動。

2. インストール

cd unreal-mcp
uv sync

3. Claude に登録

claude_desktop_config.json に追加:

{
  "mcpServers": {
    "unreal": {
      "command": "uv",
      "args": ["--directory", "E:\\Maya\\unreal-mcp", "run", "unreal-mcp"]
    }
  }
}

その後、新しい会話を開始してください — セッション中に追加されたサーバーは、すでに実行中のチャットでは認識されません。

エンジンが標準以外の場所にある場合は、UNREAL_ENGINE_ROOT を設定します:

"env": { "UNREAL_ENGINE_ROOT": "D:\\Epic\\UE_5.6" }

ツール

ツール

読み取り専用

説明

unreal_get_status

エディタに到達可能か? どのプロジェクト、レベル、アクター数か。 何か失敗したらここから始めてください。

unreal_list_assets

コンテンツブラウザを参照(フィルタリング・ページング対応)

unreal_list_actors

開いているレベルのアクターとそのトランスフォーム

unreal_import_asset

自動パイプラインで FBX / OBJ / テクスチャをインポート

unreal_spawn_actor

コンテンツアセットをレベルに配置

unreal_set_actor_transform

配置済みアクターを移動 / 回転 / スケール

unreal_delete_actor

破壊的 — アクターを破棄します

unreal_set_viewport_camera

エディタのビューポートを向ける

unreal_take_screenshot

ビューポートの高解像度 PNG

unreal_save_all

変更されたアセットとレベルを保存

unreal_execute_python

脱出ハッチ: エディタ内で任意の Python を実行

リスト系ツールは limit / offset でページングし、has_morenext_offset を返します。

結果の返却方法

ツールのボディは、result 変数に代入してセンチネル間の JSON として出力するハーネスでエディタに送信されます。これにより、余分な print() や Unreal のログ行がペイロードを壊すのを防ぎ、エディタ内の例外を stdout に埋もれたトレースバックではなく構造化エラーに変換します。

セキュリティに関する注意

unreal_execute_python は、エディタのインタプリタ内でサンドボックス化されていないコードを、完全な unreal モジュールアクセス権で実行します。プロジェクトのコンテンツを変更または削除できます。エディタ自体の Python コンソールと同じ注意で扱ってください。

トラブルシューティング

「実行中の Unreal Editor が検出されませんでした」 — ほぼ常に上記の Enable Remote Execution 設定が原因です。unreal_get_status で確認してください。

「コマンド実行中に接続が失われました」 — エディタが閉じられたか、モーダルダイアログでブロックされています。ダイアログを閉じて再試行してください。セッションは自動的に再検出します。

複数のエディタが開いている場合 — 最初に検出されたノードが優先されます。 unreal_get_status で全リストが表示されるので、どれがどれか確認できます。

Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to interact with Unreal Editor 5 through the Python remote execution protocol. It allows for managing the editor lifecycle, configuring project settings, and executing Python scripts directly within the Unreal Engine environment.
    MIT
  • A
    license
    B
    quality
    B
    maintenance
    Enables Claude to control Unreal Engine 5 editor, spawn actors, build materials, author Blueprints, and more, with zero plugin installation.
    31
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    Bridges Claude AI to a live Unreal Engine 5 editor session, enabling natural language control of scene inspection, modification, logging, source search, console commands, and C++ class scaffolding.

View all related MCP servers

Related MCP Connectors

  • Control Unreal Engine to browse assets, import content, and manage levels and sequences. Automate…

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to control Unreal E…

  • Drive a live Cinevva game session: edit game files, import CC0 assets, preview changes.

View all MCP Connectors

Latest Blog Posts

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/Christancho-co/unreal-mcp'

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