Mcp Stl

io.github.daedalus由 GitHub 帳號 daedalus 發布v0.1.0更新於 Oct 25, 2026

MCP server for editing STL 3D model files

已驗證STDIO僅桌面開發者工具媒體與設計

概覽

AI 產生的概覽

本機 MCP 伺服器,用來讀取、建立和編輯 STL 三維網格檔案,支援變換、基本幾何體與引擎類零件形狀。

可以做什麼
讀取 STL 檔案並回傳網格資料或摘要資訊,也可將網格寫回為 ASCII 或二進位 STL 檔案。對網格做變換:平移、繞座標軸或任意向量旋轉、縮放、錯切、鏡射,以及合併多個檔案。以線性或環形陣列複製幾何體。產生基本幾何體,例如立方體、長方體、球體、圓柱、圓錐、圓環、平面、膠囊體、橢球、截錐、管、角錐、角柱、半球與楔形。產生引擎設計形狀:正齒輪、螺旋彈簧、連桿、曲軸、汽門與凸輪。
適用情境
適合需要在本機檢查或修改 STL 模型、執行幾何變換、合併零件,或在不使用完整 CAD 軟體的情況下產生參數化形狀與機械零件的場合。
執行需求
以 stdio 本機程序執行,從 PyPI 套件 mcp-stl 安裝(pip install mcp-stl),以 mcp-stl 指令啟動;需要 Python 環境與磁碟上 STL 檔案的存取權限。未宣告驗證、環境變數或標頭。
安裝前請注意
工具會將 STL 檔案寫入磁碟,可能依助理選擇的路徑建立或覆寫檔案,執行寫入或變換操作前應確認輸出路徑。未顯示需要憑證、付費或將資料傳送給第三方。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mcp Stl,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

mcp-stl

[PyPI] [Python] [Coverage] [Ruff]

MCP server for editing STL 3D model files. Provides tools for parsing, viewing, and manipulating STL files through the Model Context Protocol.

Install

bash
pip install mcp-stl

MCP Server

mcp-name: io.github.daedalus/mcp-stl

Tools

Reading & Writing

  • read_stl_file: Read an STL file and return mesh data (vertices, normals, bounding box)
  • get_mesh_info: Get summary information about an STL file without loading full geometry
  • write_stl: Write mesh data to an STL file (ASCII or binary format)

Transformations

  • translate_stl: Translate (move) the mesh by specified X, Y, Z offsets
  • rotate_stl: Rotate the mesh around X, Y, or Z axis by a given angle in degrees
  • scale_stl: Scale the mesh by specified X, Y, Z factors
  • shear_stl: Apply a shear transformation (shift one axis per unit along another)
  • mirror_stl: Mirror (reflect) the mesh across the plane perpendicular to a given axis
  • rotate_stl_axis: Rotate the mesh around an arbitrary axis vector (Rodrigues' formula)
  • combine_stl: Merge multiple STL files into one
  • array_linear: Create N copies of the mesh spaced by a fixed X/Y/Z offset
  • array_circular: Create N copies of the mesh at equal angular intervals around an axis

Primitives

  • create_cube: Create a cube mesh
  • create_box: Create a rectangular box (cuboid) with independent width/height/depth
  • create_sphere: Create a sphere mesh
  • create_cylinder: Create a cylinder mesh
  • create_cone: Create a cone mesh
  • create_torus: Create a torus (donut) mesh
  • create_plane: Create a flat plane mesh
  • create_capsule: Create a capsule (cylinder with hemispherical end caps)
  • create_ellipsoid: Create an ellipsoid with independent radii on each axis
  • create_frustum: Create a frustum (truncated cone)
  • create_tube: Create a hollow cylinder (tube/pipe)
  • create_pyramid: Create a regular n-sided pyramid
  • create_prism: Create a regular n-sided prism (e.g. hexagonal prism)
  • create_hemisphere: Create a hemisphere (dome with flat circular base)
  • create_wedge: Create a right-triangular wedge (triangular prism)

Engine-Design Shapes

  • create_gear: Create a spur gear mesh (configurable module, teeth, pressure angle)
  • create_spring: Create a helical coil spring
  • create_connecting_rod: Create a connecting rod with big/small-end bores
  • create_crankshaft: Create an N-throw crankshaft
  • create_valve: Create a poppet valve (stem + head disc)
  • create_camshaft_lobe: Create an eccentric cam lobe with cosine nose profile

Usage

Python API

python
from mcp_stl import read_stl_file, create_cube, translate_stl
# Read an existing STL filemesh = read_stl_file("model.stl")print(f"Faces: {mesh.face_count}")
# Create a primitivecreate_cube("cube.stl", size=2.0)
# Transform a meshtranslate_stl("input.stl", "output.stl", x=10.0, y=0.0, z=5.0)

MCP Server

Configure in your MCP client:

json
{  "mcpServers": {    "mcp-stl": {      "command": "mcp-stl"    }  }}

Development

bash
git clone https://github.com/daedalus/mcp-stl.gitcd mcp-stlpip install -e ".[test]"
# run testspytest
# formatruff format src/ tests/
# lintruff check src/ tests/
# type checkmypy src/

來源:README.md,提交 2d5a18a

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分