model3d_viewer
Provides Bambu Studio/Bambu Lab-oriented 3D printing workflows: parses multi-color Bambu .3mf projects, matches colors against official Bambu Lab PLA filament profiles, and exports AMS-ready or spool-matched Bambu .3mf files.
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.
Antigravity 3D Print Model Viewer Plugin
An interactive Antigravity plugin (model3d-viewer) that bundles a local MCP App, an always-on default viewer rule, and the view-3d-models skill for inspecting, comparing, and exporting .stl and Bambu Studio's canonical multi-color 3D printing formats (.3mf, .obj + .mtl, .glb / .gltf, and .ply).
Features
Side Panel + Compact Inline Chat Previews + Custom File Viewer:
Side Panel (
open_3d_viewer): Full-height auxiliary side pane (3D Print Viewer) for detailed inspection and multi-model comparisons (also launchable directly from the side pane+menu, restoring your last session or accepting drag-and-dropped local 3D files).Compact Inline Preview (
preview_3d_models_inline): Lightweight interactive 3D card rendered directly inside chat with a zero-turn Side Panel ↗ button that pops your active models and toggles straight into the side panel.Custom File Viewer (
view_3d_file): Automatically claims.3mf,.stl,.glb,.gltf,.obj, and.plyfiles so clicking any 3D file link in Antigravity opens it in the 3D Print Viewer.
Toggle Up to 5 Models: Switch instantaneously between up to 5 files (with in-memory client caching and keyboard shortcuts
1–5).Native Bambu Studio Multi-Color
.3mf& Large.stlEngine:Fast server-side parser supporting Bambu Studio / OrcaSlicer
paint_colorMMU bitstreams,<basematerials>,<m:colorgroup>,Metadata/project_settings.config,Metadata/model_settings.config, and multi-file3D/Objects/*.modelassemblies.Supports binary & ASCII
.stl(including Magics/VisCAM 15-bit per-triangle RGB) with automatic spatial-clustering decimation for massive 100+ MB build plates so interaction stays smooth at 60 FPS while preserving true millimeter dimensions.Large & Draco
.glbServer Optimizer: Automatically decodesKHR_draco_mesh_compressionserver-side (bundled JS decoder, zero browser WASM/CSP issues), applies UV-seam-preserving spatial decimation for multi-million-triangle meshes, downscales oversized 4K textures to crisp 1024px, and streams in 512 KiB chunks safely below MCP payload caps.
Calibrated Studio Lighting & Self-Shadows:
~4.5:1 off-axis key-to-fill lighting rig with tight 2048×2048 shadow maps (
PCFSoftShadowMap,normalBias) and per-group creased CAD normals so relief lettering and bevels cast crisp self-shadows on both matte white and vibrant filament colors.
Color / Grey Inspection Toggle (
C): Switch between full colors and uniform neutral inspection grey (#9CA3AF), or click individual bottom swatch chips to mute/unmute specific color channels.Bambu Lab Filament Color Matching (
B): Perceptual CIELAB CIEDE2000 matching against 68 official Bambu Lab filaments (PLA Basic,PLA Matte, andPLA Silk+) with finish-accurate PBR roughness/metalness and fast 32³ RGB LUT remapping for full-color textured.glb/.objand vertex-colored.plymodels.High-Contrast Black vs. Natural Oak Desk Backdrop (
D) & Desk Mat (M): Toggle between pure#000000black for maximum contrast and a non-repeating natural quarter-sawn oak tabletop with soft grounded shadows and an optional toggleable grey maker mat.Intuitive Dual Mouse Controls:
Click & drag on the 3D model: Spins the object upright around its vertical turntable axis without tilting or flipping upside down.
Click & drag on the background (or
Alt+drag anywhere): Orbits the camera (clamped above the tabletop in Desk mode so you never dip beneath the table).Scroll / pinch: Zoom · Right-drag / Shift+drag: Pan ·
Ror double-click background: Reset view.
Direct 3D Print Export (
Export ▾):Bambu Multi-Color (
.3mf) (Recommended): Exports an AMS-ready Bambu Studio.3mfwith<basematerials>,paint_color,project_settings.config, andmodel_settings.config, grounded flush atZ = 0in millimeters.Bambu Spool-Matched (
.3mf): Snaps all colors (or quantizes textured/vertex-colored models into up to 8 AMS channels) to the closest official Bambu Lab PLA filaments.Single-Color Mesh (
.stl): Exports a standard binary.stlin millimeters grounded on the build plate.Saves cleanly next to the source model (or into
~/Downloadsfor locally dropped files) without overwriting existing files.
Related MCP server: Model Review MCP
Installation
Pre-built bundles (dist/index.html and dist/server.mjs) are checked into this repository so the plugin works immediately with Node.js 20+ and no build step required.
Clone directly into your Antigravity global plugins directory:
git clone https://github.com/jacob314/agy_model_viewer_plugin.git ~/.gemini/config/plugins/model3d-viewerAntigravity automatically discovers any plugin with a plugin.json under ~/.gemini/config/plugins/. Once cloned:
The
model3d-viewerplugin,view-3d-modelsskill, always-on default viewer rule (rules/AGENTS.md), andmodel3d_viewerMCP server activate automatically.You can manage or toggle the plugin anytime from Customizations → Plugins → 3D Print Model Viewer.
Usage
Just ask Antigravity in any chat to inspect, preview, or compare your 3D models:
"Open my latest Bambu 3MF and STL models in the 3D Print Viewer side panel"
"Compare these 4 STL iterations side-by-side and match colors to Bambu Lab PLA filaments"
"Show a compact inline 3D preview of
part.3mfon the desk"
Or click any .3mf, .stl, .glb, .gltf, .obj, or .ply file in Antigravity to open it directly in the 3D Print Viewer side panel.
Keyboard Shortcuts & Mouse Controls
Input | Action |
| Switch between loaded model slots |
| Toggle Color ON vs. neutral inspection Grey |
| Toggle Bambu Lab Filament Color Matching |
| Toggle Black BG vs. Natural Oak Desk BG |
| Toggle optional Grey Desk Mat (when in Desk BG) |
| Reset camera angle and model rotation |
Left-drag on model | Spin model upright around vertical axis |
Left-drag on background (or | Orbit camera (clamped above desk in Desk mode) |
Scroll / pinch | Zoom camera |
Right-drag / | Pan camera |
MCP Tools
Tool | Visibility | Surface | Purpose |
| Model & App | Side Panel ( | Primary viewer for 1–5 3D models; restores last session on |
| Model & App | Inline Chat | Compact interactive 3D preview card with zero-turn Side Panel ↗ promotion |
| Host / App | File Viewer ( | Native custom viewer for |
| App-only | Internal | Streams compiled binary |
| App-only | Internal | Snapshots inline state for instant |
| App-only | Internal | Full-resolution server-side Bambu |
| App-only | Internal | Chunked saver for client-side |
Development
To modify the TypeScript server or Three.js MCP App UI and rebuild the single-file bundle:
cd ~/.gemini/config/plugins/model3d-viewer
npm install
npm run typecheck
npm run buildnpm run build:appbundlessrc/app/into a CSP-safe single-file HTML document atdist/index.htmlusing Vite +vite-plugin-singlefile.npm run build:serverbundlessrc/server/index.tsintodist/server.mjsusingesbuild.After editing server code, restart the MCP server from Customizations → Installed → 3D Print Model Viewer → MCP → Restart.
License
Licensed under the Apache License, Version 2.0.
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
Convert 3D models and images from your AI chat. Free, no sign-in.
Generate 3D models from images or text with AI, then retexture or convert them to STL, 3MF or OBJ.
CAD in ChatGPT and Claude: editable parts, STEP/STL/drawings, in-chat 3D, automatic checks.
Build and edit Spline 3D scenes from any AI tool: create files, generate 3D models and images.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables slicing 3MF projects with a local Bambu Studio installation and exploring the resulting toolpaths, layers, print times, and filament usage in an interactive 3D viewer inside ChatGPT.AGPL 3.0
- AlicenseAqualityCmaintenanceEnables an AI assistant to open 3D model files (STL, 3MF, Bambu Studio and OrcaSlicer projects) in a local browser viewer where the user clicks exact spots to leave feedback. Each note comes back with the part name, millimetre coordinates, surface direction and a numbered screenshot, so the assistant can revise the design and show the new version.2MIT
- AlicenseAqualityCmaintenanceLets AI assistants read, audit, and safely edit slicing presets for Creality Print, OrcaSlicer, and Bambu Studio, resolving full inheritance chains to expose effective settings and flagging common print-failure causes. It also inspects, scales, and rotates 3D model files (.stl, .obj, .3mf) into new outputs.91MIT
- AlicenseAqualityBmaintenanceEnables Claude to analyze STL/3MF models, slice them with the real Bambu Studio engine, compare print recipes by time and weight, and manage presets for Bambu Lab printers. It produces ready-to-print .3mf project files with material and build-plate settings applied, all locally on the user's PC.183MIT