Logo : Unreal-Blender MCP

Unreal-Blender MCP

Communauté
tahooki

unreal-blender-mcp

Éditeurtahooki
Dépôtunreal-blender-mcp
LanguePython
Forks
8
Étoiles
18
Outils disponibles
0
Type de transportstdio
Catégories
Liens
  • Connectez des outils à vos workflows IA

    Unreal-Blender MCP propose des fonctionnalités MCP utilisables par les clients et agents IA compatibles.

  • Outils disponibles : 0

    Parcourez ci-dessous les actions que le client peut appeler, avec leurs noms et descriptions lorsque le serveur les fournit.

  • Configuration prête à copier

    Utilisez les extraits fournis pour configurer ce serveur dans votre client MCP préféré.

  • Indicateurs de popularité du dépôt open source

    Dépôt associé : 18 étoiles et 8 forks.

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.

Utilisez le serveur MCP Unreal-Blender MCP avec plusieurs modèles IA

TypingMind connecte les outils MCP au niveau de l’espace de travail. Une fois Unreal-Blender MCP connecté, vous pouvez donc l’utiliser avec différents modèles IA dans TypingMind sans avoir à le configurer séparément pour chaque modèle. Cette intégration MCP s’exécute localement sur votre appareil via le connecteur MCP de TypingMind.

Guide de configuration du connecteur local

Choisissez cette méthode si le serveur MCP doit accéder à des fichiers locaux, à des applications ou à des ressources privées sur votre ordinateur.

1

Ouvrir les paramètres MCP

Dans TypingMind, accédez à « Paramètres », puis à « Paramètres avancés » et à « Model Context Protocol », et choisissez « Configurer le connecteur ».

  1. Ouvrez TypingMind dans votre navigateur.
  2. Cliquez sur l’icône Paramètres.
  3. Accédez aux paramètres avancés.
  4. Ouvrez la section Model Context Protocol.
  5. Cliquez sur « Configurer le connecteur » et choisissez « Cet appareil ».
Écran de configuration du connecteur MCP de TypingMind avec l’option « Cet appareil » sélectionnée
2

Exécuter la commande du connecteur

Choisissez « Cet appareil », copiez la commande depuis TypingMind et exécutez-la dans Terminal. Laissez le processus en cours d’exécution pendant que vous utilisez MCP.

  1. Copiez la commande de configuration affichée par TypingMind.
  2. Ouvrez Terminal sur macOS ou Windows Terminal sur Windows.
  3. Collez et exécutez la commande.
  4. Autorisez l’installation du paquet si Terminal vous demande de confirmer.
  5. Gardez la fenêtre de Terminal ouverte et le processus en cours d’exécution pendant que vous utilisez les outils MCP.
3

Ajouter Unreal-Blender MCP en tant que serveur

Lorsque le connecteur est à l’état « Prêt », cliquez sur « Modifier les serveurs » et collez la configuration du serveur MCP.

  1. Attendez que le connecteur soit à l’état « Prêt ».
  2. Cliquez sur « Modifier les serveurs ».
  3. Collez la configuration du serveur MCP Unreal-Blender MCP.
  4. Enregistrez la liste des serveurs.
  5. Actualisez la page si vous souhaitez vérifier que le connecteur est toujours prêt.
Paramètres MCP de TypingMind affichant un serveur actif et le bouton « Modifier les serveurs »
{
  "mcpServers": {
    "unreal-blender-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Utiliser la connexion avec différents modèles

Enregistrez la liste des serveurs, ouvrez « Plugins », activez les outils MCP de Unreal-Blender MCP, puis sélectionnez un modèle IA compatible dans TypingMind et utilisez les outils dans une discussion ou attribuez-les à un agent IA.

  1. Ouvrez la page Plugins dans TypingMind.
  2. Activez les outils MCP de Unreal-Blender MCP.
  3. Démarrez une discussion et choisissez le modèle IA que vous souhaitez utiliser.
  4. Utilisez les outils MCP dans la discussion ou attribuez-les à un agent IA.
  5. Passez à un autre modèle IA selon vos besoins sans rétablir la connexion MCP.
Discussion TypingMind utilisant des outils MCP activés avec un modèle d’IA sélectionné
Pouvez-vous utiliser Unreal-Blender MCP pour m’aider dans cette tâche ?
Unreal-Blender MCP
Bien sûr. Je l’ai lu.
Voici ce que j’ai trouvé avec Unreal-Blender MCP.

Foire aux questions

À quoi sert le serveur MCP Unreal-Blender MCP ?

Unreal-Blender MCP est un serveur MCP qui permet aux applications IA compatibles d’accéder à des outils et à des informations contextuelles externes. Dans TypingMind, il vous suffit d’ajouter ce serveur MCP une seule fois pour rendre ses outils disponibles dans votre espace de travail IA.

Puis-je utiliser le serveur MCP Unreal-Blender MCP avec plusieurs modèles IA dans TypingMind ?

Oui. TypingMind connecte les outils MCP au niveau de l’espace de travail. Vous pouvez donc utiliser Unreal-Blender MCP avec différents modèles IA comme Claude, ChatGPT, Gemini ou d’autres modèles configurés dans TypingMind, sans avoir à configurer le serveur MCP séparément pour chaque modèle.

Pourquoi utiliser le connecteur MCP Unreal-Blender MCP avec TypingMind ?

TypingMind est l’une des meilleures interfaces de chat avec les LLM, car elle réunit plusieurs modèles IA, prompts, plugins, agents IA, clés API et outils MCP dans un seul espace de travail. Une fois Unreal-Blender MCP connecté, vous pouvez utiliser ses outils MCP avec vos modèles préférés tout en gardant vos discussions bien organisées dans TypingMind.

Comment connecter le serveur MCP Unreal-Blender MCP à TypingMind ?

Unreal-Blender MCP fonctionne via le connecteur MCP local de TypingMind. C’est l’option idéale lorsque le serveur MCP doit accéder à des fichiers locaux, à des applications de bureau, à des outils en ligne de commande ou à des ressources privées sur votre ordinateur.

Quels outils le serveur MCP Unreal-Blender MCP propose-t-il dans TypingMind ?

Unreal-Blender MCP propose des fonctionnalités MCP que vous pouvez activer depuis la page Plugins de TypingMind et utiliser dans les discussions ou attribuer à des agents IA.

Dois-je partager mes clés API avec TypingMind pour utiliser le serveur MCP Unreal-Blender MCP ?

Non. TypingMind privilégie le fonctionnement local et vous permet de garder le contrôle de vos fournisseurs de modèles, clés API, prompts et paramètres MCP. Si Unreal-Blender MCP nécessite une authentification, ajoutez les en-têtes, les paramètres OAuth ou la configuration locale requis pour ce serveur MCP lors de la création de la connexion.

Serveurs MCP similaires

Tout voir

Créez votre propre espace de travail IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