# Fema Nfhl [Health: Active]

**Category:** 🗺️ Location Services  
**Repository:** https://github.com/pipeworx-io/mcp-fema-nfhl  
**GitHub Stars:** 0  
**npm Downloads (last month):** 309  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/fema-nfhl

## Description
FEMA National Flood Hazard Layer (NFHL) MCP

## Tools
Capabilities this server exposes over MCP:

- **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.
- **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.
- **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.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "fema-nfhl": {
    "command": "npx",
    "args": ["-y","@pipeworx/mcp-fema-nfhl"],
    "env": {
      "PIPEWORX_API_KEY": "",
      "PIPEWORX_META_TOOLS": ""
    }
  }
}
```

**Requires environment variables:** `PIPEWORX_API_KEY`, `PIPEWORX_META_TOOLS` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Fema Nfhl does

Fema Nfhl exposes FEMA’s National Flood Hazard Layer (NFHL) through MCP. The underlying source is FEMA’s public ArcGIS REST MapServer, which contains effective Flood Insurance Rate Map data and related geographic layers.

The service covers flood hazard zones, boundary lines, base flood elevations, levees, Letters of Map Revision, Letters of Map Amendment, FIRM panel indexes, political jurisdictions, and NFHL availability. It is intended for questions that require the FEMA flood map itself rather than tabular disaster, claims, or policy records.

Use the point lookup when you need a direct answer for a latitude and longitude. Use the general layer query when you need filtered features, geometry, or records from a particular NFHL layer.

## How it works

The hosted MCP endpoint is available at `https://gateway.pipeworx.io/fema-nfhl/mcp`. A client can connect to that URL directly, or use the full Pipeworx gateway at `https://gateway.pipeworx.io/mcp`. The scoped endpoint lists the NFHL tools and also exposes shared Pipeworx meta-tools, including routing through `ask_pipeworx`.

The same service can be called without an MCP client through the Pipeworx HTTP tools API. A local npm package, `@pipeworx/mcp-fema-nfhl`, provides a stdio bridge that forwards requests to the hosted endpoint, so it still requires network access and has no offline mode.

NFHL coverage is not universal. A location with no returned features may be outside digitally mapped coverage rather than free of flood risk. The NFHL Availability layer can help distinguish missing coverage from an area with mapped results.

## Setup and configuration

For a hosted connection, add the MCP URL to a compatible client:

```json
{
  "mcpServers": {
    "fema-nfhl": {
      "url": "https://gateway.pipeworx.io/fema-nfhl/mcp"
    }
  }
}
```

For local stdio execution, configure the npm bridge with `npx`:

```json
{
  "mcpServers": {
    "fema-nfhl": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-fema-nfhl"]
    }
  }
}
```

Anonymous use is supported and is limited to 50 calls per day. A free Pipeworx account raises the limit to 200 calls per day. Set `PIPEWORX_API_KEY` in the MCP server environment to use an account key. Set `PIPEWORX_META_TOOLS=1` if the local bridge should also list the shared gateway tools. Requests require network access.

## Tools and capabilities

- `nfhl_flood_zone_at_point` accepts latitude and longitude, with an optional base flood elevation lookup. It returns the effective zone code and subtype, the Special Flood Hazard Area flag, a usable base flood elevation when applicable, the governing DFIRM identifier, and nearby BFE lines.
- `nfhl_query` queries an NFHL layer using a WHERE clause, optional bounding box, selected fields, pagination, ordering, and a geometry-return option.
- `nfhl_layers` lists NFHL layers and provides plain-language guidance for choosing among them.

The main source layers include flood hazard polygons, hazard boundary lines, BFE records, LOMRs, LOMAs, FIRM panel indexes, levees, and NFHL availability.

## Limitations and notes

`STATIC_BFE` uses `-9999` as a source sentinel when no elevation applies; the service represents that case as null. The `SFHA_TF` field contains string values such as `T` and `F`, and should be used for Special Flood Hazard Area checks instead of relying only on `FLD_ZONE`. NFHL identifier fields are strings, including values such as `DFIRM_ID`.

The integration is independent and unofficial. It serves the FEMA geospatial map through Pipeworx and is separate from the `openfema` pack, which covers tabular datasets such as declarations, assistance, claims, and policies. The package is licensed under MIT.

_Full upstream README: https://allmcps.com/mcp/fema-nfhl/readme_

