PicToSTL

io.github.qduoduo-hwh由 GitHub 帳號 qduoduo-hwh 發布v0.1.0更新於 Oct 28, 2026

MCP server for pictostl.com image-to-3D generation

已驗證STDIO僅桌面媒體與設計AI 與機器學習

概覽

AI 產生的概覽

本機 stdio MCP 伺服器,讓助理透過 pictostl.com 把照片生成 3D 模型,並存成 GLB 或 STL 檔案。

可以做什麼
  • 查詢生成選項,包含品質、貼圖、多視角規則與點數消耗
  • 上傳本機圖片檔案或 HTTPS 圖片網址,取得 assetId
  • 啟動非同步 3D 生成工作,並依工作 ID 輪詢狀態
  • 列出此 API 金鑰最近的生成紀錄,查看剩餘點數與方案狀態
  • 將完成的模型下載為原始 GLB,或在本機轉成二進位 STL 並寫入指定路徑
適用情境
適合想讓助理在聊天用戶端內把照片轉成 3D 網格、用於視覺化或 3D 列印實驗的情境。也適合需要可重複、可腳本化地執行圖片轉 3D 並輸出本機 GLB/STL 檔案的工作流程。
執行需求
以本機程序透過 stdio 執行,使用 npx 從 GitHub 儲存庫啟動,需要 Node.js 20 或更新版本。需要 PicToSTL 帳號、於 PICTOSTL_API_KEY 提供的有效 API 金鑰,以及已購買的點數。可選用 PICTOSTL_API_BASE 覆寫 API 基礎網址。需要能透過 HTTPS 連線至 pictostl.com。
安裝前請注意
圖片、生成參數與 API 金鑰都會傳送到 pictostl.com,每次生成都會消耗付費點數。API 金鑰應放在用戶端的密鑰或使用者層級設定中,不要提交到版本控制。伺服器會將 GLB/STL 檔案寫入本機路徑;生成的網格是 AI 重建結果,並非工程圖。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

pictostl-mcp

Local stdio MCP server for pictostl.com. Generation runs on pictostl.com — this package uploads photos, starts 3D jobs, and writes GLB or STL files on the machine that hosts the MCP server.

Results are AI-reconstructed meshes for visualization and 3D printing experiments. They are not engineering drawings.

This is a local stdio MCP server distributed from its GitHub repository. pictostl.com does not host a remote MCP HTTP endpoint.

Architecture and data flow

text
MCP client → local pictostl-mcp process → pictostl.com API                                      ← generation status and GLBMCP client ← local GLB/STL file       ←

The MCP process runs locally and communicates with https://pictostl.com over HTTPS. Images, generation parameters, and the API key are sent to pictostl.com to upload inputs, create jobs, and retrieve results. GLB-to-STL conversion and final file writing happen locally on the machine running the MCP server.

There is no hosted PicToSTL MCP endpoint. MCP clients start this package locally over stdio; the local process then calls the hosted PicToSTL API.

Get an API key

  1. Sign up
  2. Create a key at API keys
  3. Buy credits on Pricing

By using the API or this MCP server you agree to the Terms of Service.

Website browser generation is separate from MCP. MCP always uses an API key.

Install from GitHub

Requires Node.js 20 or newer. The command below installs the repository through npm's Git support and runs its committed JavaScript build. It does not require a published npm package or a local TypeScript compiler.

Claude / Cursor config

json
{  "mcpServers": {    "pictostl": {      "command": "npx",      "args": [        "-y",        "--package=github:qduoduo-hwh/pictostl-mcp",        "pictostl-mcp"      ],      "env": {        "PICTOSTL_API_KEY": "ps_live_..."      }    }  }}

Set PICTOSTL_API_KEY to a live key from https://pictostl.com/settings/api-keys.

Optional: PICTOSTL_API_BASE (default https://pictostl.com) for a local website.

Keep the API key in your MCP client's secret or user-level configuration. Do not commit a live key to source control.

For a pinned installation, append a Git tag or commit after the repository name, for example github:qduoduo-hwh/pictostl-mcp#v0.1.0.

Local development

bash
git clone https://github.com/qduoduo-hwh/pictostl-mcp.gitcd pictostl-mcpcorepack enablepnpm install --frozen-lockfilepnpm build

Then configure the MCP client to run node with the absolute path to dist/index.js as its first argument.

Tools

Seven MCP tools:

ToolPurpose
list_generation_optionsQuality, texture, multi-view rules, and credit costs
upload_imageUpload a local file or HTTPS URL; returns assetId
generate_modelStart an async 3D job (sends clientRequestId even if you omit it)
get_taskFetch a generation by task id; optional waitSeconds (max 60)
list_my_generationsList recent generations for this API key
get_accountRemaining credits and Pro / Ultra paid-credit status
download_modelWrite original GLB, or a local binary STL, to a path

Typical flow: upload_image → generate_model → get_task (repeat with the same task id if it takes more than 60 seconds) → download_model with that task id.

Do not pass an upload assetId to get_task or download_model.

download_model default is format=stl, longest edge 100 mm, converted locally from the original GLB (not the website preview mesh). STL has geometry only — no color or textures. format=glb writes the original file unchanged.

Reuse clientRequestId from a previous generate_model result when retrying the same job.

Contributing

Improve tool descriptions so agents call the right tool with the right fields. Do not ask for internal fal prompts or provider payloads.

License

MIT

來源:README.md,提交 2ce3d66

工具

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

版本歷史

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

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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