3D Mesh Optimizer MCP
Automated 3D mesh decimation, Draco compression, watertight manifold auditing, and exact CSG booleans for WebGL and spatial agents.
Part of the WHAM ENGINE fleet of deterministic AI agent micro-services with automated Base L2 HTTP 402 (x402) USDC micropayments.
Tools Included in this Suite (5 Tools)
optimize_3d_mesh: Bakes normal maps, decimates polycount, Draco-compresses GLTF models for 3D web engines and spatial metaverses.
mesh_boolean_csg_exact: Exact arbitrary-precision constructive solid geometry (CSG) mesh boolean operations (Union, Difference, Intersection) that resolve coplanar facets without crashing.
mesh_watertight_manifold_auditor: Audits 3D geometry for non-manifold edges, T-junctions, duplicate vertices, flipped surface normals, and boundary holes before simulation or 3D fabrication.
mesh_decimate_quadric_simplifier: Simplifies dense 3D meshes using Quadric Error Metrics (QEM), reducing polycounts by 50-90% while preserving silhouettes, UV borders, and vertex normals.
gltf_draco_mesh_quantizer: Applies Draco geometry quantization and Meshopt encoding to glTF/GLB assets, reducing file payload by up to 85% for real-time spatial streaming.
Recommended Workflow
An agent receives a raw CAD/OBJ model -> audits manifold watertightness -> applies exact CSG difference to carve out mounting holes -> decimates polygon count by 75% -> exports a web-ready Draco-compressed GLTF.
Quickstart Configuration
Add this server to your claude_desktop_config.json:
{
"mcpServers": {
"spatial-mesh-optimizer-mcp": {
"command": "npx",
"args": ["-y", "@whambammy/spatial-mesh-optimizer-mcp"],
"env": {
"PAYMENT_WALLET": "0x9793E7269b3301893318dEa8338576Ba612F39B3",
"BASE_RPC_URL": "https://mainnet.base.org"
}
}
}
}
Or connect the skill directly via Smithery:
smithery skill add whambammy/spatial-mesh-optimizer-mcp