JB

jotaderodriguez/bonsai_mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

69 stars 26 forks Качество 81 Тренд 8MIT

jotaderodriguez/bonsai mcp - кандидат на сервер MCP, импортированный из https://github.com/jotaderodriguez/bonsai_mcp.

Обзор

jotaderodriguez/bonsai mcp - кандидат на сервер MCP, импортированный из https://github.com/jotaderodriguez/bonsai_mcp.

Обзор (машинный перевод)

Bonsai-mcp - это форк BlenderMCP, который расширяет оригинальную функциональность с выделенной поддержкой моделей IFC (Industry Foundation Classes) через Bonsai. Эта интеграция позволяет LLM читать и изменять файлы IFC.

Особенности

** Специфическая функциональность IFC**: Запрос моделей IFC, анализ пространственных структур, изучение строительных элементов и извлечение количества

Одиннадцать инструментов IFC включены: Проверяйте информацию о проекте, перечисляйте объекты, исследуйте свойства, исследуйте пространственную структуру, анализируйте отношения и многое другое.

  • Секвентивное мышление: включает в себя инструмент последовательного мышления от modelcontextprotocol/servers для структурированного решения проблем

Исполнить инструмент Code из оригинальной реализации BlenderMCP: Создание и изменение объектов, применение материалов и выполнение кода Python в Blender

Компоненты

Система состоит из двух основных компонентов:

  1. Blender Addon addon.py: Добавление Blender, которое создает сервер сокетов в Blender для приема и выполнения команд, включая операции, относящиеся к IFC.

  2. MCP Server tools.py: Сервер Python, который реализует протокол Model Context и подключается к аддону Blender

##Установка - через настройки клиента MCP

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Bonsai-mcp - Model Context Protocol Integration for IFC through IfcOpenShell and Blender

Bonsai-mcp is a fork of BlenderMCP that extends the original functionality with dedicated support for IFC (Industry Foundation Classes) models through Bonsai. This integration is a platform to let LLMs read and modify IFC files.

Features

  • IFC-specific functionality: Query IFC models, analyze spatial structures, examine building elements and extract quantities

  • Eleven IFC tools included: Inspect project info, list entities, examine properties, explore spatial structure, analyze relationships and more

  • Sequential Thinking: Includes the sequential thinking tool from modelcontextprotocol/servers for structured problem solving

  • Execute Code tool from the original BlenderMCP implementation: Create and modify objects, apply materials, and execute Python code in Blender

Components

The system consists of two main components:

  1. Blender Addon (addon.py): A Blender addon that creates a socket server within Blender to receive and execute commands, including IFC-specific operations

  2. MCP Server (tools.py): A Python server that implements the Model Context Protocol and connects to the Blender addon

Installation - Through MCP Client Settings

Prerequisites

  • Blender 4.0 or newer

  • Python 3.12 or newer

  • uv package manager

  • Bonsai BIM addon for Blender (for IFC functionality)

Installing uv:

Mac:


brew  install  uv

Windows:


powershell  -c  "irm https://astral.sh/uv/install.ps1 | iex"

set  Path=C:\Users\[username]\.local\bin;%Path%

For other platforms, see the uv installation guide.

Clone the repository


git  clone  https://github.com/JotaDeRodriguez/Bonsai_mcp

Claude for Desktop Integration

Edit your claude_desktop_config.json file (Claude > Settings > Developer > Edit Config) to include:

{
    "mcpServers": {
        "Bonsai-mcp": {
            "command": "uv",
            "args": [
              "--directory",
              "\\your\\path\\to\\Bonsai_mcp",
              "run",
              "tools.py"
          ]
        }
    }
}

Installation via Docker

The repository comes with a Dockerfile that makes deployment simple and consistent across different environments.

Quick Start

# Clone the repository
git clone https://github.com/JotaDeRodriguez/Bonsai_mcp
cd Bonsai_mcp

# Build the Docker image
docker build -t bonsai_mcp .

# Run the container
docker run -p 8000:8000 --name bonsai_mcp bonsai_mcp

Once running, the container will expose the MCP tools as REST/OpenAPI APIs at http://localhost:8000.

  • To verify youtr installation, open your browser and navigate to
  • http://localhost:8000/docs
Открыть полный README на GitHub

Установка

docker run -p 8000:8000 --name bonsai_mcp bonsai_mcp
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "Bonsai-mcp": { "command": "uv", "args": [ "--directory", "\\your\\path\\to\\Bonsai_mcp", "run", "tools.py" ] } } }