Model Context Protocol server · Node.js

Fire-exit pre-checks for event floor plans, straight from your AI assistant

Describe a venue to Claude or another MCP client. egress-permit-mcp checks how many people it can hold, whether there are enough exits wide enough, and how far anyone has to walk, against the fire codes of 8 countries, then writes a printable permit pack with every rule cited.

What it checks

Occupant load

People per zone from each country's floor-space factors: standing, dance floor, theatre rows, banquet tables, bars, fixed seats.

Exits and widths

Number of exits for the crowd and the width of each door and in total, using each country's own method, including losing the largest exit.

Walking distance

Distance to the nearest exit measured around the stage, bar and other obstacles on a fine grid, with a heat map of the floor.

Maximum capacity

The largest attendance the layout allows and which rule limits it, so organisers know what to change.

How it works

  1. The organiser describes the room, zones, stage and doors in chat, or shares a sketch.
  2. The assistant turns it into a simple plan and calls the server's tools.
  3. The server returns pass/fail for each rule with the code section, a source link and how well that value has been verified.
  4. generate_permit_pack writes an HTML pack: drawing, calculations, checks, checklist and sign-off page.

Example output

Floor plan of a warehouse concert with zones, exits and the longest walking route
Warehouse concert, United States (IBC 2021) → Charity gala dinner, England (Approved Document B) →

Both packs were generated by the server's own test suite from the plans in examples/.

Countries

CountryCodeStatus
United StatesIBC 2021 / IFC 2021 Ch. 10verified
United Kingdom (England)Approved Document B Vol 2verified
GermanyVersammlungsstättenverordnungverified
AustraliaNCC 2025 Vol 1 Part D2verified
IndiaNBC 2016 Part 4verified
FranceRèglement ERP, articles COpartial
RussiaСП 1.13130.2020 section 4.2partial
KazakhstanTech. Regulation 405 + СП РК 2.02-101provisional

Try it

git clone https://github.com/Adik1001/egress-permit-mcp
cd egress-permit-mcp
npm install
npm test
claude mcp add egress-permit -- node "$PWD/server.js"

Nine tools: list_jurisdictions, get_jurisdiction_rules, get_plan_template, calculate_occupant_load, check_event_plan, max_capacity, compare_jurisdictions, render_floor_plan_svg, generate_permit_pack.

A pre-check, not an approval. Codes are adopted and amended locally, and the fire authority decides. Plans should be reviewed by a competent fire safety professional.