# Fire Safety Calculator MCP

> The Fire Safety Calculator MCP determines critical building safety parameters like maximum evacuation distances, minimum stair widths, and precise fire extinguisher placement requirements based on local and US building codes. It calculates compliance for occupancy load, area size, and construction type, giving you a definitive report that prevents costly structural failures or failed inspections.

## Overview
- **Category:** structural-design
- **Price:** Free
- **Tags:** fire-safety, egress-path, stair-width, occupancy-load, fire-code

## Description

Designing public buildings means dealing with life safety regulations—it's not optional. A simple error in calculating exit paths can invalidate an entire structure’s permit. This MCP connects your AI agent directly to the complex calculation logic needed for safe design. You don't have to cross-reference three different building codes and run manual geometry calculations. Instead, you simply provide the area size, population count, and construction risk level. The system runs physics models that calculate precise compliance figures for everything from emergency exit path lengths to necessary fire suppression equipment. When you connect via Vinkius, your AI client handles this deep regulatory modeling automatically. You get a comprehensive report detailing exactly where the structure meets code, or precisely where it fails.

## Tools

### specify_extinguisher_requirement
Calculates the total number and type distribution of fire extinguishers needed for a given area and risk class.

### determine_min_stair_width
Determines the minimum safe width for stairways based on the population load and standard module size used in construction.

### calculate_max_walking_distance
Checks if all evacuation paths stay within legal maximum walking distances for a given building area and occupancy count.

## Prompt Examples

**Prompt:** 
```
The new office building has an area of 1500 sqm, a population load of 450 people, and is classified as 'Class B Office'. Check if the evacuation paths are compliant.
```

**Response:** 
```
I will use `calculate_max_walking_distance` with (1500, 450, 'Class B Office'). The result confirms compliance, and the maximum allowed distance is 75 meters. No potential violations found.
```

**Prompt:** 
```
We need to know the minimum stair width for a floor with 800 people, using a standard module of 60cm.
```

**Response:** 
```
Running `determine_min_stair_width` with (800, 60) shows the minimum required width is 480 cm. The recommendation suggests using a 528 cm stair for enhanced safety.
```

**Prompt:** 
```
For a warehouse space of 900 sqm with 'Medium Risk' classification, how many fire extinguishers are needed?
```

**Response:** 
```
I executed `specify_extinguisher_requirement` using (900, 'Medium Risk'). The total required is 12 extinguishers: 6 ABC Dry Chemical and 6 Type B Foam.
```

## Capabilities

### Check evacuation path compliance
Determine if the distance people must walk to an exit point exceeds mandated limits based on building area and occupancy.

### Calculate minimum stair width
Figure out the absolute smallest safe stairwidth required for a floor, factoring in the maximum number of people it serves.

### Determine extinguisher distribution
Get an exact count and placement guide for fire extinguishers needed across different risk zones (A, B, C) within the structure.

## Use Cases

### Checking a newly renovated office space
The firm needs to know if the new 1500 sqm office, housing 450 people, still meets evacuation path rules after renovations. By running `calculate_max_walking_distance` with the area and population load, they confirm compliance and that no paths are too long.

### Designing a high-occupancy public hall
An architect must size the main stairwell for 800 people. Using `determine_min_stair_width` with the population count and standard module gives them the minimum required width, plus a recommended safety buffer.

### Inspecting a chemical warehouse
The inspector needs to know how many fire extinguishers are needed for a 900 sqm zone classified as 'Medium Risk'. Running `specify_extinguisher_requirement` instantly returns the exact count and mandatory type distribution.

## Benefits

- Eliminate guesswork on exit paths. Use `calculate_max_walking_distance` to confirm that every person can reach safety within legally mandated steps, based on the building's area and population load.
- Avoid costly redesigns by using `determine_min_stair_width`. This tool calculates the absolute minimum stair dimension required for a floor given its occupant count and standard module size.
- Get precise fire protection planning. Specify exact extinguisher counts and types (A, B, or C) needed across different zones with the `specify_extinguisher_requirement` tool.
- Cut down on manual compliance checking. Instead of pulling three separate code books, your agent runs all critical safety checks—egress, stairs, suppression—in one workflow.
- Reduce liability risk. The resulting report provides concrete data showing exactly where the design meets stringent US and local Brazilian fire standards.

## How It Works

The bottom line is you get an instant, authoritative safety audit that replaces hours of manual code review.

1. You tell your AI client the basic parameters of the building, such as total usable square footage, expected occupant density, and construction classification.
2. The MCP executes specialized calculations against these inputs, modeling specific regulatory requirements for egress paths, vertical circulation, and fire suppression coverage.
3. Your agent receives a definitive compliance report detailing whether the design meets standards and listing any required adjustments or code violations.

## Frequently Asked Questions

**How do I use the Fire Safety Calculator MCP for a mixed-use building?**
You must run separate checks for each distinct zone. First, calculate the required stair width using `determine_min_stair_width` based on the highest occupancy load in that specific section.

**Does this MCP handle outdoor fire suppression requirements?**
No, this tool is focused on interior structural compliance. You must manually verify external fire department zone requirements separately from the results of `specify_extinguisher_requirement`.

**What inputs does calculate_max_walking_distance need?**
It requires three primary pieces of data: total usable area, the population load count, and the specific construction type classification for accurate results.

**Can I check compliance for multiple risk classes at once?**
You can run `specify_extinguisher_requirement` iteratively. Run one calculation per distinct area/risk class to build a complete, comprehensive inventory of required equipment.