
Bonsai-mcp
A Model Context Protocol server that integrates Claude with Blender, enabling users to analyze and interact with IFC (Industry Foundation Classes) building models through natural language commands.
README
Bonsai-mcp - Blender Model Context Protocol Integration for IFC through IfcOpenShell
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 quick proof of concept aimed at exemplifying the capabilites of connecting Claude, or any LLM (though this was only tested using the Claude Desktop Client), to Blender in order to execute IfcOpenShell commands.
Features
- IFC-specific functionality: Query IFC models, analyze spatial structures, and examine building elements
- Five powerful IFC tools: Inspect project info, list entities, examine properties, explore spatial structure, and analyze relationships
- 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
- Tested with standard models: Verified working with the default ifcopenshell house model (AC20-FZK-Haus.ifc)
Components
The system consists of two main components:
- Blender Addon (
addon.py
): A Blender addon that creates a socket server within Blender to receive and execute commands, including IFC-specific operations - MCP Server (
blender_mcp_tools.py
): A Python server that implements the Model Context Protocol and connects to the Blender addon
Installation
Prerequisites
- Blender 3.0 or newer
- Python 3.10 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"
]
}
}
}
Installing the Blender Addon
- Download the
addon.py
file from this repo - Open Blender
- Go to Edit > Preferences > Add-ons
- Click "Install..." and select the
addon.py
file - Enable the addon by checking the box next to "Interface: Blender MCP - IFC"
Usage
Starting the Connection
- In Blender, go to the 3D View sidebar (press N if not visible)
- Find the "Blender MCP - IFC" tab
- Click "Connect to Claude"
- Make sure the MCP server is running
Using with Claude
Once connected, you'll see a hammer icon in Claude's interface with tools for the Blender MCP IFC integration.
IFC Tools
This fork adds five powerful IFC-specific tools:
1. get_ifc_project_info
Get basic information about the IFC project, including name, description, and counts of different entity types.
Example: "What is the basic information about this IFC project?"
2. list_ifc_entities
List IFC entities of a specific type (walls, doors, spaces, etc.).
Example: "List all the walls in this IFC model" or "Show me the windows in this building"
3. get_ifc_properties
Get all properties of a specific IFC entity by its GlobalId.
Example: "What are the properties of this wall with ID 1Dvrgv7Tf5IfTEapMkwDQY?"
4. get_ifc_spatial_structure
Get the spatial hierarchy of the IFC model (site, building, storeys, spaces).
Example: "Show me the spatial structure of this building"
5. get_ifc_relationships
Get all relationships for a specific IFC entity.
Example: "What are the relationships of the entrance door?"
Excecute Blender Code
Legacy feature from the original MCP implementation. Allows Claude to execute arbitrary Python code in Blender. Use with caution.
Sequential Thinking Tool
This integration also includes the Sequential Thinking tool, which facilitates a detailed, step-by-step thinking process for problem-solving and analysis.
Tool parameters:
thought
(string): The current thinking stepnextThoughtNeeded
(boolean): Whether another thought step is neededthoughtNumber
(integer): Current thought numbertotalThoughts
(integer): Estimated total thoughts neededisRevision
(boolean, optional): Whether this revises previous thinkingrevisesThought
(integer, optional): Which thought is being reconsideredbranchFromThought
(integer, optional): Branching point thought numberbranchId
(string, optional): Branch identifierneedsMoreThoughts
(boolean, optional): If more thoughts are needed
Example: "Use sequential thinking to analyze this building's energy efficiency"
Example Commands
Here are some examples of what you can ask Claude to do with IFC models:
- "Analyze this IFC model and tell me how many walls, doors and windows it has"
- "Show me the spatial structure of this building model"
- "List all spaces in this IFC model and their properties"
- "Identify all structural elements in this building"
- "What are the relationships between this wall and other elements?"
- "Use sequential thinking to create a maintenance plan for this building based on the IFC model"
Troubleshooting
- Connection issues: Make sure the Blender addon server is running, and the MCP server is configured in Claude
- IFC model not loading: Verify that you have the Bonsai BIM addon installed and that an IFC file is loaded
- Timeout errors: Try simplifying your requests or breaking them into smaller steps
Technical Details
The IFC integration uses the Bonsai BIM module to access ifcopenshell functionality within Blender. The communication follows the same JSON-based protocol over TCP sockets as the original BlenderMCP.
Limitations & Security Considerations
- The
execute_blender_code
tool from the original project is still available, allowing running arbitrary Python code in Blender. Use with caution and always save your work. - Complex IFC models may require breaking down operations into smaller steps.
- IFC query performance depends on model size and complexity.
Credits
- Original BlenderMCP by Siddharth Ahuja
- Sequential Thinking tool from modelcontextprotocol/servers
- IFC integration built upon the Bonsai BIM addon for Blender
TODO
Cursor implementation Add 'get_selected_ifc_elements' description
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.