Skip to main content
Glama

Utilities

🎥  Video in, 3D scene out

Upload a phone video. A few minutes later you have a persistent 3D scene.

📏  Measurement

Distances and angles between any points. Numbers are only called metres after you calibrate with real distance; otherwise relative.

🧭  Path planning

Plan a route through the scanned free space to an object or a point.

🤖  Robot-training exports

Turns a scan into LeRobot / GR00T style datasets or an Isaac Sim or MuJoCo scene (hosted service).

🕵️  Scene agents

Server-side agents that survey, label, and answer questions about a scene.

🛠️  42 tools for your AI

Everything is exposed through MCP.

🧪  Offline simulator

A mock backend fakes the entire workflow with fixture data, so you can develop and demo with no account and no GPU.

🏠  Self-hostable

The full server runs on your own GPU box or your own Modal account, no account with us needed.

Related MCP server: OpenMesha

Quickstart

Add the tools to your AI assistant:

claude mcp add openreality -- npx -y openreality-mcp serve

codex mcp add openreality -- npx -y openreality-mcp serve

Add this to claude_desktop_config.json (Settings → Developer → Edit Config) or ~/.cursor/mcp.json:

{
  "mcpServers": {
    "openreality": {
      "command": "npx",
      "args": ["-y", "openreality-mcp", "serve"]
    }
  }
}

Claude Code plugin (the MCP server plus the workflow skill in one step):

/plugin marketplace add reality-opened/openreality
/plugin install openreality@openreality

Claude desktop extension: download openreality-mcp-<version>.mcpb from the latest release and double-click it, or drag it into the Claude desktop window. No terminal needed.

Then sign in once (opens your browser, stores a revocable API key on your machine):

npx -y openreality-mcp login

Scan a room with your phone at open-reality.io, or just ask your assistant to upload a video file. Full per-client setup: open-reality.io/mcp.

Examples

Once connected, talk to your assistant like this:

"Upload ~/Videos/kitchen.mp4 and reconstruct it."

"What objects are in my latest scan, and how big is the room?"

"The counter edge to the window is 2.4 m. Calibrate the scene, then measure the couch."

"Plan a path from the door to the desk and describe it."

"Export this scan as robot-training data and save the zip locally."

Self Hosting

The whole workflow is self-hostable. Read server/docs/self-hosting.md; the short version:

git clone https://github.com/reality-opened/openreality
cd openreality/server

# Path A: your own GPU box (one process, local disk)
python -m server.selfhost --data-dir ~/openreality-data

# Path B: your own Modal account (CPU web server + GPU worker)
modal deploy modal_selfhost.py

Self-hosted servers need no account: a single token printed at first start is your login, and the MCP client connects with OPENREALITY_URL plus that token.

IMPORTANT

Licensing. This repo is BSD-2-Clause, but the 3D reconstruction model a self-hosted server downloads (VGGT-1B and the VGGT code it runs on) is licensed by its owners as CC BY-NC 4.0, non-commercial use only. Nothing here redistributes it; your server fetches it from the source under their terms. For commercial use, use the hosted service (which runs a commercially licensed model) or get your own license from the model owners.

Repo index

Directory

What it is

Ships as

mcp/

The MCP server: 42 tools, scene resources, the offline simulator, and a full test suite. Developed here directly.

npm openreality-mcp

server/

The backend: turns videos into persistent scenes and serves measurement, planning, agents, and exports over a plain REST API.

source (public mirror)

core/

The 3D reconstruction library: camera tracking and dense geometry from ordinary video (the VGGT-SLAM 2.0 line), plus metric calibration, object detection, and splat export.

source (public mirror)

server/ and core/ are curated mirrors of our private working repos, synced by hand; each carries a MIRROR.md that says exactly what is included and how it is synced. mcp/ is developed in this repo directly.

Technical details

