Stable Fast 3D MCP Server
Configurable with VS Code's GitHub Copilot to offer 3D model generation from images.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Stable Fast 3D MCP ServerGenerate a 3D model from the image vase.jpg"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Stable Fast 3D MCP Server
An MCP (Model Context Protocol) server that provides tools to generate 3D models from images using Stability AI's Stable Fast 3D API.
Features
Generate 3D models from images: Convert any 2D image into a high-quality 3D GLB file
Customizable parameters: Control texture resolution, mesh complexity, and more
Base64 support: Generate from base64-encoded images for programmatic use
Credit balance check: Monitor your Stability AI account balance
Related MCP server: LiblibAI Picture Generator
Prerequisites
Python 3.10 or higher
A Stability AI API key (get one at https://platform.stability.ai/account/keys)
Installation
Clone or download this repository:
cd mcp-stable-fast-3dInstall dependencies:
pip install -e .Set your Stability AI API key as an environment variable:
Windows (PowerShell):
$env:STABILITY_API_KEY = "sk-your-api-key-here"Windows (Command Prompt):
set STABILITY_API_KEY=sk-your-api-key-hereLinux/macOS:
export STABILITY_API_KEY="sk-your-api-key-here"Usage
Running the Server
python server.pyOr using the installed command:
mcp-stable-fast-3dConfiguring with Claude Desktop
Add this to your Claude Desktop configuration file (claude_desktop_config.json):
Using uvx from GitHub (recommended - no installation required):
{
"mcpServers": {
"stable-fast-3d": {
"command": "uvx",
"args": ["--from", "git+https://github.com/rikturnbull/mcp-stable-fast-3d", "mcp-stable-fast-3d"],
"env": {
"STABILITY_API_KEY": "sk-your-api-key-here"
}
}
}
}Using local installation with Python:
Windows:
{
"mcpServers": {
"stable-fast-3d": {
"command": "python",
"args": ["C:\\path\\to\\mcp-stable-fast-3d\\server.py"],
"env": {
"STABILITY_API_KEY": "sk-your-api-key-here"
}
}
}
}macOS/Linux:
{
"mcpServers": {
"stable-fast-3d": {
"command": "python",
"args": ["/path/to/mcp-stable-fast-3d/server.py"],
"env": {
"STABILITY_API_KEY": "sk-your-api-key-here"
}
}
}
}Configuring with VS Code (GitHub Copilot)
Add to your VS Code settings.json or create .vscode/mcp.json in your project:
Using uvx from GitHub (recommended):
{
"servers": {
"stable-fast-3d": {
"command": "uvx",
"args": ["--from", "git+https://github.com/rikturnbull/mcp-stable-fast-3d", "mcp-stable-fast-3d"],
"env": {
"STABILITY_API_KEY": "sk-your-api-key-here"
}
}
}
}Using local virtual environment:
{
"servers": {
"stable-fast-3d": {
"command": "c:\\path\\to\\mcp-stable-fast-3d\\.venv\\Scripts\\python.exe",
"args": ["c:\\path\\to\\mcp-stable-fast-3d\\server.py"],
"env": {
"STABILITY_API_KEY": "sk-your-api-key-here"
}
}
}
}Available Tools
generate_3d_model
Generate a 3D model (GLB file) from a 2D image file.
Parameters:
Parameter | Type | Required | Default | Description |
| string | Yes | - | Path to input image (JPEG, PNG, or WebP) |
| string | No | Same as input with .glb extension | Path for output GLB file |
| string | No | "1024" | Texture resolution: "512", "1024", or "2048" |
| float | No | 0.85 | Padding ratio (0.1 to 1.0) |
| string | No | "none" | Remeshing: "none", "quad", or "triangle" |
| int | No | -1 | Target vertex count (-1 for no limit) |
Example:
Generate a 3D model from the image at C:\images\cat-statue.png with high resolution texturesgenerate_3d_model_from_base64
Generate a 3D model from a base64-encoded image.
Parameters:
Parameter | Type | Required | Default | Description |
| string | Yes | - | Base64-encoded image data |
| string | Yes | - | Image format: "jpeg", "png", or "webp" |
| string | Yes | - | Path for output GLB file |
| string | No | "1024" | Texture resolution |
| float | No | 0.85 | Padding ratio |
| string | No | "none" | Remeshing algorithm |
| int | No | -1 | Target vertex count |
check_api_balance
Check your Stability AI account credit balance.
API Costs
Stable Fast 3D: 10 credits per successful generation
Failed generations are not charged
Input Image Guidelines
For best results:
Use images with a clear, well-lit subject
The object should be centered in the frame
Clean backgrounds work better
Image dimensions should be between 64×64 and 2048×2048 pixels
Total pixel count must be between 4,096 and 4,194,304 pixels
Output Format
The generated 3D model is saved as a GLB file (glTF Binary), which includes:
3D mesh geometry
Albedo (color) texture map
Normal texture map
GLB files can be viewed in:
Windows 3D Viewer
Blender
Unity/Unreal Engine
Most modern web browsers (with appropriate viewers)
Error Handling
The server handles common errors:
Missing API key
Invalid image formats
API rate limiting (150 requests per 10 seconds)
File not found errors
Network timeouts
License
MIT License
This server cannot be deployed
Maintenance
Related MCP Connectors
Turn text or an image into an animation-ready 3D model (GLB): generate, rig, animate, retexture.
3D avatar/asset foundry: text/image -> rigged, validated, engine-ready GLB via x402.
Free text/image → 3D: generate, rig, avatar-ify, and refine GLB models. No auth, no payment.
Generate AI images and videos from 89 models on one credit balance, refunds on failure.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA tool integration that wraps Tripo3D API capabilities for 3D model generation, texturing, animation, and format conversion, supporting text/image-to-3D workflows via natural language commands.4MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI image generation through LiblibAI API with natural language prompts. Supports various art styles, real-time progress tracking, and account credit management.-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with the Tripo3D AI API to generate 3D models from text, images, or multiview inputs. It supports advanced features like model animation, stylization, and real-time task status tracking.81 npm5ISC
- AlicenseAqualityFmaintenanceEnables Claude to generate 3D models from text or images, apply textures, and export to GLB/FBX/USDZ using the Meshy AI API.63MIT