Skip to main content

Splat Lens MCP

PyPI License: MIT Python 3.10+

A local-first, uvx-compatible FastMCP server giving coding agents dual-channel spatial perception over 3D Gaussian Splatting (.ply) scenes, point clouds (.npz/.npy), and MuJoCo rigid-body states — plus an inline interactive WebGL radial-Gaussian viewer (ui://splat-lens/viewer.html) built on the MCP Apps extension.

10-Second Demo (No .ply Needed)

Try the bundled tabletop 3DGS scene (a seated cyan mug + a floating amber block) right from your terminal:

uvx splat-lens-mcp --demo

Or connect the MCP server and paste this prompt into Claude Code, Cursor, Claude Desktop, or Antigravity:

"Inspect demo with inspect_scene_geometry and render_multiview_grid, point out any floating object, open it in open_interactive_viewer, and verify the corrected placement in MuJoCo (scene_xml_path="demo", body_name="floating_block")."

Tools

Tool What it does
inspect_scene_geometry Parses Gaussian centers, normals, opacities, scales, and RGB/SH DC colors (LRU-cached by (path, mtime_ns, up_axis)), estimates the floor plane and elevated support surfaces (tables/shelves), and computes per-cluster AABBs, plan-view OBBs, PCA tilts, support heights, and pairwise 3D clearances.
render_multiview_grid Pure-CPU headless 2×3 (or 2×2) multi-view PNG contact-sheet renderer (zero EGL/CUDA dependencies) with world axes, metric scale bars, Okabe-Ito GT/predicted 3D wireframes, 2-sigma uncertainty ellipsoids, and cluster highlighting. Returns both JSON metadata and the PNG directly in vision context.
check_mujoco_plausibility Places a rigid body at a candidate 7-DoF pose [x, y, z, qw, qx, qy, qz] in MuJoCo, checks initial contact penetration (mjData.contact), rolls physics forward sim_steps, compares resting translation/yaw error against an observed .ply, and returns numeric metrics + a Before/After PNG contact sheet.
open_interactive_viewer Streams packed Float32 positions, Uint8 RGB colors, Gaussian radii, and optional Int32 cluster IDs to an inline WebGL radial-Gaussian (exp(-3.4 * r^2)) MCP App (ui://splat-lens/viewer.html), with click-to-pick 3D coordinates sent back to the agent via ui/update-model-context / ui/message, plus a standalone HTML fallback file.

All 4 tools accept "demo" as a shorthand for the bundled tabletop sample scene (demo_tabletop.ply, demo_clusters.npy, demo_scene.xml).

MCP Client Setup

Core dependencies (fastmcp, numpy, plyfile, Pillow, matplotlib, scipy) install from pre-built wheels with zero C++/CUDA compilation. Add [mujoco] for physics rollouts.

Antigravity / Cursor / Windsurf (mcp_config.json / .cursor/mcp.json)

{
  "mcpServers": {
    "splat-lens": {
      "command": "uvx",
      "args": ["splat-lens-mcp"]
    }
  }
}

With optional MuJoCo plausibility engine:

{
  "mcpServers": {
    "splat-lens": {
      "command": "uvx",
      "args": ["--from", "splat-lens-mcp[mujoco]", "splat-lens-mcp"]
    }
  }
}

Claude Code

claude mcp add splat-lens -- uvx splat-lens-mcp
# Or with MuJoCo:
claude mcp add splat-lens -- uvx --from "splat-lens-mcp[mujoco]" splat-lens-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "splat-lens": {
      "command": "uvx",
      "args": ["splat-lens-mcp"]
    }
  }
}

Gemini CLI Extension

gemini extensions install https://github.com/Nils19/splat-lens-mcp

Coordinate Convention

All tools operate in a right-handed Z-up frame by default (up_axis="z"). Pass up_axis="y" for Y-up meshes/splats or up_axis="cv" for OpenCV camera-frame .ply exports (diag(1, -1, -1) conversion to Z-up).

Local Development

git clone https://github.com/Nils19/splat-lens-mcp.git
cd splat-lens-mcp
uv sync --extra dev --extra mujoco
uv run pytest -v

License

MIT

Metadata

Release files for splat-lens-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 splat-lens-mcp 0.1.0
File Size Uploaded Provenance Actions
splat_lens_mcp-0.1.0.tar.gz 316.8 kB Without provenance Details for splat_lens_mcp-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 380.7 kB

Release files / splat_lens_mcp-0.1.0.tar.gz

Download URL splat_lens_mcp-0.1.0.tar.gz
Size 316.8 kB
Tags Source
SHA-256 checksum
How to use checksums
26d039c077b8dbb2516c3a8dc0386553069f48b0c64096b4ddc44a5c9542af9f
BLAKE2b-256 checksum
How to use checksums
58bf6dc087693ac6534ca52354bd3e888ddfed2ad0055c0f9505f0365aa0be36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

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

Download URL splat_lens_mcp-0.1.0-py3-none-any.whl
Size 64.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89e9f28040654db43a245a7262a2a9df0cc88e4d94271caf7d1a615013468310
BLAKE2b-256 checksum
How to use checksums
26b31a2faa16ea0fe4230f2ae4b741b66960ecf67c998da458ec1962d5380510
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for splat-lens-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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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