Logo de Unreal-Blender MCP

Unreal-Blender MCP

Comunidade
tahooki

unreal-blender-mcp

Publicado portahooki
Repositóriounreal-blender-mcp
IdiomaPython
Forks
8
Estrelas
18
Ferramentas disponíveis
0
Tipo de transportestdio
Categorias
Links
  • Conecte ferramentas a fluxos de trabalho de IA

    Unreal-Blender MCP disponibiliza recursos MCP que podem ser usados por clientes e agentes de IA compatíveis.

  • Ferramentas disponíveis: 0

    Confira abaixo as ações que o cliente MCP pode executar, com nomes e descrições quando fornecidos pelo servidor.

  • Configuração pronta para copiar

    Use os exemplos de instalação para configurar este servidor no seu cliente MCP preferido.

  • Indicadores da comunidade de código aberto

    Estrelas: 18 e forks: 8 no repositório vinculado.

Unreal-Blender MCP

Unreal-Blender MCP is a unified server for controlling both Blender and Unreal Engine via AI agents using the MCP (Machine Control Protocol) approach.

Overview

This project extends the blender-mcp framework to include support for Unreal Engine, allowing AI agents like Claude and ChatGPT to simultaneously control both platforms through a single interface.

Submodule Information

This project includes blender-mcp as a Git submodule. When cloning the repository, use the following commands:

bash
# Clone with submodules
git clone --recursive https://github.com/tahooki/unreal-blender-mcp.git

# Or clone normally and then initialize submodules
git clone https://github.com/tahooki/unreal-blender-mcp.git
cd unreal-blender-mcp
git submodule update --init --recursive

Features

  • Unified Control: Single MCP server to control both Blender and Unreal Engine
  • AI Agent Integration: Designed to work with Claude, ChatGPT, and other AI assistants
  • Blender Features: Retains all blender-mcp functionality including:
    • Scene manipulation
    • Object creation and editing
    • Material management
    • PolyHaven asset integration
    • Hyper3D Rodin model generation
  • Unreal Engine Features:
    • Level creation and management
    • Asset importing
    • Python code execution
    • Scene manipulation
  • Extension Structure: Easily extend both Blender addon and server while maintaining compatibility with upstream updates

Architecture

The system consists of three main components:

  1. MCP Server: Central hub communicating with AI agents via SSE (Server-Sent Events) on port 8000
  2. Blender Addon: Socket server within Blender on port 8400 (standard) or 8401 (extended)
  3. Unreal Plugin: HTTP server within Unreal Engine on port 8500
[AI Agent] <--SSE--> [MCP Server (8300)] 
                        |
                        |--HTTP--> [Blender Addon (8400)]
                        |
                        |--HTTP--> [Unreal Plugin (8500)]

Extension Structure

This project uses an extension approach to maintain compatibility with upstream changes:

  • Blender Addon Extension: Extends the original BlenderMCPServer while keeping the original code intact
  • Server Extension: Enhances the original server with additional tools and Unreal Engine integration
  • Interface Tools: Provides utilities for installing, configuring, and running extensions

This approach allows easy updates from the original projects without code conflicts.

Step-by-Step Installation and Setup Guide

