
Mesh2cad
Turn simple STL, OBJ or PLY mechanical parts into editable STEP and CAD scripts
The repository was last updated 20 hours ago and is published under MIT.
Mesh2cad is an open-source MCP server for design and media. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted, Linux
- Runs
- Locally
- What it can do
- Can change data (1 tool)
- GitHub stars
- 180
- Last commit
Similar MCP servers
Install
You install MCP servers on a computer. Send yourself the link.
Add with the CLI
Run in a terminal
claude mcp add mesh2cad -- uvx mesh2cadAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"mesh2cad": {
"command": "uvx",
"args": [
"mesh2cad"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"mesh2cad": {
"command": "uvx",
"args": [
"mesh2cad"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"mesh2cad": {
"command": "uvx",
"args": [
"mesh2cad"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.json
{
"mcpServers": {
"mesh2cad": {
"type": "stdio",
"command": "uvx",
"args": [
"mesh2cad"
]
}
}
}Or put the same entry in .mcp.json at your workspace root to share it.
Add with the CLI
Run in a terminal
codex mcp add mesh2cad -- uvx mesh2cadOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.mesh2cad]
command = "uvx"
args = ["mesh2cad"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mesh2cad": {
"command": "uvx",
"args": [
"mesh2cad"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.json
{ "mcpServers": { "mesh2cad": { "command": "uvx", "args": [ "mesh2cad" ] } } }Or run: gemini mcp add -s user mesh2cad uvx -- mesh2cad
Antigravity
Add to ~/.gemini/config/mcp_config.json
{ "mcpServers": { "mesh2cad": { "command": "uvx", "args": [ "mesh2cad" ] } } }Use .agents/mcp_config.json to add it to one workspace only.
Devin Desktop (formerly Windsurf)
Add to ~/.config/devin/mcp_config.json
{ "mcpServers": { "mesh2cad": { "command": "uvx", "args": [ "mesh2cad" ] } } }On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.
Cline
Add to cline_mcp_settings.json
{ "mcpServers": { "mesh2cad": { "command": "uvx", "args": [ "mesh2cad" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.json
{ "context_servers": { "mesh2cad": { "command": "uvx", "args": [ "mesh2cad" ] } } }Open it with zed: open settings file. Merge context_servers into the settings you already have.
JetBrains AI Assistant and Junie
AI Assistant
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "mesh2cad": { "command": "uvx", "args": [ "mesh2cad" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "mesh2cad": { "command": "uvx", "args": [ "mesh2cad" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "mesh2cad": { "command": "uvx", "args": [ "mesh2cad" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About Mesh2cad
mesh2cad fits planes, cylinders, spheres, cones and constant-radius rounds to a mesh, so a hole becomes one cylindrical face in the STEP file instead of a ring of triangles. It also writes CadQuery, OpenSCAD and FreeCAD scripts that share parameter names such as hole_1_d, which you can change and rebuild from the command line without touching the rest of the file.
It targets plates, brackets and boxes with holes, bolt circles, slots, bosses and fillets. Organic shapes, scans and free-form surfaces are out of scope. When a fit is poor the STEP output falls back to a valid faceted solid, and a script is refused (exit code 2) if its deviation exceeds max(4 times the tolerance, 0.1 mm) or volume error exceeds 1%. The fit runs locally and nothing is uploaded.
Install with pip, add the mcp extra, and start the server with mesh2cad mcp. An optional report gives Hausdorff and RMS deviation, volume error, face types and the fit method.
Tools this server provides (8)
Taken from the project documentation; the running server may differ.
From the tool list in its README, going by the names, 1 of 8 tools changes data; 5 names don't say.
From the server's own tool labels and tool names; not verified by us.
- convert
- Converts a mesh to CAD output.
- analyzeName suggests: reads
- Analyzes a mesh.
- report
- Produces a fidelity report.
- to_cadquery
- Writes a CadQuery script.
- to_openscad
- Writes an OpenSCAD script.
- to_freecad
- Writes a FreeCAD macro.
- list_paramsName suggests: reads
- Lists named parameters in a script.
- edit_paramsName suggests: changes
- Edits parameters and rebuilds.
What it does
- Exact STEP output
- Fitted faces stay selectable in CAD tools.
- Script generation
- Writes CadQuery, OpenSCAD and FreeCAD files.
- Named parameters
- Change a dimension and rebuild the part.
- Fidelity report
- Reports deviation, volume error and fit method.
- Local processing
- The mesh is never uploaded.
- Refuses poor fits
- Won't write a script that misses its check.
Good for
- Convert an STL bracket into a STEP file for CAD
- Change a hole diameter in a printed part and re-export
- Make a Thingiverse-style OpenSCAD customizer from a mesh
- Check how close a converted solid is to the original mesh
Pricing
Open source
MIT licence
Mesh2cad FAQ
Which mesh formats work?
STL, OBJ and PLY.
What parts does Mesh2cad handle well?
Simple mechanical parts such as plates, brackets and boxes with holes, slots, bosses and fillets.
What happens with a poor fit?
STEP falls back to a faceted solid and the report says so; scripts are refused with exit code 2.
What licence is Mesh2cad under?
MIT.
Is Mesh2cad free?
Yes. Mesh2cad is open source, so you can use and self-host it for free.
How do I add Mesh2cad to Claude Code?
Run this command in your terminal: claude mcp add mesh2cad -- uvx mesh2cad
What are the best alternatives to Mesh2cad?
The closest alternatives to Mesh2cad are HyperFrames by HeyGen, mcp-for-blender, AutoClip, ffmpeg-skill and next-ai-draw-io.
Where this comes from
- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.


