by alphadl
Local MCP server for 3D mesh repair. Inspect Blender, STL and OBJ meshes, preview fixes, and undo edits.
# Add to your Claude Code skills
git clone https://github.com/alphadl/mesh-repair-mcpGuides for using mcp servers skills like mesh-repair-mcp.
See how mesh-repair-mcp compares with popular alternatives.
mesh-repair-mcp is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by alphadl. Local MCP server for 3D mesh repair. Inspect Blender, STL and OBJ meshes, preview fixes, and undo edits. It has 54 GitHub stars.
mesh-repair-mcp's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/alphadl/mesh-repair-mcp" and add it to your Claude Code skills directory (see the Installation section above).
mesh-repair-mcp is primarily written in Python. It is open-source under alphadl on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh mesh-repair-mcp against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Available after the catalog security scan passes.
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Inspect a triangle mesh, try a repair on a copy, then compare it with the original. Run it locally from the command line, from Python, or through a client that supports the Model Context Protocol (MCP). The base installation handles OBJ and STL geometry. Connect Blender to work with scene objects, UV maps and materials.
Run the demo · Connect your MCP client · See the repairs · Browse the tools

A winding error on a textured mesh. We reversed 88 triangles on Microsoft's Avocado model and rendered it with back-face culling. Correcting their winding brought the conflicting edges from 29 to 0. Writing the corrected indices back into this particular GLB reproduced the original file byte for byte. Reproduce the case and see the model credit
From a terminal with Python 3.10 or newer, install from source and run the included demo. It needs only Python and NumPy.
git clone https://github.com/alphadl/mesh-repair-mcp.git
cd mesh-repair-mcp
python3 -m venv .venv
source .venv/bin/activate
python -m pip install .
mesh-repair demo --out-dir first-repair
On Windows PowerShell, use py -m venv .venv and .\.venv\Scripts\Activate.ps1 for the environment steps.
Open first-repair/candidate.obj. The tetrahedron looks much the same, but a duplicate triangle and an unused vertex are gone, and its four faces now point outward. In first-repair/report.json, non-manifold edges drop from 3 to 0. The verdict is needs_review because this workflow leaves self-intersection unchecked. Annotated before and after
To try your own STL or geometry-only triangle OBJ, give the run a fresh output directory. The input file stays in place.
mesh-repair run part.stl --out-dir part-review --save-candidate
Run this in the same environment as the demo. It prints the server command, arguments and absolute workspace path. For clients that use mcpServers JSON, copy the entry into your existing settings. For a client with a stdio setup form, enter the printed command and arguments there.
mesh-repair mcp-config --workspace first-repair/workspace
Reconnect your client and substitute the session_id from first-repair/report.json in this request.
Inspect session
<session_id>. Which defect counts changed? What still needs checking?
For a saved Blender scene, include the path to your Blender executable.
mesh-repair mcp-config --workspace mesh-work --blender /absolute/path/to/blender
If your client uses a setup form, copy the printed Blender environment setting as well. To repair one opening, select the object, inspect its boundary loops, patch the intended loop on a branch and compare with the original. The walkthrough includes the permissions and arguments for each call. Cap one opening · Runnable MCP example
These three Blender fixtures isolate common repair decisions. Select an image for a closer look. The gallery includes the input and output OBJs, measurements and commands to reproduce them.
| Before / after | What changed |
|---|---|
| Bridge two walls. On a hollow collar, joining the outer rim alone would leave the bore unfinished. Bridging both rims took the open-edge count from 96 to 0 and kept the through-hole. Mesh pair | |
| Remove loose pieces. Dropping three known fragments left 1 of 4 components. The mounting tab kept all 192 triangles, including its screw hole. Mesh pair | |
| Flatten a dent against a reference. Projecting 47 vertices onto the undamaged panel reduced the deepest dent from 0.42 to 0 model units and kept the triangle layout. Mesh pair |
Reproduce the gallery · Choose a runnable example
For a geometry-only STL or triangle OBJ with duplicate faces, unused vertices or inconsistent winding, start with the CLI demo workflow. For a cap, seam, boolean or local surface edit, use a Blender session and select the affected region. For textured assets, start from the scene object so you can inspect its materials, UV seams and the repaired copy together. Operation guide · Blender attribute guide
A closed mesh can still have the wrong shape. Set the checks you know, such as a target component count, and inspect design features such as through-holes separately. Inspect the result and the coverage of each check before exporting. The Blender benchmark recorded the expected behavior on all 17 synthetic fixtures. Its actual geometry verdicts were 14 needs_review and 3 failed. Success rates on real asset collections are unmeasured. Fixture definitions · Evaluate your own assets
The server exposes 43 tools by default. A 44th, mesh_build_from_code, runs trusted Blender Python when explicitly enabled. Each row gives a worked example and the resulting mesh, measurement, file or session record.
Use mesh-repair tools --list to find a tool in the terminal, or mesh-repair tools for the full JSON schemas. A tool can accept several geometry operations. For example, mesh_apply can run fill_patch on Blender. The advanced backends register 28 distinct operations in total. Tool arguments · Geometry operations by backend
Preview an edit · Repair a mesh · Compare versions · Verify and export · Blender scenes
The mesh examples use the duplicate-face fixture. The Blender example uses a saved part with UVs and two materials. Reproduce the fixtures
| Tool | Before | After |
|---|---|---|
mesh_open |
A local OBJ contains 5 vertices and 5 triangles. | The returned session ID opens the baseline at revision 0. |
mesh_inspect |
The mesh looks like a closed tetrahedron. | The report identifies 1 duplicate triangle and 3 non-manifold edges. |
mesh_propose |
The committed mesh has 5 triangles. Preview clean. |
The candidate has 4 vertices and 4 triangles. Revision 0 still has all 5 triangles. See the edit |
mesh_reject |
A cleanup proposal is pending. | The rejection is recorded. Revision 0 retains its original geometry fingerprint. |
mesh_accept |
A fresh cleanup proposal is pending on revision 0. | Revision 1 contains 4 triangles and 0 duplicates. |
mesh_export |
The accepted revision is in the workspace. Approve a review copy. | Reopening the new OBJ yields the same geometry fingerprint as revision 1. |
mesh_undo |
Revision 1 contains the cleaned mesh. | Revision 2 restores all 5 original triangles and their original fingerprint. |
mesh_trace |
A second client opens the session after undo. | The history shows open → propose → reject → propose → accept → undo. |
blender_open |
A saved scene contains a mesh named Inspection part. |
The selected object has a preview session at revision 0. Inspection finds 1 inward-facing shell. |
blender_copy |