# Stair Builder Calculator AI Agent Connect

> Deterministic stair design tool for IRC/IBC building code compliance.

## Overview
- **Category:** construction
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_3ClrS5xgivBVRlae1s7HQdW42xyb2y6hFPO3Dtgv/ai-agent-connect
- **Tags:** staircase, building-code, irc, ibc, geometry, safety

## Description

This MCP server provides precise stair design calculations based on strict building codes like IRC and IBC. Use `calculate_stair_geometry` to determine riser heights, tread depths, and total run lengths. You can also use `check_clearance_and_headroom` to ensure vertical safety and `validate_landing_requirements` to confirm if your staircase layout needs a landing. It flags code violations automatically to ensure safe and ergonomic stair construction.

## Tools

### check_clearance_and_headroom
Validates vertical headroom clearance

### calculate_stair_geometry
Calculates primary stair dimensions and structural requirements

### validate_landing_requirements
Determines if the staircase layout complies with landing requirements

## Prompt Examples

**Prompt:** 
```
Calculate the dimensions for a straight staircase with a total rise of 100 inches and a desired tread depth of 11 inches.
```

**Response:** 
```
For a 100-inch rise and 11-inch tread, you will have 14 risers at 7.14 inches each. The total run will be 132 inches.
```

**Prompt:** 
```
Will my stairs have enough headroom if the ceiling height is 80 inches?
```

**Response:** 
```
No, the headroom clearance is below the required 6'8" (80 inches) minimum standard.
```

**Prompt:** 
```
Do I need a landing for a straight staircase with a total run of 15 feet?
```

**Response:** 
```
Yes, a landing is required because the total run exceeds the 12-foot limit for straight stairs.
```

## Frequently Asked Questions

**How does the tool ensure building code compliance?**
The tool uses `calculate_stair_geometry` to check dimensions against IRC/IBC limits, such as maximum riser height and the stride rule.

**Can I check if my stairs have enough headroom?**
Yes, by using the `check_clearance_and_headroom` tool, you can validate vertical clearance against the minimum 6'8" requirement.

**What stair types are supported?**
The calculator supports straight, l_shaped, u_shaped, and spiral stair configurations.