flowchart LR
    A["📱 phone video"] --> B["server: 3D reconstruction<br/>(GPU job)"]
    B --> C[("persistent scene:<br/>geometry + objects + report")]
    C --> D["41 MCP tools"]
    D --> E["🤖 Claude / Codex / Cursor"]
    E -->|"measure · navigate · export"| D

The MCP process always runs on your machine and holds your credentials; every tool call is a typed REST call to a server (ours or yours). Big files are written to your disk, never pasted into the AI's context. Server refusals and uncertainty labels reach the AI unedited, so it cannot pretend a relative number is metres.

The measurement rule is explained in Why our 3D tools refuse to say "metres" until you prove it.

🙏 Acknowledgements

Open Reality stands on other people's research and code. Thank you to:

  • VGGT-SLAM by Dominic Maggio, Hyungtae Lim and Luca Carlone (MIT SPARK Lab). The reconstruction core in core/ is the VGGT-SLAM 2.0 line, and the scan demo above is theirs.

  • VGGT (Meta AI), the feed-forward 3D backbone a self-hosted server fetches under its own licence (see the note above).

  • Depth Anything V2, the metric-depth model behind our scale-drift correction between map segments.

  • gsplat from the Nerfstudio project, the optional GPU refinement in our splat export.

  • SAM 3 (Meta AI) for segmentation, and SAM 3D Objects and TRELLIS (Microsoft) for object completion and variants on the hosted service.

  • LeRobot (Hugging Face), NVIDIA GR00T and Isaac Sim, whose dataset and scene formats our robot-training exports target.

  • GTSAM for factor-graph optimization, cordis for the plugin runtime, and the MCP TypeScript SDK.

🤝 Contributing

Issues and pull requests are welcome on any component. Changes to mcp/ land here directly; fixes to server/ and core/ are folded back into the private working repos and re-synced out. If you self-host and something breaks, an issue with your logs is a gift: the self-host paths are young.

License

BSD-2-Clause for everything in this repository. Third-party models are fetched from their owners under their own licenses (see the licensing note above and server/docs/self-hosting.md).


Available Tools

41 tools
agent_annotateRun the annotation agentA

Start the five-phase scene annotation run (survey → labels → description → dimensions → key features) on the server-side scene agent. 202 {run_id}; one active run per scene (409 agent_run_active carries active_run_id — or set attach_if_active). Costs bounded server-side LLM calls. Follow with agent_run_events wait_for_done.

Inputs: scan_id (required), attach_if_active.

agent_chatChat with the scene agentA

One chat turn with the scene agent (its own bounded run; the server agent may call its scene tools mid-turn). By default waits for the run to finish and returns the event transcript. The agent's numbers carry units/scale_source — repeat them honestly.

Inputs: message (required), scan_id (required), wait, poll_s, +2 more.

agent_pilotRun the pilot agentA

Give the pilot agent a free-text instruction (navigate/inspect flows; tools: list_scene_objects, plan_path, measure_distance). 202 {run_id}; poll agent_run_events.

Inputs: scan_id (required), instruction (required).

agent_replayReplay a recorded runA

Re-serve a recorded run's persisted event log as a new (replay-badged, $0) run. Use for reviewing what an earlier run found without spending LLM calls.

Inputs: scan_id (required), source_run_id (required), speed.

agent_run_eventsRead run eventsA
Read-only

Read a run's event log from a cursor (GET /runs/<run_id>/events?after=). With wait_for_done, polls at ~1 Hz (the web client's cadence) until the run finishes.

Inputs: run_id (required), scan_id (required), after, poll_s, +2 more.

agent_runsList agent runsA
Read-only

The scene's run index (newest first) + which run is live: kind, status, cost_usd, llm_calls, findings. Persisted runs can be replayed for $0 with agent_replay.

Inputs: scan_id (required).

artifact_fetchFetch a derived artifact to diskA
Read-only

Download any derived/... artifact (export zips, LOD levels, agent run logs, QC reports, masks) to a local file and return the path — bytes NEVER go into context. Default target: <artifacts_dir>/<scan_id>/.

