unreal-python-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@unreal-python-mcpexecute print('Hello World') in Unreal Editor"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
unreal-python-mcp
MCP (Model Context Protocol) server for Unreal Python API documentation and execution.
Enables AI coding assistants like Claude Code to:
Browse Unreal Python API documentation
Search for classes and functions
Execute Python code in Unreal Editor
Installation
# Clone the repository
git clone https://github.com/self-taught-code-tokushima/unreal-python-mcp.git
cd unreal-python-mcp
# Install with uv
uv syncRelated MCP server: unreal-mcp
Claude Code Setup
Add to your Claude Code MCP configuration (~/.config/claude/mcp.json or project-level .mcp.json):
{
"mcpServers": {
"unreal-python": {
"command": "uv",
"args": ["--directory", "D:\\UnrealProjects\\unreal-python-mcp", "run", "unreal-python-mcp"]
}
}
}or
{
"mcpServers": {
"unreal-python": {
"command": "uvx",
"args": ["--from", "git+https://github.com/self-taught-code-tokushima/unreal-python-mcp", "unreal-python-mcp"]
}
}
}Requirements
Python 3.13+
Unreal Editor with Python plugin enabled
"Enable Remote Execution" checked in Editor Preferences > Plugins > Python
Custom Modules Support
In addition to the built-in unreal module, you can document custom Python modules available in your Unreal Editor environment (e.g., MaterialGraphEditor).
Setup
Add the env section to your MCP configuration with the UNREAL_PYTHON_CUSTOM_MODULES environment variable:
{
"mcpServers": {
"unreal-python": {
"command": "uvx",
"args": ["--from", "git+https://github.com/self-taught-code-tokushima/unreal-python-mcp", "unreal-python-mcp"],
"env": {
"UNREAL_PYTHON_CUSTOM_MODULES": "YourCustomModule1,YourCustomModule2"
}
}
}
}Refreshing Cache with Custom Modules
After configuring custom modules, refresh the cache to include them:
# Windows PowerShell
$env:UNREAL_PYTHON_CUSTOM_MODULES="MaterialGraphEditor,BlueprintGraphEditor"
uvx unreal-python-mcp-refresh
# Or with uv run
$env:UNREAL_PYTHON_CUSTOM_MODULES="MaterialGraphEditor,BlueprintGraphEditor"
uv run unreal-python-mcp-refresh# Linux/macOS
UNREAL_PYTHON_CUSTOM_MODULES="MaterialGraphEditor,BlueprintGraphEditor" uvx unreal-python-mcp-refreshNotes
Specify multiple modules as comma-separated values
Custom modules will appear in the module list alongside built-in modules
The MCP server will automatically use the configured modules when it starts
Available Tools
Tool | Description |
| Search API by class/function name |
| Get class overview (member name lists, 1-3KB) |
| Get detailed info for a specific member |
| Get detailed info for multiple members (batch) |
| List available Unreal modules |
| Execute Python code in Unreal Editor |
| List available Unreal Editor instances |
| Refresh API documentation cache (also available as CLI: |
Available Resources
Hierarchical Index
Classes are organized by module to minimize context usage.
Resource | Size | Description |
| ~2KB | Start here. API overview with module list |
| ~20-90KB | Classes for a specific module |
| ~50KB | All enums |
| ~200KB | All structs |
| ~10KB | All delegates |
Common modules:
Engine(994 classes): Core classes - Actor, World, GameplayStaticsUnrealEd(204 classes): Editor utilities - EditorAssetLibraryUMG(110 classes): UI/Widget classesNiagara(98 classes): Particle system
Class Documentation
Resource | Description |
| Detailed class documentation |
Usage Example
In Claude Code:
User: Actor クラスの位置を取得するメソッドを教えて
Claude: [Reads unreal-python://index/summary]
→ Engine モジュールに Actor があることを確認
[Reads unreal-python://index/module/Engine]
→ Actor: 145 methods, 48 properties
[Uses get_class_overview("Actor")]
→ メソッド名一覧を取得(1-2KB程度)
[Uses get_member_info("Actor", "get_actor_location")]
→ 詳細ドキュメントを取得
Actor の位置を取得するには get_actor_location() を使います。
返り値は Vector 型です。User: EditorAssetLibrary の使い方を教えて
Claude: [Reads unreal-python://index/summary]
→ UnrealEd モジュールにあることを確認
[Reads unreal-python://index/module/UnrealEd]
[Uses get_class_overview("EditorAssetLibrary")]
→ メソッド名一覧を取得
EditorAssetLibrary はエディタ専用のアセット操作ユーティリティです...User: Unreal で Hello World を出力して
Claude: [Uses exec_unreal_python("print('Hello World')")]
実行結果: Hello WorldFirst-time Setup
Start Unreal Editor with a project
Enable Python Remote Execution in Editor Preferences (Editor Preferences > Plugins > Python > Enable Remote Execution)
Refresh the API documentation cache:
# Using uvx (recommended)
uvx unreal-python-mcp-refresh
# Or with uv run (if you cloned the repository)
uv run unreal-python-mcp-refreshAlternatively, you can use the refresh_api_cache MCP tool from Claude Code after connecting to the MCP server.
Development
# Run MCP dev server (with inspector)
uv run mcp dev src/unreal_python_mcp/server.py
# Run directly
uv run unreal-python-mcpLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/self-taught-code-tokushima/unreal-python-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server