meshforge-mcp
Generates glTF 2.0 binary (.glb) files from text prompts, 2D images (inflation/relief), or Scene DSL JSON, with embedded PBR materials and textures; also parses glTF binary headers/chunks to report meshes, vertices, triangles, materials, textures, and bounding boxes of existing .glb files.
Optional Gradio 4/5 HTTP+SSE adapters that let the server submit text/image-to-3D generation jobs to public ZeroGPU Hugging Face Spaces or to a self-hosted local GPU server via MESHFORGE_LOCAL_URL.
Optional neural text/image-to-3D generation through public ZeroGPU Hugging Face Spaces (hunyuan3d-hf, sf3d-hf) reached via Gradio HTTP+SSE; not required for the default pure-code pipeline.
Generates a standalone, self-contained Three.js interactive studio HTML viewer for any local .glb model, providing an offline browser-based preview of the generated 3D geometry and materials.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
meshforge-mcp
Zero-dependency, zero-API-key open-source Text-to-3D & Image-to-3D CLI, pure-code procedural/SDF GLB compiler, binary GLB inspector, Three.js studio previewer, and Model Context Protocol (MCP) server for Codex, Claude Code, Gemini CLI, Claude Desktop, Cursor, Antigravity, and OpenBot.
Everything runs 100% offline in pure Node.js code by default — no API keys, no paid credits, no Python/CUDA setup required.
Pure-Code 3D Techniques (Zero API Keys)
Technique | Engine / Tool | How It Works |
Image-to-3D Inflation |
| Pure-JS PNG/BMP decoder ( |
Image-to-3D Relief / Lithophane |
| Luminance extraction + 3×3 Gaussian smoothing → watertight solid heightmap slab with side walls + embedded UV texture in |
Declarative Scene DSL + SDF |
| Agents (Codex / Claude Code / Gemini / OpenBot) compose custom 3D models via JSON parts ( |
Semantic Text-to-3D Compiler |
| Parses prompt keywords (objects, materials like copper/gold/ceramic/wood, colors, low-poly flags) into multi-part PBR |
Optional Neural Engines |
| Optional Gradio 4/5 HTTP+SSE adapters for public ZeroGPU Hugging Face Spaces or a self-hosted local GPU server ( |
Related MCP server: rupa3d
Architecture
flowchart LR
A["Codex / Claude Code / Gemini CLI / OpenBot"] -->|MCP stdio| B["meshforge-mcp Server"]
C["meshforge CLI"] --> D["Pure-Code Router (zero API keys)"]
B --> D
D -->|Text / Scene DSL| E["Procedural + SDF Marching Tetrahedra Compiler"]
D -->|PNG / BMP / Image| F["PNG Codec + Flood-Fill + 2D EDT Inflation / Relief"]
D -->|Optional Gradio| G["HF Spaces / Local GPU Server"]
E --> H["glTF 2.0 Binary (.glb) + Embedded Textures + Validation"]
F --> H
G --> H
H --> I["Self-Contained Three.js Studio Preview HTML"]Quick Start
1. Register meshforge-mcp in Codex, Claude Code, Gemini CLI, Claude Desktop & Cursor
node bin/meshforge.cjs install --clients codex,claude-code,gemini,claude-desktop,cursor
node bin/meshforge.cjs status2. Generate 3D .glb Models Purely by Code (Offline, Zero API Key)
# Text-to-3D (procedural multi-part PBR)
node bin/meshforge.cjs generate --prompt "copper studio headphones" --out ./out
# Image-to-3D (Teddy / EDT silhouette inflation with embedded UV texture)
node bin/meshforge.cjs generate --image ./logo.png --provider image-inflate --out ./out
# Image-to-3D (solid Gaussian-smoothed luminance relief / lithophane)
node bin/meshforge.cjs generate --image ./photo.png --provider image-relief --out ./out
# Custom Scene DSL JSON (primitives, lathe, tube, extrude, smooth-boolean SDF)
node bin/meshforge.cjs build-scene ./scene.json --out ./out3. Inspect or Preview Any .glb
node bin/meshforge.cjs inspect ./out/model.glb
node bin/meshforge.cjs preview ./out/model.glb --out ./out/preview.html
node bin/meshforge.cjs doctorMCP Tools
mesh_list_providers— list local pure-code engines and optional Gradio adapters.mesh_generate_3d— generate a.glbfrompromptorimagePath/imageUrloffline in pure code (or optional Gradio), validate geometry, and emit a Three.js HTML preview.mesh_build_scene— compile any custom Scene DSL JSON (including smooth-boolean SDF Marching Tetrahedra + lathe/tube/extrude + PBR materials) into a validated.glbwith zero API keys.mesh_inspect_glb— parse glTF 2.0 binary headers/chunks and report meshes, vertices, triangles, materials, textures, and bounding box.mesh_preview_html— create a standalone Three.js interactive studio HTML viewer for any local.glb.mesh_install_clients— inspect or atomically registermeshforge-mcpinto Codex, Claude Code, Claude Desktop, Gemini CLI, Cursor, and Antigravity.mesh_doctor— verify local pure-code capabilities, optional Gradio endpoint reachability, and client registrations.
Verification
npm run check
npm testLicense
MIT — Emerson Almeida (@deusbr)
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate game-ready 3D models, textures, and audio from natural language, over MCP.
- VULKDeprecatedio.github.devjoaocastro
Generate, edit, and deploy immersive 3D/WebGL web projects from any MCP assistant.
3D avatar/asset foundry: text/image -> rigged, validated, engine-ready GLB via x402.
Generate and edit images, video, voice and music from any MCP client. 50 tools, 46 models.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables natural language control of Blender 3D through local AI models, allowing MCP clients to create, modify, and render scenes, apply materials, and execute Python code in Blender.-
- AlicenseAqualityCmaintenanceEnables AI agents and MCP clients to perform 3D asset creation and verification: exact b-rep CAD, GLB validation with embedded certificates, mesh inspection, and physics scenes, with most tools running without Blender.3648 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to procedurally generate, transform, inspect, and export 3D meshes and scenes through MCP tools.1MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI clients to generate 3D models through natural language, including text-to-3D and image-to-3D, with tools for checking balance, refining models, converting formats, and a local 3D viewer that works without external network access.2MIT