Inputs: scan_id (required), derived_key (required), out_path.

artifact_fetch_cloudFetch the scene point cloud to diskB
Read-only

Download the scene's cloud.ply to a local file and return the path.

Inputs: scan_id (required), out_path.

artifact_fetch_splatFetch the scene splat to diskA
Read-only

Download the scene's original splat.ply to a local file and return the path. For a render-sized variant prefer the LOD levels (scene_lod → artifact_fetch of a level key).

Inputs: scan_id (required), out_path.

export_manifestExport dry-run manifestA
Read-only

What an export WOULD contain (GET /demo/export/manifest): file tree + sizes, complete/absent components, and whether the zip route would work. No build, no writes. Formats: openreality | groot_lerobot_v2 | isaac_usd (isaac is metric-gated — needs an anchor).

Inputs: format (required), scan_id (required), source.

export_prepareBuild an exportA

Build the export zip as a background job (POST /demo/export/prepare → 202 {job_id}; 409 export_job_active when one is running). With wait=true (default) polls the job and returns the prepared artifact (including download_path). Then artifact_fetch it.

Inputs: format (required), scan_id (required), wait, poll_s, +2 more.

export_statusPrepared-export statusA
Read-only

What is prepared for scene+format (GET /demo/export/prepared). Always 200 with {status: ready|running|error|none}; ready carries the artifact + download_path.

Inputs: format (required), scan_id (required), source.

scene_anchorAnchor the scene to metresA

