Skip to main content

propermesh-mcp

An MCP server that lets AI agents (Claude, Cursor, and other MCP clients) run Propermesh's 3D-printing checks on local mesh files. It runs locally over stdio, wraps the propermesh Python SDK, and returns compact JSON summaries with a link to the part in the Propermesh analyzer.

Setup

You need uv (uvx runs the server from PyPI, no install step) and an access key and secret from your account page.

Claude Code

claude mcp add propermesh \
  -e PROPERMESH_ACCESS_KEY=... -e PROPERMESH_SECRET_KEY=... \
  -- uvx propermesh-mcp

Then ask: "Can I print ~/models/bracket.stl?"

Claude Desktop

Add this to claude_desktop_config.json (Settings, Developer, Edit Config) and restart:

{
  "mcpServers": {
    "propermesh": {
      "command": "uvx",
      "args": ["propermesh-mcp"],
      "env": {"PROPERMESH_ACCESS_KEY": "...", "PROPERMESH_SECRET_KEY": "..."}
    }
  }
}

Cursor

Add the same block to ~/.cursor/mcp.json (or .cursor/mcp.json in a project).

Other clients

Any MCP client that launches stdio servers works: the command is uvx propermesh-mcp, with the keys in its environment.

Run it from a checkout

To develop the server, run it from a checkout of the repository instead:

PROPERMESH_ACCESS_KEY=... PROPERMESH_SECRET_KEY=... uvx --from ./mcp-server propermesh-mcp

uvx builds the package and uses the SDK in ../sdk through [tool.uv.sources], so SDK changes apply without publishing. In a client, replace uvx propermesh-mcp with uvx --from /abs/path/propermesh/mcp-server propermesh-mcp.

Environment

Variable
PROPERMESH_ACCESS_KEY Required. An API key's access key
PROPERMESH_SECRET_KEY Required. The key's secret
PROPERMESH_DOMAIN Optional, defaults to https://propermesh.com. Point it at a local API (http://localhost:5005) or a preview environment

Without the keys the server still starts and lists its tools, and every tool call returns an error naming the missing variables.

Tools

