# Plumbing Pipe Sizing AI Agent Connect

> Deterministic water supply pipe sizing based on IPC and Hunter's Curve.

## Overview
- **Category:** construction
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_W27uCP2WYbVPGNocz7Bw7g0stLbl31FsOwGSS2PE/ai-agent-connect
- **Tags:** plumbing, ipc, engineering, water-supply, piping

## Description

This MCP server provides precise water supply pipe sizing calculations following the International Plumbing Code (IPC). It uses Hunter's Curve to convert fixture units into required Gallons Per Minute (GPM) and accounts for simultaneous demand factors. Use `get_fixture_unit_reference` to find unit values, `calculate_demand_flow` to determine required flow, and `size_pipe_diameter` to select the optimal pipe size based on available pressure and pipe length.

## Tools

### calculate_demand_flow
Calculates the expected Gallons Per Minute (GPM) required for a total fixture load

### get_fixture_unit_reference
Retrieves the fixture unit value for a specific plumbing fixture

### size_pipe_diameter
Determines the minimum required pipe diameter to meet demand while staying within pressure limits

## Prompt Examples

**Prompt:** 
```
How many fixture units is a standard toilet worth?
```

**Response:** 
```
A standard toilet is worth 3 fixture units.
```

**Prompt:** 
```
What is the required GPM for 15 fixture units?
```

**Response:** 
```
The required demand flow rate for 15 fixture units is 18.5 GPM.
```

**Prompt:** 
```
What pipe size do I need for 20 GPM, 50 PSI, and 40 feet of pipe?
```

**Response:** 
```
The minimum required pipe diameter is 1.0 inch.
```

## Frequently Asked Questions

**How do I find the fixture unit value for a specific item?**
You can use the `get_fixture_unit_reference` tool to retrieve the standard IPC unit value for any recognized plumbing fixture.

**What is Hunter's Curve used for in this tool?**
Hunter's Curve is used by the `calculate_demand_flow` tool to convert the total sum of fixture units into a realistic demand flow rate in GPM, accounting for simultaneous usage.

**Can I specify a maximum pressure drop?**
Yes, when using `size_pipe_diameter`, you can provide an optional `targetPressureDropMax` to ensure the selected pipe size stays within your preferred pressure limits.
