Blender MCP Server
Enables AI-powered 3D content creation in Blender through natural language, including text-to-3D, image-to-3D, animation, rigging, rendering, and export.
README
Blender MCP Server - AI-Powered 3D Generation
A comprehensive Model Context Protocol (MCP) server that enables AI-powered 3D content creation in Blender through natural language. Built for seamless integration with Claude and other MCP-compatible AI assistants.
Features
Core Capabilities
- Text-to-3D Generation: Describe what you want in words, get 3D models
- Image-to-3D: Upload reference images and generate matching 3D geometry
- Animation System: Create rotations, bounces, and custom animations
- Auto-Rigging: Automatic armature generation for characters and objects
- Rendering: High-quality renders with configurable settings
- Export: Support for FBX, OBJ, GLTF, STL, and USD formats
Integration Features
- Context7 MCP: Access to up-to-date Blender API documentation
- Playwright MCP: Automated testing and validation
- Vision Models: Image analysis for reference-based generation
- Claude Integration: Optimized for Claude AI workflows
Installation
Prerequisites
- Python 3.11 or higher
- Blender 4.5 or higher (tested with 4.5.3 LTS)
- Node.js (for Context7 and Playwright MCPs)
Quick Start
-
Clone or download this repository:
cd blender-mcp-server -
Install Python dependencies:
pip install -e . -
Configure Blender path (if not default): Edit
src/server.pyand update:BLENDER_PATH = r"C:\Program Files\Blender Foundation\Blender 4.5\blender.exe" -
Test the server:
python src/server.py
Usage
Configure in Claude Desktop
Add to your Claude Desktop MCP configuration (%APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"blender": {
"command": "python",
"args": [
"C:\\Users\\YOUR_USERNAME\\blender-mcp-server\\src\\server.py"
]
},
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp"]
},
"playwright": {
"command": "npx",
"args": ["-y", "@executeautomation/playwright-mcp-server"]
}
}
}
Example Prompts
Text-to-3D:
Use the blender server to create a low-poly spaceship with sleek design
Image-to-3D:
Generate a 3D model based on this reference image: C:\images\chair.jpg
Animation:
Create a rotating animation for the spaceship object, 240 frames
Rigging:
Add humanoid rigging to the character model
Export:
Export the spaceship as FBX to C:\exports\spaceship.fbx
Available Tools
generate_3d_from_text
Generate 3D objects from natural language descriptions.
Parameters:
description(required): Detailed description of the 3D objectstyle: Style hints (realistic, lowpoly, stylized, cartoonish)output_name: Output filenamerender: Whether to render the object (default: true)
Example:
{
"description": "A futuristic hover car with neon lights",
"style": "lowpoly",
"output_name": "hover_car",
"render": true
}
generate_3d_from_image
Generate 3D objects from reference images.
Parameters:
image_path(required): Path to reference imagedescription: Additional clarificationsoutput_name: Output filename
create_animation
Create animations for 3D objects.
Parameters:
object_name(required): Name of object to animateanimation_type(required): rotate, bounce, walk, customduration: Animation length in frames (default: 120)parameters: Animation-specific settings
add_rigging
Add armature/bones to models for animation.
Parameters:
object_name(required): Name of object to rigrig_type(required): humanoid, animal, mechanical, custom
render_scene
Render the current scene to image or animation.
Parameters:
output_path(required): Output file pathresolution: [width, height] (default: [1920, 1080])samples: Render quality (default: 128)animation: Render as animation (default: false)
export_model
Export 3D models to various formats.
Parameters:
object_name(required): Name of object to exportoutput_path(required): Output file path with extensionformat: FBX, OBJ, GLTF, STL, USD (default: FBX)
list_objects
List all objects in the current Blender scene.
get_scene_info
Get detailed information about the current scene.
Testing
Manual Testing
Test individual tools directly:
# Test text-to-3D generation
python -c "
import asyncio
from src.server import BlenderMCPServer, Text3DRequest
async def test():
server = BlenderMCPServer()
request = Text3DRequest(description='a simple cube', output_name='test_cube')
result = await server.generate_3d_from_text(request)
print(result)
asyncio.run(test())
"
Automated Testing with Playwright MCP
The server includes integration with Playwright MCP for end-to-end automated testing. Tests verify:
- Tool registration and availability
- Text-to-3D generation pipeline
- Image analysis and processing
- Animation creation
- Export functionality
- Error handling
Run tests:
pytest tests/ -v
Architecture
blender-mcp-server/
├── src/
│ ├── __init__.py # Package initialization
│ └── server.py # Main MCP server implementation
├── tests/
│ ├── test_server.py # Unit tests
│ └── test_integration.py # Integration tests with Playwright
├── examples/
│ ├── basic_usage.py # Basic examples
│ └── advanced_usage.py # Advanced workflows
├── pyproject.toml # Project configuration
└── README.md # This file
Advanced Usage
Custom Geometry Generation
The server uses AI to interpret descriptions and generate appropriate geometry. You can enhance generation by:
- Detailed Descriptions: "A medieval castle with four towers, stone walls, and a wooden drawbridge"
- Style Hints: "realistic", "lowpoly", "stylized", "cartoonish"
- Material Descriptions: Include color, texture, and material properties
Image Reference Learning
The image-to-3D feature uses vision models to analyze reference images:
# In your prompts
"Create a 3D model matching this concept art: path/to/image.jpg
Focus on the overall form and proportions"
Complex Animations
Create sophisticated animations by chaining tools:
# 1. Generate object
"Create a robotic arm"
# 2. Add rigging
"Add mechanical rigging to the robotic arm"
# 3. Animate
"Create a custom animation where the arm reaches forward and grabs"
Configuration
Environment Variables
BLENDER_PATH: Path to Blender executableBLENDER_OUTPUT_DIR: Output directory for generated filesANTHROPIC_API_KEY: API key for Claude integration
Blender Settings
Configure in src/server.py:
class BlenderConfig:
blender_path: str = "C:\\Program Files\\Blender Foundation\\Blender 4.5\\blender.exe"
output_dir: Path = Path(tempfile.gettempdir()) / "blender_mcp_output"
default_resolution: tuple[int, int] = (1920, 1080)
default_samples: int = 128
Troubleshooting
Server Won't Start
- Verify Blender path in
src/server.py - Check Python version (3.11+)
- Ensure all dependencies installed:
pip install -e .
Generation Fails
- Check Blender installation
- Verify output directory permissions
- Review logs in console output
Render Quality Issues
- Increase sample count in render settings
- Use higher resolution
- Check lighting setup in generated scenes
Performance Tips
- Batch Operations: Generate multiple objects before rendering
- Resolution: Use lower resolution for previews, higher for finals
- Samples: 64 samples for preview, 256+ for final renders
- Background Mode: Blender runs in background for faster processing
Integration with Other MCPs
Context7
Get Blender API documentation:
Ask context7 about Blender Python API for creating materials
Playwright
Automated testing:
Use playwright to test the blender generation workflow
Contributing
Contributions are welcome! Areas for improvement:
- Enhanced geometry generation algorithms
- More animation presets
- Better material and texture systems
- Advanced rigging templates
- Integration with more AI models
License
MIT License - See LICENSE file for details
Acknowledgments
- Built with MCP SDK
- Blender API documentation
- Anthropic Claude for AI integration
- Context7 and Playwright MCP servers
Support
For issues and questions:
- Check the troubleshooting section
- Review Blender logs in output directory
- Verify MCP configuration in Claude Desktop
- Test individual tools manually
Roadmap
- [ ] Advanced material system with PBR textures
- [ ] Physics simulations
- [ ] Particle systems
- [ ] More rigging presets (quadruped, vehicle, etc.)
- [ ] Real-time preview with Blender viewport
- [ ] Integration with Stable Diffusion for textures
- [ ] Support for Blender add-ons
- [ ] Multi-object scene composition
- [ ] Version control for 3D assets
Made with Claude Code - Demonstrating the power of MCP for creative applications
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.