# stlToSolid

The stlToSolid MCP server for Claude Code converts STL and OBJ meshes into editable STEP models and Fusion 360 scripts.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 12 repo stars
- Author: Crypto69
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Crypto69/stlToSolid
- Updated: 2026-11-15
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/stltosolid

## What it does

The server provides four tools to turn raw meshes with thousands of triangles into clean geometry with flat faces, cylinders, and smooth blends. Outputs are written to `~/stlToSolid/mcp-output` with no risk of overwriting previous results.

Running the server requires `uv`. The initial start downloads a geometry kernel of about 2.8 GB, so a pre-check command in the terminal is recommended before connecting the client. Generated files open directly in Fusion 360 or any CAD suite supporting STEP.

## Requirements
- Needs: Python and uv (commands run via uvx)
- Environment variables: `STLTOSOLID_OUT`, `STLTOSOLID_MCP_ALLOW_CODE` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env STLTOSOLID_OUT=<STLTOSOLID_OUT> --env STLTOSOLID_MCP_ALLOW_CODE=<STLTOSOLID_MCP_ALLOW_CODE> --transport stdio stltosolid -- uvx stltosolid
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from stltosolid <command>

### Codex

**Platform CLI**
```bash
codex mcp add stltosolid --env STLTOSOLID_OUT=<STLTOSOLID_OUT> --env STLTOSOLID_MCP_ALLOW_CODE=<STLTOSOLID_MCP_ALLOW_CODE> -- uvx stltosolid
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from stltosolid <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "stltosolid": {
            "command": "uvx",
            "args": [
                "stltosolid"
            ],
            "env": {
                "STLTOSOLID_OUT": "<STLTOSOLID_OUT>",
                "STLTOSOLID_MCP_ALLOW_CODE": "<STLTOSOLID_MCP_ALLOW_CODE>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from stltosolid <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "stltosolid": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "stltosolid"
            ],
            "env": {
                "STLTOSOLID_OUT": "<STLTOSOLID_OUT>",
                "STLTOSOLID_MCP_ALLOW_CODE": "<STLTOSOLID_MCP_ALLOW_CODE>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from stltosolid <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e STLTOSOLID_OUT=<STLTOSOLID_OUT> -e STLTOSOLID_MCP_ALLOW_CODE=<STLTOSOLID_MCP_ALLOW_CODE> stltosolid uvx stltosolid
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from stltosolid <command>

## When to use it
- convert STL mesh into a STEP file with clean planes and cylinders
- slice 3D models into smooth lofts and outlines
- generate parametric Fusion 360 scripts from blueprints
- build CadQuery scripts from dimensioned drawings

## Example prompts
- Convert `bracket.stl` into a STEP solid using stlToSolid
- Run the mesh slicer tool on `housing.obj`
- Generate a CAD model from the blueprint image `drawing.png`

## Similar
- [cad](https://affpapa.org/en/nevibecode/skills/cad.md) — skill · 15600 installs
- [ClassCAD](https://affpapa.org/en/nevibecode/mcp/classcad.md) — MCP server · ★ 195 repo stars
- [build123d MCP](https://affpapa.org/en/nevibecode/mcp/build123d-mcp.md) — MCP server · ★ 157 repo stars
- [3D CAD Converter](https://affpapa.org/en/nevibecode/mcp/3d-cad-converter.md) — MCP server
- [nurb](https://affpapa.org/en/nevibecode/skills/nurb.md) — skill · 541 installs
- [lab-hardware-cad](https://affpapa.org/en/nevibecode/skills/lab-hardware-cad.md) — skill · 1100 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
