Trimble X9 harness: bridge, MCP server and parser
I designed and built the agent server, the approval bridge, and the reader.
Problem
Reality capture software has a person click through every step of a scan job. The goal was an AI agent that takes the objective for the job, plans each scanner setup from the last scan, ties each new station into the ones before it and answers questions about the point cloud with real measurements, all behind safety rules and approvals.
Architecture and safety boundary
It's split into three repos, each with one job.
- LLM and MCP layer:
TrimbleX9-mcplets an agent such as Claude or Grok use the bridge as tools. The agent reaches the scanner only through the bridge. - Deterministic approval bridge:
trimble-x9-bridgeis the HTTP service between the agent and the scanner. The safety rules and approvals are written in its code, so the model can't talk its way past them. - File parser:
trimble-tzfturns .tzf scans into PLY and LAS files. Its format notes are based mainly on scan files made on a real scanner and checked against physical measurements.
The agent never talks to the scanner directly. TrimbleX9-mcp is the agent side. trimble-x9-bridge is the program that talks to the instrument, and the safety rules live in that code. It refuses a busy scanner, checks battery and storage, notices if the instrument moved since the last scan, and cancels a scan when the instrument's echo doesn't match what was sent. Approvals and grants sit in the same code, so the model can't talk its way past them.
Bridge timeouts scale with the job, from 30 seconds for normal calls and 2 minutes for previews to 10 minutes for file downloads and 15 minutes by default for a long scan wait (configurable up to 2 hours).
In the field the bridge and the MCP server run on a Raspberry Pi by the tripod. The agent on the laptop reaches them over SSH on a USB-C cable. After each full dome, the bridge registers the station into the project frame with four degrees of freedom, because the scanner levels its own scans. A laptop worker can do that registration, with the Pi as the fallback.
trimble-tzf reads the scanner's own .tzf files, documented from the bytes of scans made on a real scanner, and writes PLY and LAS so other tools can use the points. On those real scans the decoded area scan fit a wall plane to 1.2 mm RMS and was plumb to 0.04 degrees after leveling. A full dome fit the floor to 2.0 mm RMS and was level to 0.04 degrees. Those figures check the reader against planes in the file. They aren't a survey accuracy claim or a score for the next-station plan. I tested the planner with Claude Opus 5.5 and Grok 4.6, and given the same plan, both put the tripod on the same spot of pavement.
Measured result and stack
The replay follows one building through 19 scanner setups. The agent planned each next station from the points just captured. Every answer reports how much of the building it covers. A wall less than 80% covered, shorter than 4 m, or rougher than 15 mm RMS against one plane gets the reason instead of a number. Every pair of stations agrees to within about 22 mm. That's how well the stations line up with each other, not an accuracy claim.
The scanner harness is Rust in trimble-x9-bridge and trimble-tzf, and Python in TrimbleX9-mcp.
View U of I Scan Replay Open the wall flatness map Bridge MCP server TZF reader
Bridge and MCP server: AGPL-3.0-or-later, with a commercial license available. Reader: Apache-2.0. Independent project, not affiliated with or endorsed by Trimble Inc. Provenance