Mesh2cad

Design and media

Mesh (STL/OBJ/PLY) to editable STEP, CadQuery, OpenSCAD or FreeCAD, with a fidelity report.

Your AI app calls the Mesh2cad MCP server, which does the design and media work and sends the result back to the chat.

About Mesh2cad

Mesh2cad is a community MCP server from emirmrkaljevic, filed in our directory under design and media. Mesh (STL/OBJ/PLY) to editable STEP, CadQuery, OpenSCAD or FreeCAD, with a fidelity report.

Mesh2cad runs on your own machine: your AI app starts it with the command uvx mesh2cad==0.35.0 mcp and talks to it over standard input and output.

Mesh2cad is listed in the official MCP registry as io.github.emirmrkaljevic/mesh2cad, version 0.35.0.

At a glance

Publisher
emirmrkaljevic (community)
Runs
Locally on your machine
Install from
Python package on PyPI: mesh2cad
Written in
Python
License
MIT
GitHub stars
176
Official MCP registry
io.github.emirmrkaljevic/mesh2cad

How to set up Mesh2cad

  1. Install uv on the machine that runs your AI app, because Mesh2cad starts with uvx and fetches its Python package on first run.
  2. Check the Mesh2cad README for keys or settings; the registry lists none that Mesh2cad requires.
  3. Add Mesh2cad to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Mesh2cad tools to confirm the connection.
  5. Run one read-only task with Mesh2cad first, and keep your app asking before each tool call until the results look right.

Mesh2cad compared with similar servers

  • Flstudio by rosasynthesiz has fewer GitHub stars than Mesh2cad (175 against 176); both are community servers, and both run locally.
  • Davinci Resolve (hiteshK03) by hiteshK03 has more GitHub stars than Mesh2cad (179 against 176); both are community servers, and both run locally.
  • Fullbleed PDF Engine by fullbleed-engine has fewer GitHub stars than Mesh2cad (175 against 176); both are community servers, and both run locally.

Before you connect Mesh2cad

  • Give Mesh2cad its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Mesh2cad tool call until you trust what it does with them.
  • Treat text that Mesh2cad fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Mesh2cad on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Mesh2cad

How marketing and sales teams put Mesh2cad to work, by company size. Pick the size closest to yours and start Mesh2cad on one use case.

Small business

  • A small business can use Mesh2cad to resize and adapt one design for every channel instead of hiring for each version.
  • Owners can ask Mesh2cad to pull brand assets and make quick ad and social variations that still look on brand.
  • Mesh2cad runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Creative teams can connect Mesh2cad so agents produce variants for testing while designers keep control of the master files.
  • Marketing teams can use Mesh2cad to hand off designs to web and ads with specs attached, cutting review rounds.
  • Start Mesh2cad on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can use Mesh2cad with brand rules and approved assets only, so generated work stays inside the brand system.
  • Large creative ops teams can use Mesh2cad to localize and version assets for many markets with review built in.
  • Mesh2cad is a community server, so have security review the code and pin a version before Mesh2cad touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Mesh2cad README

From emirmrkaljevic/mesh2cad on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

mesh2cad

mesh2cad converts an STL, OBJ, or PLY mesh of a simple mechanical part into editable parametric CAD. It writes a STEP solid you can open in a CAD tool, plus CadQuery, OpenSCAD, and FreeCAD scripts whose dimensions are named parameters. The fit runs on your machine. Nothing is uploaded. It is also an MCP server.

Hackaday covered it, and all 6 Original Prusa i3 MK3S printed parts in the test set convert exactly, as STEP and as a script. See Press and Real parts.

Install

pip install mesh2cad

The mcp extra adds the server, the cadquery extra lets mesh2cad run and check a generated script, and the separate OpenSCAD and FreeCAD programs are covered in Install.

Quick start

mesh2cad convert plate.stl --cadquery plate.py
mesh2cad edit plate.py --set hole_grid_1_d=8 --in-place -o plate.step

The first command writes plate.py with diameters, thicknesses, and positions as names at the top; the second sets the four-hole grid diameter to 8 mm, rewrites the script, and writes plate.step.

Limitations

It is meant for simple mechanical parts: plates, brackets, and boxes with holes, bolt circles, slots, bosses (including on an extruded outline), countersunk and counterbored holes on that outline, and fillets, and a Z extrusion can also carry one radius on every vertical corner of the outline. It fits planes, cylinders, spheres, cones, and constant-radius rounds, and writes those as faces you can select. It does not recover organic or sculpted shapes, scans, or free-form surfaces; when a fit is poor it does not invent a surface, and STEP output falls back to a faceted solid that is still valid, with the report naming that fallback. A script is held to a tighter check (deviation at most max(4 times the tolerance, 0.1 mm), and volume error at most 1%), and the fitted-surface list, the parameter names, and the refusals are in Limits.

MCP

Install the extra with pip install "mesh2cad[mcp]", then run mesh2cad mcp to start the server on stdio.

The tools, client config, and return values are in MCP.

Docs

Getting started

Scripts

How it works

Project

A mesh that converts badly can go in a GitHub issue. There is a template for an STL that fails.

License

MIT. See LICENSE.


If you find this useful, you can support me by getting a SkinToScan pack, my other project. It's a one-time purchase that directly funds my open-source work.

Questions about Mesh2cad

What is the Mesh2cad MCP server?

Mesh (STL/OBJ/PLY) to editable STEP, CadQuery, OpenSCAD or FreeCAD, with a fidelity report. Mesh2cad is maintained by emirmrkaljevic on GitHub at emirmrkaljevic/mesh2cad, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Mesh2cad MCP server?

Add Mesh2cad to your AI app's MCP config with the command uvx mesh2cad==0.35.0 mcp. In Claude Code, run claude mcp add --transport stdio mesh2cad -- uvx mesh2cad==0.35.0 mcp. To run Mesh2cad this way you need uv installed.

Does Mesh2cad need an API key?

The registry lists no required keys for Mesh2cad. Check the Mesh2cad README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Mesh2cad an official MCP server?

No. Mesh2cad is a community server maintained by emirmrkaljevic. Community servers can be excellent; read the code and the open issues before you give Mesh2cad access to company data.

What license is Mesh2cad under?

Mesh2cad is released under the MIT license, according to its GitHub repository. The license covers the code of Mesh2cad; the service it connects to has its own terms.