fema-nfhl-mcp-server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@fema-nfhl-mcp-serverlook up flood zone for coordinates 30.2672, -97.7431"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
fema-nfhl-mcp-server
MCP server wrapping FEMA's public National Flood Hazard Layer (NFHL) ArcGIS REST service
(https://hazards.fema.gov/arcgis/rest/services/public/NFHL/MapServer) — the same live dataset
behind msc.fema.gov, which the Hutton SIR agent's standing doctrine treats as non-fetchable.
This server queries the NFHL directly, no API key required for the FEMA side.
Transport: Streamable HTTP (stateless)
This server runs as a small Express HTTP server exposing POST /mcp, using the MCP
Streamable HTTP transport in stateless mode — every request gets its own short-lived
MCP server + transport instance, connected, used, and torn down. There is no in-memory session
state kept between calls. This is deliberate: it makes the server safe to run on a host that
spins the process down when idle (e.g. Render's free tier) — there's nothing to lose when the
process restarts, because nothing persists between requests anyway.
An earlier version of this server used stdio transport (local-process-only, no network).
That version is kept for reference in reference/index_stdio_original.ts.txt but is not part of
the deployable build — src/index.ts is now the HTTP entry point, and src/createServer.ts
holds the actual tool registration shared by both.
GET /health is also exposed for host health checks and uptime pingers.
Related MCP server: civic-library-mcp
Why this exists (Hutton SIR context)
The SIR agent's Field Reference and Setback Routine both carry a standing rule: msc.fema.gov/portal
is non-fetchable, so flood zone/BFE/panel lookups always route to a manual coordinate search. This
server replaces that manual step with a live tool call — the agent already desk-answers lat/long for
every site (topography section), so it can pass those same coordinates straight through.
It does not replace the "carry coordinates with the route" discipline (Quality Rule 8) — the tool output includes the queried coordinates in every result specifically so that discipline still holds even when the lookup succeeds outright.
Tools
fema_flood_zone_lookup
The primary tool. Takes 1–8 labeled points (e.g. site centroid, or all four parcel corners + centroid) and returns, per point: flood zone code, SFHA flag, Base Flood Elevation + datum, FIRM panel number, effective date, and status. Flags a split-zone condition automatically if different points return different zones — the exact case that matters for a site straddling a flood-zone boundary.
fema_identify_layer
Lower-level identify against any NFHL layer(s) at a point — useful for checking Letters of Map Revision (layer 1) or Letters of Map Amendment (layer 34) on a parcel, which the flood-zone tool doesn't surface.
Deploying — Render (recommended, browser-only, free)
This repo includes render.yaml, so Render can configure itself from a Blueprint — you don't have
to manually fill in build/start commands.
Push/upload this repo to GitHub (a browser-only, no-git-CLI way to do this is via GitHub's web uploader: new repo → "Add file" → "Upload files").
On render.com, sign up (GitHub login is easiest — no credit card required for the free tier).
New > Blueprint, connect your GitHub account, select this repo. Render will detect
render.yamland pre-fill everything: Node web service, free plan,npm install && npm run buildbuild command,npm startstart command,/healthhealth check path.Click Apply / Deploy. Render will generate a random
MCP_API_TOKENenvironment variable automatically (seerender.yaml—generateValue: true). Copy that token from the service's Environment tab in the Render dashboard once deployed — you'll need it in step 6.Your endpoint will be
https://<your-service-name>.onrender.com/mcp.In claude.ai: Customize > Connectors > "+" > Add custom connector. Paste the URL from step 5. Under Advanced settings > Request headers, add:
Authorization: Bearer <the MCP_API_TOKEN value from step 4>Click Add.
No auth needed? If you'd rather leave the endpoint fully open (it's a read-only public-data
lookup, so the risk is low), delete the MCP_API_TOKEN env var in Render's dashboard after deploy —
the server checks for it at request time and runs open if it's unset. See the requireAuth middleware
in src/index.ts.
Free-tier cold starts: Render's free instances spin down after 15 minutes idle and take 30–60 seconds to wake on the next request. The first flood-zone lookup after a period of inactivity may be slow or need a retry. Upgrade to Render's Starter plan (~$7/mo) to keep the service always-on if this becomes annoying.
Running locally (only if you have Node.js installed)
npm install
npm run build
PORT=3000 npm startThen POST http://localhost:3000/mcp with a standard MCP JSON-RPC body, or point the
MCP Inspector at
http://localhost:3000/mcp for a browser test UI:
npx @modelcontextprotocol/inspectorThen in the Inspector UI, choose "Streamable HTTP" transport and enter the URL above.
No environment variables are required to run it — MCP_API_TOKEN is optional (see above).
Verified so far
Server builds clean under strict TypeScript.
Real protocol-level test performed: started the compiled server, sent an actual HTTP
initializerequest and an actualtools/listrequest toPOST /mcp, and got back correct, well-formed MCP responses (both tools present with valid JSON Schemas, matching the descriptions below) — this is a genuine test of the transport wiring, not a mock.GET /healthconfirmed working over real HTTP.Response parsing (
extractFloodZones/extractFirmPanels, including the epoch-ms → ISO date conversion forEFF_DATE) is exercised against a mocked response shaped exactly like the live service's field schema (FLD_ZONE,SFHA_TF,STATIC_BFE,V_DATUM,FIRM_PAN,EFF_DATE, etc.), confirmed against FEMA's own layer metadata for layers 28 (S_Fld_Haz_Ar) and 3 (S_FIRM_Pan).Error handling confirmed to degrade gracefully (clear error message, no crash) on a simulated network failure.
NOT yet verified — do this before relying on it live
The build/test environment used to build this server has no network route to hazards.fema.gov,
so the actual live FEMA API call has not been executed or observed. Before trusting this in a
real SIR:
Run
fema_flood_zone_lookupagainst a known site (e.g. a parcel you already have a confirmed FIRM panel/zone for from a past live run — Indian River County or Jefferson County both have flood data on file) and diff the tool's output against the confirmed manual result.Confirm the
identifyendpoint's exact response shape hasn't drifted from what's documented here — ArcGIS services occasionally change field aliasing or add/retire layers.Watch for
SFHA_TFvalues other than"T"/"F"(blank has been reported in edge cases) and confirmextractFloodZoneshandles that gracefully (it currently reports it asnull/not-SFHA, worth double-checking against a real blank-value response).Confirm rate-limit behavior under repeated calls (e.g. 5 points per SIR × multiple SIRs per day) — the public service doesn't publish a documented limit.
Confirm Render's free-tier cold start doesn't exceed claude.ai's MCP request timeout on a cold first call — if it does consistently, upgrade to a paid Render plan.
Known layer IDs (from FEMA's own NFHL MapServer)
ID | Layer |
0 | NFHL Availability |
1 | LOMRs |
3 | FIRM Panels ( |
14 | Cross-Sections |
20 | Water Lines |
22 | Political Jurisdictions |
28 | Flood Hazard Zones ( |
34 | LOMAs |
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server that wraps NVE's open GIS data to provide flood risk and landslide risk point lookups, with explicit uncertainty reporting (e.g., 'no data' vs 'safe') and source references.Last updated243MIT
- Alicense-qualityBmaintenanceAn MCP server that gives AI agents clean, token-efficient access to US civic & property data — geocoding, census tracts, Opportunity Zones, ACS demographics, and FEMA flood zones — sourced entirely from free federal open data.Last updated501MIT

floodwiseofficial
AlicenseAqualityAmaintenanceMCP server to look up long-term flood risk for England postcodes using official Environment Agency data, and validate UK postcodes.Last updated2321Apache 2.0- Alicense-qualityDmaintenanceAn MCP server that gives AI assistants direct access to the FEMA National Flood Hazard Layer (NFHL) for flood zone lookups, FIRM panel information, and flood map data in the United States.Last updated11MIT
Related MCP Connectors
Geospatial MCP server for earthquake, tsunami, volcano, disaster, and FX data queries.
Flood, wildfire, earthquake, and coastal-storm hazard lookup for a US property.
MCP server for Mireye Earth — federal-source-cited geospatial data for any MCP-aware agent.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Graysonf12/fema-nfhl-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server