REST API & Hosted MCP Server
Compile US imperial floor plans, validate ergonomic clearances, generate construction material takeoffs, and export layered AutoCAD DXF and Blueprint PDF files from scripts or AI agents.
Hosted MCP Endpoint (Streamable HTTP)
Connect Claude Desktop, Cursor, Windsurf, or any MCP-compatible agent directly to our hosted
server. Read-only compile, ergonomics, and takeoff tools work immediately; attach a pd_live_... key for DXF/PDF exports and higher limits.
https://www.plumbdraft.com/mcp
Available MCP Tools
- sketch_to_floorplan
- compile_floorplan_geometry
- validate_clearance_ergonomics
- calculate_material_takeoff
- export_blueprint_dxf
- export_blueprint_pdf
Claude Desktop & Cursor Configuration
Add PlumbDraft to your MCP client configuration. Generate or revoke API keys anytime from your Account page.
{
"mcpServers": {
"plumbdraft": {
"url": "https://www.plumbdraft.com/mcp",
"headers": {
"Authorization": "Bearer pd_live_YOUR_API_KEY"
}
}
}
}REST API Endpoints
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | /api/v1/compile | Free (10/day) or Bearer | Normalizes walls, detects rooms, computes square footage, bounds, and opening tags. |
| POST | /api/v1/ergonomics | Free (10/day) or Bearer | Runs IRC/NKBA-inspired clearance checks on doorways, aisles, and fixture spacing. |
| POST | /api/v1/takeoff | Free (10/day) or Bearer | Calculates flooring (+10% waste), drywall 4x8 sheets, paint/primer, baseboard, and schedules. |
| POST | /api/v1/export/dxf | Bearer pd_live_... | Returns a layered AutoCAD ASCII DXF file in imperial inches (A-WALL, A-DOOR, A-WIND, A-FURN, A-DIMS, A-ANNO). |
| POST | /api/v1/export/pdf | Bearer pd_live_... | Returns a 2-sheet 1/4"=1'-0" or 1/8"=1'-0" architectural Blueprint PDF. |
Interactive Compile & Takeoff API Tester
Run live requests against PlumbDraft right from your browser.
RESPONSE
// Click "Send Request" to inspect live JSON output.