MCP STL 3D Relief Generator
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP STL 3D Relief Generator
This project provides a MCP server that converts 2D images into 3D relief models in STL format, suitable for 3D printing or rendering.
Features
Convert any image to a 3D relief model
Control model dimensions (width, thickness)
Add optional base to the 3D model
Invert depth for different relief effects
Fast processing with immediate download links
Related MCP server: Stable Fast 3D MCP Server
Installation
Prerequisites
Python 3.10+
Option 1: Local Installation
Clone the repository:
git clone https://github.com/bigchx/mcp_3d_relief.git
cd mcp_3d_reliefInstall dependencies:
uv pip sync requirements.txtRun/Inspect the server:
mcp run server.py
mcp dev server.pyUsage
JSON Configuration
{
"mcpServers": {
"mcp_3d_relief": {
"command": "uv",
"args": ["--directory", "{fill_in_your_path_here}", "run", "server.py"]
}
}
}MCP Tool Parameters
image_path: Local path or web URL to the input image filemodel_width: Width of the 3D model in mm (default: 50.0)model_thickness: Maximum thickness/height of the 3D model in mm (default: 5.0)base_thickness: Thickness of the base in mm (default: 2.0)skip_depth: Whether to use the image directly or generate a depth map (default: true)invert_depth: Invert the relief (bright areas become low instead of high) (default: false)detail_level: Controls the resolution of the processed image (default: 1.0). At detail_level = 1.0, the image is processed at 320px resolution, producing an STL file typically under 100MB. Higher values improve detail quality but significantly increase both processing time and STL file size. For example, doubling the detail_level can increase file size by 4x or more. Use with caution.
Response
The MCP Tool returns a JSON response with:
{
"status": "success",
"depth_map_path": "path/to/yourimage_depth_map.png",
"stl_path": "path/to/yourimage.stl"
}Where LLMs can access the generated files from this MCP server, using the provided URLs.
Command Line
You can also use the script directly from the command line to generate a relief model from an image:
python3 relief.py path/to/your/image.jpgExternal Depth Map Generation
For higher quality depth maps, you can use external depth map generation services like Depth-Anything-V2. This service can generate more accurate depth maps that you can then use with this project:
Visit https://huggingface.co/spaces/depth-anything/Depth-Anything-V2
Upload your image to generate a depth map
Download the generated depth map
Use this depth map with our converter by setting
skip_depth=false
This approach can provide better 3D relief models, especially for complex images.
How It Works
The image is processed to create a depth map (darker pixels = lower, brighter pixels = higher)
The depth map is converted to a 3D mesh with triangular facets
A base is added to the bottom of the model
The model is saved as an STL file
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate 3D models from images or text with AI, then retexture or convert them to STL, 3MF or OBJ.
Turn text and images into 3D models for games, rendering and 3D printing.
Turn a photo, drawing or text description into a textured 3D model (GLB, FBX, OBJ, USDZ, STL).
Turn a photo of an object into an editable CAD model: STEP, STL and GLB.
Related MCP Servers
- AlicenseAqualityCmaintenanceCreate and edit parametric 3D models with OpenSCAD. Render STL meshes and PNG previews, export SCAD, STL, CSG, and 3MF, and persist model revisions through MCP over stdio or local HTTP. Includes headless Docker support; no GPU or API keys required.8217MIT
- AlicenseNot gradedqualityDmaintenanceEnables generating 3D models (GLB files) from 2D images using Stability AI's Stable Fast 3D API, with customizable parameters and credit balance checking.MIT

GoModelHub 3D MCPofficial
AlicenseAqualityCmaintenanceEnables 3D model generation via natural language, supporting text-to-3D and image-to-3D with remote or local deployment options.3MIT- AlicenseAqualityCmaintenanceEnables local AI agents to upload photos, start image-to-3D generation jobs on pictostl.com, monitor task progress, and download the resulting GLB or STL mesh files for visualization and 3D printing.729 npmMIT