Metric-anchor calibration (POST /anchor): two picked world points + their real distance in metres. Non-destructive (writes NEW derived/anchor/* artifacts + the derived_latest pointer) and it is what unlocks units:"m" for measure/nav/export. materialize:"job" returns 202 with a job_id to poll via workspace_job_wait.

Inputs: point_a (required), point_b (required), scan_id (required), distance_m (required), +1 more.

scene_cardScene context cardA
Read-only

The Tier-1 context card for a scene: source, metric/anchor state, room + summary, closed-world object inventory, ground frame, and workspace artifacts (agent runs, measurements, paths). Small by design — pull details with the other scene tools.

Inputs: scan_id (required).

scene_ground_frameRead the ground frameA
Read-only

Read the recorded floor/ceiling frame (GET /ground_frame). If vertical_axis_known is false, the numbers are ABSENT on purpose — say so rather than guessing heights.

Inputs: scan_id (required).

scene_ground_frame_fitFit the ground frameA

(Re)fit the floor plane and write the result onto the scene metrics (POST /ground_frame). dry_run=true computes without persisting.

Inputs: scan_id (required), dry_run.

scene_imported_objectsImported-splat objects statusB
Read-only

Status of geometry-derived objects for an imported splat (GET /imported_objects).

Inputs: scan_id (required).

scene_imported_objects_runCluster imported-splat objectsB

Cluster an imported splat's geometry into facts.objects (POST /imported_objects). Labels carry geometry/synthetic-view provenance — confidence 0.0 is honest, not a bug.

Inputs: scan_id (required).

scene_job_statusCheck a scene jobA
Read-only

One status read of a broker-thread scene job (SAM-3D completion, variants, view renders). NOTE: these jobs honestly 404 across a broker restart.

Inputs: job_id (required), scan_id (required).

scene_job_waitWait for a scene jobB
Read-only

Poll a broker-thread scene job until done/error/timeout.

Inputs: job_id (required), scan_id (required), poll_s, timeout_s.

scene_keyframe_imageFetch a keyframe imageA
Read-only

One capture keyframe as an image (GET /keyframes/<blob_key>). blob_key comes from the scene detail keyframes[] refs. Real capture photos — cite as photo evidence.

Inputs: scan_id (required), blob_key (required).

scene_list_objectsList scene objectsA
Read-only

The closed-world object inventory from the persisted record (facts.objects): model query, operator relabel, confidence, world center/extent. These uids/labels are the ONLY objects that exist — never invent others.

Inputs: scan_id (required), include_dismissed.

scene_lodLOD statusA
Read-only

Level-of-detail index status for the scene splat (GET /lod). Always 200 — read status (ready|none|running|error|not_needed).

Inputs: scan_id (required).

scene_lod_buildBuild LOD variantsA

Spawn the LOD decimation job (POST /lod → 202 {job_id}; 409 lod_job_active when one is already running). Poll with workspace_job_wait.

Inputs: scan_id (required).

scene_measure_angleMeasure an angleA
Read-only

Angle at the vertex (second point) of three WORLD-frame points (POST /measure, kind=angle). Returns degrees.

Inputs: scan_id (required), points_world (required).

scene_measure_distanceMeasure a distanceA
Read-only

Distance between two WORLD-frame points (POST /measure). The response units are "m" ONLY when the scene has a metric anchor — otherwise "relative". ALWAYS report the units and scale_source with the value; never say metres for relative units.

Inputs: point_a (required), point_b (required), scan_id (required).

scene_object_completeComplete an object to 3DA

SAM-3D-Objects mesh completion for a segmented object (POST /objects//complete → 202 {job_id}, broker-thread lane). Poll with scene_job_wait. Output is GENERATED geometry (honesty envelope in the artifact meta.json).

Inputs: uid (required), scan_id (required).

scene_object_variantsGenerate object variantsC

TRELLIS variant generation for a completed object (POST /objects//variants → 202 {job_id}). Optional body fields pass through (see server docs). GENERATED assets.

Inputs: uid (required), scan_id (required), body.

scene_planesDetect floor/wall planesA
Read-only

Floor + wall plane candidates from the scene geometry (POST /planes; cached per-scene). Used for restyle scoping and understanding room structure.

Inputs: scan_id (required), force, max_walls.

scene_plan_pathPlan a robot pathA
Read-only

Plan a path through scanned free space to an object (by uid) or a world point (POST /nav/plan). Provide exactly one of object_uid | point_world. Honest failures: 422 no_geometry / no_floor / unreachable_goal (with a nearest-reachable suggestion). The response provenance line ("not certified navigation") must ride along with any use. The per-frame camera flythrough (poses) is left on disk by default and the waypoint list comes back as an evenly-sampled preview — both counts and the full-trajectory artifact key ride along; artifact_fetch(doc_key) for the whole thing.

Inputs: scan_id (required), start, clearance, object_uid, +4 more.

scene_segmentSegment an object (advanced)A

SAM-3 click segmentation (POST /segment). Advanced: the body must match the server contract (click point + view selection — see routes_sam3d.py / the OS UI). Provided as a raw passthrough so the full surface stays reachable.

Inputs: body (required), scan_id (required).

scene_shareMint a read-only share linkA

Mint a read-only, single-scene share token + embed URL (POST /share; default TTL 30 days). Share tokens can NEVER reach the OS feature routes — viewer only.

Inputs: scan_id (required), ttl_seconds.

scene_share_accessWhat each share link was used forA

Owner-only read of the share-link access log (GET /share/access): per minted link (access_id) — opened, request count, visits (new visit after 30 min idle), first/last seen, returned (a visit >= 24 h after the first), devices, and the Q&A questions the viewer asked. This is the behavioural evidence for customer discovery (L5 = returned). Match access_id to the person you sent the link to. events:true appends the raw event list.

Inputs: scan_id (required), events.

scene_synthetic_view_imageFetch a synthetic view imageA
Read-only

One synthetic view PNG (a RENDER of the splat, not a photo — say so when citing).

Inputs: scan_id (required), view_id (required).

scene_synthetic_viewsList synthetic viewsA
Read-only

Renders of the scene's own splat registered as evidence (GET /synthetic_views). These are NOT photographs — always carry the "synthetic view" provenance when citing.

Inputs: scan_id (required).

workspace_job_statusCheck a workspace jobA
Read-only

One status read of an ingest/export job (GET /api/workspace/jobs/<job_id>): {status: queued|running|done|error, stage?, scan_id?, error?}.

Inputs: job_id (required).

workspace_job_waitWait for a workspace jobA
Read-only

Poll an ingest/export job until it is done or errored (or the timeout passes). Returns the final status plus the stage trail observed.

Inputs: job_id (required), poll_s, timeout_s.

workspace_list_scenesList scenes in the accountA
Read-only

List all persisted scenes in the signed-in Open Reality account (newest first). Also reports which scan_ids are NEW since this machine last listed — the account is the sync layer: scans made on the phone or the web appear here. Use scene_card next for anything you want context on.

Inputs: since_epoch_s.

workspace_upload_recordingUpload a robot recordingA

Upload a robot recording (DimOS memory2 .db, ≤2 GB) into the account. Runs the recordings pipeline (recon → odometry-consistency score → QC gate); the scene persists as source="robot_recording" with the QC report under derived/demo/recordings/. Returns {job_id, scan_id}; follow with workspace_job_wait.

Inputs: path (required).

workspace_upload_splatImport a Gaussian splatA

Import a local .ply/.spz Gaussian splat as a scene (source="imported_splat", honestly degraded report). ≤64 MiB uploads inline and returns {scan_id, gaussian_count} synchronously; larger files go through the chunked lane and return {job_id, scan_id} to poll with workspace_job_wait. Non-gaussian PLYs are refused (422 not_a_gaussian_splat).

Inputs: path (required), label.

workspace_upload_videoUpload a video for reconstructionA

Upload a local video file (.mp4/.mov/.avi/.mkv/.webm, ≤1 GB) into the account and start a reconstruction job. Returns {job_id, scan_id} immediately (202); follow with workspace_job_wait. The scene appears in workspace_list_scenes when the job is done.

Inputs: path (required), label, source.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 41 tools

    Disambiguation4/5

    Tool prefixes (scene_, agent_, workspace_, export_, artifact_) separate major domains, and most status/run pairs are distinguishable. A few near-duplicates remain—scene_synthetic_views vs scene_synthetic_view_image, scene_job_status vs workspace_job_status, and artifact_fetch vs artifact_fetch_splat/cloud—but the descriptions clarify intended use. Overall, the set is more coherent than most large toolkits.

    Naming Consistency4/5

    Names consistently use snake_case and a prefix-based convention that encodes the domain (scene_, workspace_, agent_, export_, artifact_). However, not all tools follow a verb_noun pattern: scene_planes, scene_lod, scene_imported_objects, and scene_share_access are noun-phrase reads, and status vs build/run pairs vary slightly. The pattern is predictable once the prefixes are understood.

    Tool Count2/5

    41 tools is excessive for an agent-facing MCP server, even for a broad scene-reconstruction pipeline. Many tools are thin status/trigger pairs (scene_lod/scene_lod_build, scene_imported_objects/scene_imported_objects_run) or wait/status variants that could be consolidated. The scope is broad, but the count creates real selection overhead.

    Completeness4/5

    The server covers the full ingest → reconstruct → inspect → annotate → export → artifact-fetch lifecycle with no dead ends in the core workflow. Gaps include scene deletion/metadata updates and direct object editing, but these are not required by the apparent purpose. Overall the surface is complete enough for real workflows.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables driving Omniverse Kit apps (Isaac Sim, Isaac Lab) over MCP, allowing agents to control simulations, run Python, and call namespace-scoped tools via a single bridge.
      1
      3
      Apache 2.0
    • A
      license
      A
      quality
      C
      maintenance
      Enables MCP clients to control the local Open Science research application, including creating projects, starting or continuing research sessions, inspecting progress and plans, canceling runs, and reading generated artifacts.
      12
      Apache 2.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables MCP clients to drive Orca worktrees, agent sessions, and orchestration via a single orca tool over local stdio or authenticated remote HTTP transports.
      36 npm
      MIT