Related MCP Server Resources

Explore more AI models, providers, and integration options:

  • Explore AI Models
  • Explore AI Providers
  • Explore MCP Servers
  • LangDB Pricing
  • Documentation
  • AI Industry Blog
  • Image Generation MCP Server
  • Image Generator MCP Server
  • Ragie Model Context Protocol Server
  • Gemini MCP Image Generation Server
  • Figma MCP Server
Back to MCP Servers
mcp3drelief

mcp3drelief

Public
Bigchx/mcp_3d_relief

Converts 2D images into customizable 3D relief STL models with adjustable dimensions, depth inversion, optional bases, and fast processing for 3D printing or rendering using Model Context Protocol.

python
0 tools
May 29, 2025
Updated Jun 4, 2025

Supercharge Your AI with mcp3drelief

MCP Server

Unlock the full potential of mcp3drelief through LangDB's AI Gateway. Get enterprise-grade security, analytics, and seamless integration with zero configuration.

Unified API Access
Complete Tracing
Instant Setup
Get Started Now

Free tier available • No credit card required

Instant Setup
99.9% Uptime
10,000+Monthly Requests

MCP STL 3D Relief Generator

中文 · Introduction to MCP · Wiki

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

Installation

Prerequisites

  • Python 3.10+
  • uv

Option 1: Local Installation

  1. Clone the repository:
git clone https://github.com/bigchx/mcp_3d_relief.git cd mcp_3d_relief
  1. Install dependencies:
uv pip sync requirements.txt
  1. Run/Inspect the server:
mcp run server.py mcp dev server.py

Usage

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 file
  • model_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.jpg

External 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:

  1. Visit https://huggingface.co/spaces/depth-anything/Depth-Anything-V2
  2. Upload your image to generate a depth map
  3. Download the generated depth map
  4. 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

  1. The image is processed to create a depth map (darker pixels = lower, brighter pixels = higher)
  2. The depth map is converted to a 3D mesh with triangular facets
  3. A base is added to the bottom of the model
  4. The model is saved as an STL file

Our partners

Publicly Shared Threads0

Discover shared experiences

Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!

Share your threads to help others
Related MCPs5
  • Image Generation MCP Server
    Image Generation MCP Server

    Enables high-quality image generation via Model Context Protocol with customizable dimensions, promp...

    1 tools
    Added May 30, 2025
  • Image Generator MCP Server
    Image Generator MCP Server

    Generates and saves AI-created images using Replicate's Stable Diffusion model with customizable pro...

    3 tools
    Added May 30, 2025
  • Ragie Model Context Protocol Server
    Ragie Model Context Protocol Server

    Enables AI models to retrieve relevant information from a Ragie knowledge base using the Model Conte...

    1 tools
    Added May 30, 2025
  • Gemini MCP Image Generation Server
    Gemini MCP Image Generation Server

    Provides image generation capabilities via Google's Gemini 2 API using the Model Context Protocol, e...

    1 tools
    Added May 30, 2025
  • Figma MCP Server
    Figma MCP Server

    Model Context Protocol server bridging Figma designs and React by converting design files into React...

    Added May 30, 2025