
measure-mcp
io.github.purahmanian由 GitHub 帳號 purahmanian 發布v0.1.0更新於 Oct 25, 2026
AI tape measure: cookware capacity, recipe scaling, room fit, Amazon FBA size tiers, moving volume.
發布方自己的服務:Measure
概覽
一款 AI 捲尺,把 iPhone LiDAR 掃描、深度檔案和含參照物的照片轉換成鍋具容量、房間尺寸、FBA 箱規和搬家體積等真實測量值。
- 可以做什麼
- 尋找並開啟擷取檔案,檢視深度來源資訊,列出可用於校正比例的參照物,並測量物件或兩點間距離,結果附帶誤差範圍與信心水準。
- 執行需求
- 需要 Python 3.10 或更新版本,透過 pip 或 uvx 在本機安裝。選用擴充提供 RoomPlan USDZ 讀取(usd)與一般照片的深度模型(depth,會引入 PyTorch)。工具讀取執行伺服器那台機器上的檔案路徑;輸出寫入固定目錄,除非設定 MEASURE_MCP_OUTPUT_DIR。MEASURE_MCP_TOOLS 可限制載入的工具群組。非回送位址的 HTTP 模式需要 MEASURE_MCP_TOKEN。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 measure-mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
measure-mcp
An AI tape measure. An MCP server that turns iPhone LiDAR captures, depth maps, room scans and photos with a reference card into real-world measurements that Claude (or any MCP client) can use.
- Kitchen: "How much does this bowl hold?" Measure your own bowls and pans, then scale a recipe to fit them.
- Rooms: "Will this 84 inch sofa fit through the door and on that wall?" Works from RoomPlan, Polycam, Scaniverse and other LiDAR scan exports.
- Amazon FBA: size tier, dimensional weight, fee estimate, how close you are to the next tier, and what to shrink to drop one.
- Moving and storage: cubic feet and weight from an inventory or a room scan, then the truck, container or storage unit that fits.
Every number comes back with a ± and a confidence level, and the server says plainly when it is guessing.
How it works
The AI never touches a sensor. Capture happens on the phone (the companion iOS app, a LiDAR scanner app, or the camera), and this server does the geometry on the files. It picks the best depth source available:
- Metric depth already in the file: a 3D scan from a free LiDAR scanner app such as Scaniverse (OBJ or PLY, zipped is fine), an iPhone Pro capture bundle, a depth TIFF/PNG/NPZ, or a RoomPlan USDZ/JSON export.
- A depth model on a plain photo (optional
[depth]extra, Depth Anything V2 Small, Apache-2.0). - A reference object in frame (credit card, US letter or A4 sheet, quarter) to fix the scale.
A plain photo with none of these has no real scale. The tools say so instead of inventing a number.
Install
Python 3.10 or newer. uvx measure-mcp works too.
Claude Desktop
Add this to claude_desktop_config.json (Settings, Developer, Edit Config):
Claude Code
Load only what you need
All 34 tool descriptions take about 19k tokens of context. Set MEASURE_MCP_TOOLS to the groups you want (the core measure_* tools always load):
Combine groups with commas, for example kitchen,room.
Getting files to the server
Tools take file paths on the machine running the server. When you share a photo in chat, save it to ~/measure-mcp-inbox (or AirDrop it to Downloads) and the AI finds it with measure_find_files. Files the tools write (floor plans, inventories) go to ~/measure-mcp-output, or wherever MEASURE_MCP_OUTPUT_DIR points. Tools never write anywhere else.
Try it
Measure the bowl in
~/measure-mcp-inbox/bowl_capture.zipand scale my brownie recipe to it: 1 cup butter, 2 cups sugar, 4 eggs, 1 1/4 cups flour. The original recipe is for a 9x13 pan.
Here's my living room scan (
~/Downloads/living.usdz). Will an 84 x 37 x 34 in sofa get through the door, and does it fit on the wall with the window?
What FBA size tier is a 12 x 9 x 3 in box at 1.4 lb priced at $24, and how close is it to the next tier?
I'm moving out of a 2 bedroom: queen bed, 3-seat sofa, dining table with 4 chairs, 2 dressers, 30 medium boxes. What truck and storage unit do I need?
Tools (34)
Conventions shared by every tool: the input file is path, sizes are dims ("12 x 9 x 3 in", a list, or a dict), weights are weight (1.4 or "1.4 lb"), output units are units (metric, imperial, both), and errors come back as {"error": {"code", "message", "hint"}}. An argument a tool doesn't take is rejected with the closest valid name, never silently ignored.
Accuracy
Measured on synthetic scenes with known answers and simulated iPhone LiDAR noise (256 x 192 depth, σ 5 mm). Real-world accuracy will be somewhat worse. Treat these as a ceiling, not a promise.
Known limits:
- Steep camera angles hide the bottom of deep pots. At 30° the tools report low confidence and a wide ±.
- Shallow pans (1 inch deep) come back as low confidence.
- A guessed camera lens widens the error bars. For depth files without camera intrinsics the tools say "field of view unknown" and cap confidence at low.
- Portrait-mode photos carry relative depth only. iPhone Portrait mode depth is not a real-world distance, so it needs a reference object.
- Room accuracy figures are synthetic. Scanner drift on real phones is the biggest unknown, and real-scan validation is on the roadmap.
Data and estimates
- FBA: size tiers and fee tables live in a versioned data file with an as-of date and sources. Several 2026 figures come from secondary sources and are flagged unverified;
fba_data_statuslists every gap. These are estimates. Amazon's own measurement and fee schedule govern. - Moving: the cube sheet, truck capacities, containers and storage units come from published sources, each row marked verified or not. There are no prices in the data.
Companion iOS app (in progress)
ios/ holds the source for a small capture app. One tap saves an iPhone Pro LiDAR depth map, photo and camera calibration as a zip bundle that measure_open_capture reads, and it exposes App Intents ("Measure object") to Siri and Shortcuts. It has not been compiled or run on a device yet. See ios/README.md.
HTTP mode
The server reads files on its host, so any non-loopback address requires a bearer token.
Development
Design notes for each feature are in designs/.
License
MIT, Puya Ventures LLC. Depth Anything V2 Small (optional extra) is Apache-2.0.
Built by
Puya Rahmanian. Need an MCP server or an AI integration built for your product? puyarahmanian.com
來源:README.md,提交 b537255
工具
0版本歷史
1- v0.1.0最新Oct 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分

