Unreal Engine Blueprints with AI

Updated 2026-11-28 · Unreal MCP Pro 1.0.3

Blueprints are the backbone of most Unreal projects, and a lot of Blueprint work is assembly: the right parent class, a handful of components, some variables with sensible defaults, compile, place. Unreal MCP Pro gives the AI those steps. This guide shows them in order and is clear about the part it does not do yet.

What the AI can and cannot do

1. Create the class

create_blueprint { "name": "BP_Pickup", "path": "/Game/Blueprints", "parent_class": "Actor" }

parent_class defaults to Actor; Pawn, Character, GameModeBase, PlayerController or your own C++ classes work the same way.

2. Add components

add_blueprint_component { "blueprint": "/Game/Blueprints/BP_Pickup", "component_class": "StaticMeshComponent", "component_name": "Mesh" }
add_blueprint_component { "blueprint": "/Game/Blueprints/BP_Pickup", "component_class": "SphereComponent", "component_name": "Trigger" }
add_blueprint_component { "blueprint": "/Game/Blueprints/BP_Pickup", "component_class": "PointLightComponent", "component_name": "Glow" }

3. Variables and defaults

create_blueprint_variable { "blueprint": "/Game/Blueprints/BP_Pickup", "name": "Points", "type": "Int" }
create_blueprint_variable { "blueprint": "/Game/Blueprints/BP_Pickup", "name": "bRespawns", "type": "Bool" }
compile_blueprint         { "blueprint": "/Game/Blueprints/BP_Pickup" }
set_blueprint_default     { "blueprint": "/Game/Blueprints/BP_Pickup", "property": "Points", "value": "10" }
set_blueprint_default     { "blueprint": "/Game/Blueprints/BP_Pickup", "property": "bRespawns", "value": "true" }

set_blueprint_default sets a property on the class defaults (the CDO), so compile first: new variables only exist on the generated class after a compile.

Known gaps in 1.0.3: the default_value argument of create_blueprint_variable is not applied (use set_blueprint_default as above), and Float and Vector variables are created without the sub-type UE5 expects, so check them in the Blueprint editor. Bool, Int, String, Name and Text are plain types. Component settings such as a mesh are easiest to set on a placed instance with set_component_property, or through execute_python.

4. Compile and inspect

compile_blueprint compiles and reports errors; get_blueprint_info returns the parent class, components and variables so the AI can confirm the result before moving on.

5. Place it in the level

spawn_actor takes the generated class name, for example BP_Pickup_C; the Blueprint must be loaded, which it is right after you create or compile it. Then list_components and set_component_property on the instance (for example the mesh), or batch_spawn_actors for many copies.

Where the logic goes

Because graphs are not edited in 1.0.3, split the work: let the AI build the class, components, variables and defaults, and wire the event graph yourself (it is usually a few nodes once the structure exists). Alternatively keep behaviour in C++: an AI client like Claude Code can write the C++ class in your project with its own file tools, and the Blueprint just inherits from it with parent_class.

Widget Blueprints (UMG)

create_widget_blueprint { "name": "WBP_HUD", "path": "/Game/UI" }
add_widget_child { "widget": "/Game/UI/WBP_HUD", "child_class": "CanvasPanel", "name": "Root" }
add_widget_child { "widget": "/Game/UI/WBP_HUD", "child_class": "TextBlock", "name": "ScoreText" }
set_widget_property { "widget": "/Game/UI/WBP_HUD", "target": "ScoreText", "property": "text", "value": "Score: 0" }
get_widget_info { "widget": "/Game/UI/WBP_HUD" }

Bindings (set_widget_binding) need graph functions and are not created in 1.0.3; set them in the Widget Designer.

Animation Blueprints

create_anim_blueprint for a skeleton, set_anim_blueprint to assign it to a skeletal mesh component on an actor, plus create_blend_space and create_anim_montage for the assets around it. The AnimGraph itself is edited in the editor.

Example prompt

Create BP_Pickup under /Game/Blueprints (parent Actor) with a StaticMeshComponent "Mesh",
a SphereComponent "Trigger" and a PointLightComponent "Glow". Add an Int variable
Points (default 10) and a Bool bRespawns (default true). Compile it, show me get_blueprint_info,
then place three of them 3 m apart in front of PlayerStart and set their mesh
to /Engine/BasicShapes/Sphere.Sphere.

Get Unreal MCP Pro
$5 once on itch.io, free updates.

itch.io · $5

More guides