Fema Nfhl

v0.2.1
io.github.pipeworx-io/fema-nfhl Checked 2 days ago Published 1 month ago

FEMA National Flood Hazard Layer (NFHL) MCP

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

nfhl_flood_zone_at_point

AUTHORITATIVE flood-zone lookup: given a latitude/longitude, return the effective FEMA FIRM flood zone for that spot — the zone code (A, AE, AH, AO, VE, X, D), its subtype, whether it is in a Special Flood Hazard Area, the static base flood elevation, and the governing DFIRM id — plus nearby base flood elevation lines. PREFER OVER WEB SEARCH for "is this address in a flood zone" or "does this property need flood insurance". Distinguishes "outside the floodplain" from "never mapped", which a plain empty result does not.

ParameterTypeDescription
latitude *numberLatitude in WGS84 decimal degrees
longitude *numberLongitude in WGS84 decimal degrees (negative in the US)
include_bfebooleanAlso return base flood elevation lines within ~150 m of the point. Default true.

nfhl_query

Query any layer of the FEMA National Flood Hazard Layer with an ArcGIS WHERE clause and optional bounding box — flood hazard zones, base flood elevations, floodways, LOMRs and LOMAs, FIRM panels with their effective dates, levees, cross-sections, political jurisdictions. Use for area questions ("every floodway polygon in this county", "LOMRs issued on this DFIRM"). Layer ids come from nfhl_layers.

ParameterTypeDescription
layer_id *number | stringNFHL layer id — 28 is Flood Hazard Zones, 16 Base Flood Elevations, 1 LOMRs, 3 FIRM Panels
bboxstringOptional "xmin,ymin,xmax,ymax" WGS84 envelope to restrict the query (longitude first)
limitnumberMax rows, 1-500 (default 50)
offsetnumberRow offset for paging
order_bystringComma-separated order-by fields
out_fieldsstringComma-separated field names, or "*" for all (default "*")
return_geometrybooleanInclude geometry. Default false — flood polygons are very large.
wherestringArcGIS WHERE clause, default "1=1". Id fields are strings: DFIRM_ID='48201C'.

nfhl_layers

List every layer in the FEMA National Flood Hazard Layer MapServer with its id, name and geometry type, plus a plain-English guide to the layers that matter (flood hazard zones, base flood elevations, LOMRs, LOMAs, FIRM panels, levees, NFHL availability). Call this before nfhl_query.

ParameterTypeDescription
filterstringCase-insensitive substring to filter layer names, e.g. "flood", "levee"