Each tool takes exactly one of path (a local STL, OBJ, 3MF or STEP file; ~ is expanded) or part_id (from an earlier result), plus units (mm or inches, used only when uploading). A file uploads once per server session: calling another tool on the same unchanged file reuses its part.

  • analyze_geometry: whether the mesh is watertight, manifold and consistently wound, its shells, the non-zero defect counts, volume, surface area and bounding box, and printable_as_is.
  • check_wall_thickness (min_thickness_mm, default 0.8): whether any wall is thinner than that, the thin area and its percent of the surface, and the thinnest wall. Lengths and areas are in mm.
  • check_overhangs (critical_angle_deg, default 45): whether the part needs supports. A face overhangs when its slope from horizontal is below the angle (PrusaSlicer's convention). Returns the overhang area and percent, face and cluster counts, and the flattest overhang.
  • printability_report (min_thickness_mm, default 0.8; critical_angle_deg, default 45; oriented_output_path): the tool to call first. Runs geometry, thickness, overhang and orientation and returns one verdict (ready, needs_attention or not_printable), the issues behind it, and the key numbers of each check. A check that fails shows as {"error": ...} in its section and a warning; the rest still return. It writes the oriented STL like find_print_orientation, and takes a minute or two.
  • find_print_orientation (output_path): the best print orientation as a 3x3 rotation_matrix, whether the part is already_optimal, and oriented_part_id (the oriented mesh is a part: pass it as part_id to other tools).
  • repair_mesh (output_path): repairs holes and bad triangles, and reports whether the result is watertight, manifold and consistently wound, plus repaired_part_id. A mesh that stays open is reported, not an error.

find_print_orientation, repair_mesh and printability_report can save the STL they download. Given a path and no output path, they write <name>-oriented.stl / <name>-repaired.stl next to the input; given a part_id and no output path, they write nothing. They never overwrite the input file.

analyze_geometry, check_wall_thickness and check_overhangs also return the analysis's job_id.

  • visualize_parts (items, title, open_browser, default true): opens an interactive 3D view of 1 to 4 parts in the browser, side by side with a "Sync cameras" toggle. Each item takes path or part_id, and optionally layer (overhang, thickness or defects, colored with a live threshold slider or defect toggles), job_id, label and stats (short callouts). A layer comes from the analysis this session ran last on the part, else the part's latest. The view is served from 127.0.0.1 while the server runs, and Three.js loads from cdn.jsdelivr.net. Returns the url, whether a browser opened it, and the parts' analyzer_urls.

    Instead of items, pass groups (titled sections of thumbnail cards, e.g. "No overhangs" and "Has overhangs") or rows (one row of 1 to 4 thumbnails per comparison, e.g. before/after orienting each part, with row-level stats) to lay out many parts. Clicking a card opens it in 3D; ticking 2 to 4 cards in groups, or a row's "Compare in 3D", opens them side by side. A layer the session didn't run is looked up when the part is opened.

Example

printability_report on a cube with a thin ridge:

{
  "part_id": "8b1f0c52-4d0e-4a53-9e0e-0d2a1b3c4d5e",
  "analyzer_url": "https://propermesh.com/analysis/8b1f0c52-4d0e-4a53-9e0e-0d2a1b3c4d5e",
  "verdict": "needs_attention",
  "issues": [
    {"severity": "warning", "check": "thickness",
     "message": "Walls thinner than 0.8 mm: thinnest_wall is 0.4 mm, 4.5% of the surface"}
  ],
  "geometry": {"units": "mm", "volume": 1234.567, "surface_area": 987.654,
               "bounding_box": {"x": 10.0, "y": 12.5, "z": 8.25}, "is_watertight": true,
               "is_manifold": true, "is_winding_consistent": true, "num_shells": 1,
               "defects": {}, "printable_as_is": true},
  "thickness": {"min_thickness_mm": 0.8, "has_thin_walls": true, "thin_surface_area": 12.3,
                "thin_area_percent": 4.5, "thinnest_wall": 0.4},
  "overhang": {"critical_angle_deg": 45, "needs_supports": false, "overhang_surface_area": 0,
               "overhang_area_percent": 0, "worst_overhang_angle_deg": null},
  "orientation": {"rotation_matrix": [[1, 0, 0], [0, 1, 0], [0, 0, 1]], "already_optimal": true,
                  "oriented_part_id": "c2d3...", "oriented_stl_path": "/models/ridge-oriented.stl"}
}

Metadata

Release files for propermesh-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for propermesh-mcp 0.1.0
File Size Uploaded Provenance Actions
propermesh_mcp-0.1.0.tar.gz 57.1 kB Without provenance Details for propermesh_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for propermesh-mcp 0.1.0
File Interpreter ABI Platform Actions
propermesh_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for propermesh_mcp-0.1.0-py3-none-any.whl

Total release size: 126.9 kB

Release files / propermesh_mcp-0.1.0.tar.gz

Download URL propermesh_mcp-0.1.0.tar.gz
Size 57.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4429d0b71d58d62110abe9f4baf79fc031fbfeeb3e3f25e5749026d760c4e25b
BLAKE2b-256 checksum
How to use checksums
f9f11fb3ff94807f3a271a940fccfd3ba3a89a87d6bee703407e3708a864a993
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.13 {"installer":{"name":"uv","version":"0.13.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / propermesh_mcp-0.1.0-py3-none-any.whl

Download URL propermesh_mcp-0.1.0-py3-none-any.whl
Size 69.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e93f7001d4c7a19980cddbf39be8fe766a03e064203c1f74a691ad05b96939a
BLAKE2b-256 checksum
How to use checksums
510628185abbcc2a58d2c99865ba328d6c0b9408f2799e3b174bd72230e0cb1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.13 {"installer":{"name":"uv","version":"0.13.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for propermesh-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page