/fema-mcp-server:fema-guidefrom fema-mcp-server
Gates, identifier sources, and OData syntax for the fema_* tools over OpenFEMA. Use when answering a US federal disaster question (declarations, Public Assistance or housing aid totals, NFIP flood-insurance claims), naming a storm or county across FEMA datasets, or writing a fema_query_dataset filter for a dataset the other tools don't cover.
Ships in fema-mcp-server. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
OpenFEMA, keyless: disaster declarations, Public Assistance (PA) funded projects, Individuals and Households Program (IHP) housing aid by county and ZIP, NFIP flood-insurance claims, and every other dataset in the OpenFEMA catalog through fema_query_dataset. It records what FEMA declared, obligated, approved, and paid. It does not hold hazard measurements or losses outside FEMA programs.
Records for recent disasters are incomplete. In FemaWebDisasterSummaries, null PA totals with a null paLoadDate mean either PA not yet loaded (the newest declarations) or PA never declared (DR-1689); check paProgramDeclared on DisasterDeclarationsSummaries before calling it pending. Neither case is $0. Cite the as-of date: paLoadDate, iaLoadDate, or a row's lastRefresh.
| Identifier | Where it comes from |
|---|---|
| Disaster number | fema_search_disasters, or a title search (below). The DR/EM/FM label is the declaration type; the number alone is the key every assistance dataset joins on. |
| 5-digit county FIPS | matched_areas from fema_search_disasters with a county set, or designated_areas from fema_get_disaster: state code + county code (48 + 201). A Statewide area carries county code 000; it is not a county. |
| County name | Stored differently per dataset (table below). |
| Dataset name | fema_query_dataset on dataset DataSets (fields name, version, title). Names are case-sensitive. |
| Field names and types | fema_query_dataset on dataset DataSetFields, filtered by openFemaDataSet and datasetVersion. |
One storm usually means several declarations: one per state, often an EM before the DR. Call fema_search_disasters with title: "harvey" for deduplicated declarations: DR-4332 (TX), DR-4345 (LA), and EM-3382 (LA), plus the unrelated FM-2697 HARVEYTOWN FIRE. The title is a case-insensitive substring, not a storm identifier; combine it with state, declaration type, or dates to narrow the match. Incident types don't always match the storm's name: Tropical Storm Allison (DR-1379) is filed as Coastal Storm.
| Dataset | County stored as |
|---|---|
Declarations (designatedArea), housing | Harris (County), Acadia (Parish) |
| PA funded projects | Harris County; state-agency applicants as Statewide |
PublicAssistanceFundedProjectsSummaries | Aransas County, with state as the full name (Texas) |
| NFIP claims | 5-digit FIPS countyCode (48201), no name |
fema_search_disasters, fema_get_public_assistance, and fema_get_housing_assistance recognize terminal County, Parish, Borough, and Census Area forms with or without parentheses: Harris County and Harris (County) identify the same name/type. Unknown names retain exact/case fallbacks. Bare Harris also matches Harrison; check matched_areas or each row's county before totaling. A suffixed name keeps its type instead of broadening to the bare substring.Statewide projects. DR-4332 has 734 of them, filed under state agencies rather than a county. When you report a county figure, say it excludes them.ia_declared combines legacy iaProgramDeclared and ihProgramDeclared (IHP), including older IA-only declarations. Search rollups cover the whole declaration unless area_totals_unavailable; detail and resource flags cover fetched rows, so a false flag with partial coverage cannot establish absence. For a county's designation, read designated_areas in fema_get_disaster or county-filtered search's matched_areas. Housing datasets have their own coverage and recent data can lag.fema_query_dataset on FemaWebDisasterSummaries, filtered disasterNumber eq <n>. It returns IHP approved (housing + other needs), PA obligated in total and for categories A–B and C–G (the total also covers other categories, so the two sub-totals sum to less), and HMGP. For a county or applicant breakdown, page the projects or housing records to the end with next_offset before you report a sum. Pages are bounded by characters, so a fema_query_dataset call that selects only the amount fields fits more rows per page than the curated tools do.fema_query_dataset on NfipClaims with floodEvent eq 'Hurricane Harvey', keeping state and countyCode in the same filter. fema_search_nfip doesn't expose floodEvent.total_count with the canvas row cap named in fema_search_nfip's description; Harris County's Harvey claims alone come to about 49,000. When a match runs past the cap, split it by year range, stage each range onto the same canvas, and combine the tables in SQL with UNION ALL. Only a call at offset 0 stages.rated_flood_zone mixes current codes (AE, VE, X) with legacy ones (A01–A30, V-numbered, B, C) and nulls. By FEMA's definitions, every A and V code is the Special Flood Hazard Area (the 100-year floodplain), B is moderate hazard, and C is minimal hazard. X alone doesn't tell you whether a zone is moderate or minimal.COUNT(amount_paid_building) to count the claims behind a building-payment sum, not COUNT(*).retryAfter (60 s); wait it out before retrying. NFIP reads sometimes time out upstream, and the same call can succeed when retried. Don't read a timeout as an empty match.fema_query_dataset| Need | Write |
|---|---|
| Text | state eq 'TX': single quotes, exact case |
| Number, boolean | disasterNumber eq 4332, ihProgramDeclared eq true: unquoted |
| Date | declarationDate ge '2017-01-01', or a full '2017-01-01T00:00:00.000Z' |
| Value list | disasterNumber in (4332,1379), openFemaDataSet in ('NfipClaims','NfipPolicies') |
| Substring | substringof('Harris', designatedArea): needle first, field second |
| NFIP county | countyCode eq '48201': a quoted 5-digit string |
eq and substringof are case-sensitive, and OpenFEMA has no function that folds case. A wrong-case value returns zero rows rather than an error: state eq 'tx' and substringof('harris', designatedArea) both match nothing. Take the spelling from a row you've already read.
Field names differ between datasets: stateAbbreviation on PA project details, propertyState on NfipPolicies, a full state name on PublicAssistanceFundedProjectsSummaries. Read DataSetFields (or one row with limit 1) before you write the filter. Scope NfipClaims by state plus countyCode or reportedZipCode, as fema_search_nfip does.
Money for a disaster. Find the disaster number. For headline figures, use FemaWebDisasterSummaries. For a county, filter fema_get_public_assistance and fema_get_housing_assistance with its recognized name and type (such as Harris County), check the returned county names, page to the end, and sum. Report which PA amount you summed; the tool's field descriptions define each one.
Flood claims for an area. Get the 5-digit FIPS from the declaration tools. Call fema_search_nfip with state, county, and year range at offset 0, then aggregate on the canvas. For a single named event, filter floodEvent through fema_query_dataset instead.
A dataset the curated tools don't cover. List candidates from DataSets with substringof on name, read the dataset's fields from DataSetFields, read one row, then filter.
A fema_search_nfip match too large to return inline is staged as a DataCanvas table, and the response carries a canvas_id; no other tool stages. Call fema_dataframe_describe with it for the staged table and column names before writing SQL, then fema_dataframe_query with a read-only query. Pass the same canvas_id back to fema_search_nfip to stage further results beside the first. A canvas_id that has expired returns canvas_not_found; re-run fema_search_nfip to stage the data again.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
fema-mcp-server@cyanheads is listed by cyanheads/cyanheads — review the source before installing
npx claudepluginhub cyanheads/cyanheads --plugin fema-mcp-server