BM

bigchx/mcp_3d_relief

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

24 stars 6 forks 품질 54 트렌드 11MIT

3d 기복 STL 모형에 이미지

개요

이 프로젝트는 3D 프린팅 또는 렌더링에 적합한 STL 형식의 3D 릴리프 모델로 2D 이미지를 변환하는 MCP 서버를 제공합니다. - 3D 릴리프 모델에 이미지를 변환 - 제어 모델 치수 (폭, 두께) - 3D 모델에 옵션베이스를 추가 - 다른 릴리프 효과에 대한 깊이를 변환 - 즉각적인 다운로드 링크로 빠른 처리 - image path: 로컬 경로 또는 웹 URL을 입력 이미지 파일에 - model width: mm (과태: 50.0)에 있는 3D 모형의 폭 - model thickness: mm (과태: 5.0)에 있는 3D 모형의 최대 간격/높이 - base thickness: mm (과태: 2.0)에 있는 기초의 간격 - Skip depth: 이미지를 직접 사용하든 또는 깊이 지도 (과태: 진실한) - invert depth: 기복을 반전하십시오 (과태: 거짓) - detail level: 가공한 이미지 (과태: 1.0)의 해결책을 통제하십시오. detail level = 1.0에서 이미지는 320px 해상도로 처리되며, 일반적으로 100MB 미만의 STL 파일을 생성합니다.

개요(AI 번역)

한국어 · MCP 소개 · 다운로드

이 프로젝트는 3D 프린팅 또는 렌더링에 적합한 STL 형식의 3D 릴리프 모델로 2D 이미지를 변환하는 MCP 서버를 제공합니다.

특징

  • 3D 릴리프 모델에 어떤 이미지를 변환
  • 제어 모델 치수 (폭, 두께)
  • 3D 모형에 선택적인 기초를 추가하십시오
  • 다른 기복 효력을 위한 Invert 깊이
  • 즉각적인 다운로드 링크로 빠른 처리

설치

# 필수품

  • 파이썬 3.10+
  • 비

옵션 1: 로컬 설치

  1. 저장소를 복제:

  2. 의존성 설치:

  3. 서버 실행/검사:

사용법

JSON 구성

MCP 공구 모수

  • image_path: 입력 이미지 파일에 로컬 경로 또는 웹 URL
  • model_width: mm (과태: 50.0)에 있는 3D 모형의 폭
  • model_thickness: mm (과태: 5.0)에 있는 3D 모형의 최대 간격/높이
  • base_thickness: mm (과태에 있는 기초의 간격: 2.0)
  • skip_depth: 이미지를 직접 사용하거나 깊이 맵 생성 여부 (과태: true)
  • invert_depth: 구호를 Invert (고등한 지역은 낮은) (과태: 거짓)
  • detail_level: 처리된 이미지 (과태: 1.0)의 해결책을 통제하십시오. 디테일 = 1.

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

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

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
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "mcp_3d_relief": { "command": "uv", "args": ["--directory", "{fill_in_your_path_here}", "run", "server.py"] } } }