● Communauté
ChiR24
⚡ Instantané
Unreal_mcp
par ChiR24 · ChiR24/Unreal_mcp
Drive Unreal Engine 5 from Claude — spawn actors, manage assets, run PIE, edit Blueprints, record cinematics via a native C++ automation bridge.
Unreal_mcp pairs a TypeScript MCP server with a C++ plugin you drop into your UE project. Exposes ~36 tools across asset/actor/level/sequencer/blueprint/effect/audio/system domains. Works with UE 5.0-5.7.
Pourquoi l'utiliser
Fonctionnalités clés
- 36 tools covering the main editor surface areas
- Native C++ Automation Bridge — not a scripting hack
- Supports UE 5.0 through 5.7, Windows/macOS/Linux
- Optional GraphQL endpoint for custom clients
Démo en direct
Aperçu en pratique
Cas d'usage
Usages concrets : Unreal_mcp
Quand l'utiliser : You want to rough-in a scene without clicking through content browser menus.
Prérequis
- Unreal Engine 5.x project with McpAutomationBridge plugin enabled — Copy plugins/McpAutomationBridge into your project's Plugins folder, restart editor
- UE_PROJECT_PATH env var — Absolute path to your .uproject file
Déroulement
-
Spawn the basics
Create a new empty level 'Prototype_01'. Spawn a ThirdPersonCharacter at origin, a DirectionalLight at 30° pitch, and a floor plane.✓ Copié
→ Level saved with the three actors
-
Populate props
Scatter 20 instances of StaticMesh_Tree in a 50m radius. Add SkySphere with a sunset preset.✓ Copié
→ Visible trees + sunset atmosphere
-
Enter PIE to playtest
Start Play In Editor and capture a screenshot after 3 seconds.✓ Copié
→ Screenshot showing the running scene
Résultat : A playable whitebox scene in under 10 minutes.
Pièges
- Plugin version mismatch with UE version — Rebuild the plugin against your exact UE version; check UBT output
- Port 8091 already in use — Set MCP_AUTOMATION_PORT to a free port in both env and plugin settings
Quand l'utiliser : You need to add a simple node or variable without breaking flow from coding.
Déroulement
-
Identify the target BP
List all Blueprints under /Game/Characters. Return paths.✓ Copié
→ List
-
Add a node
In BP_PlayerCharacter, add a PrintString node connected to BeginPlay, text 'Hello from MCP'.✓ Copié
→ BP recompiles cleanly; PIE shows the text
Résultat : Small BP changes without alt-tabbing.
Pièges
- BP compile errors silently fail — Always ask for the compile log after an edit
Quand l'utiliser : You need 10 beauty shots of your game for a trailer or press kit.
Déroulement
-
Define camera positions
Given these 10 transforms [list], move the editor camera to each and capture a 4K screenshot.✓ Copié
→ 10 PNGs in ./Saved/Screenshots
-
Batch rename
Rename them to <level>_<angle>_<timestamp>.png✓ Copié
→ Clean filenames
Résultat : Press-kit-ready screenshots in minutes.
Combinaisons
Associez-le à d'autres MCPs pour un effet X10
Store procedurally generated level definitions as JSON, rebuild levels from them
Read ./levels/forest.json, create a new UE level and spawn the actors described.✓ Copié
HUD mockups in Figma → Widget Blueprint in UE
Export the selected HUD frame from Figma; recreate the layout in a UMG Widget Blueprint in my UE project.✓ Copié
Coût et limites
Coût d'exécution
- Quota d'API
- None — local
- Tokens par appel
- 100–2000 per tool
- Monétaire
- Free; requires Unreal Engine (also free up to thresholds)
- Astuce
- Batch operations inside a single transaction — single undo entry and faster
Sécurité
Permissions, secrets, portée
Stockage des identifiants : None
Sortie de données : Localhost only (MCP_AUTOMATION_PORT)
Dépannage
Erreurs courantes et correctifs
Plugin not found / editor crashes on load
Rebuild against current UE version: right-click .uproject → Generate Project Files → rebuild in IDE
Vérifier : Plugin shows as 'Enabled' in Edit → Plugins
Automation port refused
Ensure UE editor is running and the plugin has started its listener (check Output Log for 'MCP bridge listening')
Vérifier : telnet 127.0.0.1 8091
Asset import fails silently
Check UE's Message Log — many errors surface there but not to MCP
Alternatives
Unreal_mcp vs autres
| Alternative | Quand l'utiliser | Compromis |
| UE Python scripting | You want direct Python control and don't need an agent layer | No MCP, no LLM-friendly surface |
| Blender MCP | You're in Blender not Unreal | Different engine entirely |