
PicToSTL
io.github.qduoduo-hwh由 GitHub 账号 qduoduo-hwh 发布v0.1.0更新于 Oct 28, 2026
MCP server for pictostl.com image-to-3D generation
概览
本地 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。
安装
在 SourceWeft 中
- 打开 控制台中的 PicToSTL,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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
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
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
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
Then configure the MCP client to run node with the absolute path to dist/index.js as its first argument.
Tools
Seven MCP tools:
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版本历史
1- v0.1.0最新Sep 23, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分