Prerequisites

  • Python 3.10 or later
  • Blender 3.0 or later
  • Unreal Engine 5.0 or later
  • uv package manager (install with pip install uv if you don't have it)

1. Clone the Repository

bash
# Clone with submodules (recommended)
git clone --recursive https://github.com/tahooki/unreal-blender-mcp.git
cd unreal-blender-mcp

# Or if you already cloned without --recursive:
git clone https://github.com/tahooki/unreal-blender-mcp.git
cd unreal-blender-mcp
git submodule update --init --recursive

2. Set Up Python Environment

bash
# Create a virtual environment and activate it
uv venv
# On Windows:
.\venv\Scripts\activate
# On macOS/Linux:
source venv/bin/activate

# Install project dependencies
uv pip install -e .

3. Install Blender Addon

Choose ONE of the following options:

Option A: Standard Addon (Original blender-mcp)

  1. Open Blender
  2. Navigate to Edit > Preferences > Add-ons
  3. Click "Install..." button
  4. Browse and select blender-mcp/addon.py file
  5. Enable the "Interface: Blender MCP" addon (check the box)

Option B: Extended Addon (With additional features)

  1. Run the extension installer script:
    bash
    python -c "from src.unreal_blender_mcp.blender_addon import BlenderAddonManager; BlenderAddonManager().install_to_blender(force=True)"
  2. Open Blender
  3. Navigate to Edit > Preferences > Add-ons
  4. Find and enable the "Interface: Extended Blender MCP" addon (check the box)

4. Install Unreal Engine Plugin

  1. Locate the UEPythonServer folder in this project
  2. Copy the entire folder to your Unreal project's Plugins directory
    • If your project doesn't have a Plugins directory, create one
  3. Start Unreal Engine with your project
  4. Navigate to Edit > Plugins in the menu
  5. Find and enable the Python Server plugin
  6. Restart Unreal Engine when prompted

5. Start the MCP Server

Choose ONE of the following options:

Option A: Standard Server

bash
# Make sure your virtual environment is activated
python main.py

Option B: Extended Server (More features)

bash
# Make sure your virtual environment is activated
python run_extended_server.py

# Optional: Customize server options
python run_extended_server.py --host 127.0.0.1 --port 8080 --log-level DEBUG

6. Enable the Blender Server Connection

  1. Start Blender (if not already running)
  2. In the 3D viewport, press N to open the sidebar panel
  3. Select the appropriate tab:
    • "BlenderMCP" (if using standard addon)
    • "ExtBlenderMCP" (if using extended addon)
  4. Click the "Start Server" button
  5. Verify the server starts successfully (check console output)

7. Verify Unreal Engine Connection

  1. With Unreal Engine running and plugin enabled
  2. The Python server should automatically start
  3. Check the Output Log (Window > Developer Tools > Output Log) for any messages
  4. The Unreal plugin should now be ready to receive commands

8. Connect an AI Agent

Option A: Integrate with Claude for Desktop

Add the following to Claude for Desktop's configuration:

json
{
    "mcpServers": {
        "unreal-blender": {
            "command": "uvx",
            "args": [
                "unreal-blender-mcp"
            ]
        },
        "unreal-blender-ext": {
            "command": "python",
            "args": [
                "/path/to/unreal-blender-mcp/run_extended_server.py"
            ]
        }
    }
}

Replace /path/to/ with your actual project path.

Option B: Integrate with Cursor

  1. Open Cursor Settings
  2. Navigate to MCP section
  3. Add the following commands:
    • Standard Server: uvx unreal-blender-mcp
    • Extended Server: python /path/to/unreal-blender-mcp/run_extended_server.py
    Replace /path/to/ with your actual project path.

Option C: Integrate with Other AI Tools

Refer to your AI tool's documentation for integrating with MCP servers, and point it to:

  • MCP Server URL: http://localhost:8000 (or custom port if specified)

9. Testing the System

Once all components are running:

  1. Use your AI agent to interact with Blender by asking it to:

    • Create a simple cube or sphere
    • Modify object properties
    • Create materials
  2. Use your AI agent to interact with Unreal Engine by asking it to:

    • Create a new level
    • Place assets
    • Modify scene properties
  3. Try more complex operations that involve both platforms working together

Troubleshooting

If you encounter issues:

  1. Check that all servers are running (MCP, Blender, Unreal)
  2. Verify port configurations match (default: 8000 for MCP, 8400/8401 for Blender, 8500 for Unreal)
  3. Check console outputs for error messages
  4. Restart components in the correct order: MCP server first, then Blender, then Unreal Engine

For more detailed information on development and extending the system, see the Project Document and workflow directory.

Comparison: Standard vs Extended

FeatureStandard ServerExtended Server
Blender Control✅✅
Unreal Control✅✅
Custom Blender Commands❌✅
Enhanced Scene Info❌✅
Auto Feature Detection❌✅
Upstream Compatibility✅✅

Choose the standard server for basic functionality or the extended server for advanced features.

Development

See the Project Document and workflow directory for detailed development information.

For extending this project:

  • To add new Blender addon features: Modify src/unreal_blender_mcp/blender_addon/extended_addon.py
  • To add new server tools: Modify src/unreal_blender_mcp/server_extension/extended_server.py

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

  • This project builds upon blender-mcp by Siddharth Ahuja.

Future Developments

The following improvements are planned for future releases:

Structured Unreal Engine API

Currently, the Unreal Engine communication relies primarily on direct Python code execution. A planned enhancement is to implement a structured API similar to the Blender integration:

  • Create predefined functions for common Unreal Engine operations
  • Implement proper error handling and validation
  • Improve security by limiting execution scope
  • Enhance stability and predictability of operations
  • Maintain backward compatibility while adding structure

This enhancement will create a more consistent experience across both engines and improve the overall reliability of the system. See the workflow documentation for more details on this planned development.

Use o MCP de Unreal-Blender MCP com vários modelos de IA

O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho. Assim, após conectar Unreal-Blender MCP, é possível usá-lo com diferentes modelos de IA no TypingMind, em vez de configurá-lo separadamente para cada modelo. Este MCP é executado localmente no seu dispositivo por meio do conector MCP do TypingMind.

Guia de configuração para usar o conector local

Use esta opção quando o servidor MCP precisar acessar arquivos locais, aplicativos ou recursos privados no seu computador.

1

Abra as configurações de MCP

No TypingMind, acesse Configurações > Configurações avançadas > Model Context Protocol e selecione Configurar conector.

  1. Abra o TypingMind no navegador.
  2. Clique no ícone de Configurações.
  3. Acesse Configurações avançadas.
  4. Abra a seção Model Context Protocol.
  5. Clique em Configurar conector e selecione Este dispositivo.
Tela de configuração do conector MCP do TypingMind com a opção Este dispositivo selecionada
2

Execute o comando do conector

Selecione Este dispositivo, copie o comando do TypingMind e execute-o no Terminal. Mantenha o processo em execução enquanto usa o MCP.

  1. Copie o comando de configuração exibido pelo TypingMind.
  2. Abra o Terminal no macOS ou o Windows Terminal no Windows.
  3. Cole e execute o comando.
  4. Autorize a instalação do pacote se o Terminal pedir confirmação para continuar.
  5. Mantenha o processo em execução na janela do Terminal enquanto usa as ferramentas MCP.
3

Adicione Unreal-Blender MCP como servidor

Quando o status do conector for Pronto, clique em Editar servidores e cole a configuração do servidor MCP.

  1. Aguarde até que o status do conector mostre Pronto.
  2. Clique em Editar servidores.
  3. Cole a configuração do servidor MCP de Unreal-Blender MCP.
  4. Salve a lista de servidores.
  5. Se quiser confirmar que o conector ainda está pronto para uso, atualize a página.
Configurações de MCP do TypingMind mostrando um servidor ativo e o botão Editar servidores
{
  "mcpServers": {
    "unreal-blender-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use a conexão com diferentes modelos

Salve a lista de servidores, abra Plugins, ative as ferramentas MCP de Unreal-Blender MCP, selecione qualquer modelo de IA compatível no TypingMind e use as ferramentas no chat ou atribua-as a um agente de IA.

  1. Abra a página Plugins no TypingMind.
  2. Ative as ferramentas MCP de Unreal-Blender MCP.
  3. Inicie um chat e escolha o modelo de IA que deseja usar.
  4. Use as ferramentas MCP no chat ou atribua-as a um agente de IA.
  5. Mude para outro modelo de IA sempre que necessário, sem reconectar o MCP.
Chat do TypingMind usando ferramentas MCP ativadas com um modelo de IA selecionado
Pode usar Unreal-Blender MCP para me ajudar nesta tarefa?
Unreal-Blender MCP
Claro. Já li.
Veja o que encontrei usando Unreal-Blender MCP.

Perguntas frequentes

Para que serve o servidor MCP Unreal-Blender MCP?

Unreal-Blender MCP é um servidor MCP que permite que aplicativos de IA compatíveis se conectem a ferramentas externas e informações de contexto. No TypingMind, basta adicionar esse servidor MCP uma vez para disponibilizar suas ferramentas no seu espaço de trabalho com IA.

Posso usar o MCP Unreal-Blender MCP com vários modelos de IA no TypingMind?

Sim. O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho, permitindo usar Unreal-Blender MCP com diferentes modelos de IA, como Claude, ChatGPT, Gemini ou outros modelos configurados no TypingMind, sem configurar o servidor MCP separadamente para cada modelo.

Por que usar o MCP Unreal-Blender MCP com o TypingMind?

O TypingMind é uma das melhores interfaces de chat com LLMs porque reúne vários modelos de IA, prompts, plugins, agentes de IA, chaves de API e ferramentas MCP em um só espaço de trabalho. Com Unreal-Blender MCP conectado, é possível usar suas ferramentas MCP nos seus modelos preferidos e manter seu fluxo de trabalho de chat organizado no TypingMind.

Como conecto o MCP Unreal-Blender MCP ao TypingMind?

Unreal-Blender MCP funciona por meio do conector MCP local do TypingMind. Essa é a melhor opção quando o servidor MCP precisa acessar arquivos locais, apps de desktop, ferramentas de linha de comando ou recursos privados no seu computador.

Quais ferramentas o MCP Unreal-Blender MCP oferece no TypingMind?

Unreal-Blender MCP disponibiliza recursos MCP que podem ser ativados na página Plugins do TypingMind e usados no chat ou atribuídos a agentes de IA.

Preciso compartilhar minhas chaves de API com o TypingMind para usar o MCP Unreal-Blender MCP?

Não. O TypingMind prioriza o uso local e permite manter seus provedores de modelos, chaves de API, prompts e configuração MCP sob seu controle. Se Unreal-Blender MCP exigir autenticação, adicione os cabeçalhos, as configurações OAuth ou a configuração local exigidos por esse servidor MCP ao criar a conexão.

Servidores MCP relacionados

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