Openfema

v0.2.1
io.github.pipeworx-io/openfema Checked 1 day ago Published 28 days ago

OpenFEMA MCP — US Federal Emergency Management Agency open data.

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

disaster_declarations

Look up and COUNT US federal disaster declarations (FEMA DisasterDeclarationsSummaries). Filters: state (2-letter), incidentType (e.g. 'Fire', 'Flood', 'Hurricane', 'Severe Storm'), declarationType ('DR' major disaster, 'EM' emergency, 'FM' fire management), year (fyDeclared, the federal FISCAL year), and since/until for a real calendar date range — use since/until for questions like 'in the past year', which a fiscal year does not answer. Counts are DISTINCT DISASTERS by default, not table rows: FEMA publishes one row per disaster per designated county, so Hurricane Harvey is ~60 rows for T…

ParameterTypeDescription
declarationTypestring'DR' (major disaster), 'EM' (emergency), or 'FM' (fire management).
designatedAreastringFilter to a designated area, e.g. 'Harris (County)'. Implies county-level grain.
grainstring'disaster' (default) = one record per declaration; 'area' = one record per designated county.
incidentTypestringIncident type, e.g. 'Fire', 'Flood', 'Hurricane', 'Severe Storm'.
limitintegerMax records (default 50, max 1000).
orderbystringOData $orderby, default 'declarationDate desc'. Live-API path only.
sincestringOnly declarations on/after this date — ISO 'YYYY-MM-DD'. Use with until for windows like 'the past year'.
statestring2-letter state/territory code, e.g. 'CA', 'TX'.
untilstringOnly declarations on/before this date — ISO 'YYYY-MM-DD'.
yearintegerFederal FISCAL year declared (fyDeclared), e.g. 2024. For a calendar window use since/until instead.

query_dataset

Generic OData query against any OpenFEMA dataset. Specify the entity name (and optionally version; defaults to the verified current version) plus OData params: filter, select, orderby, top, skip. Use list_datasets to see available entities/versions and the filter syntax. Returns { metadata, records }.

ParameterTypeDescription
entity *stringDataset entity name, e.g. 'PublicAssistanceFundedProjectsDetails'.
filterstringOData $filter, e.g. "state eq 'TX' and fyDeclared eq 2023".
orderbystringOData $orderby, e.g. 'declarationDate desc'.
selectstringComma-separated $select fields, e.g. "disasterNumber,state,incidentType".
skipintegerRecords to skip ($skip) for paging.
topintegerMax records ($top, default 50, max 1000).
versionstringPath version like 'v1'/'v2'/'v4'. Optional — defaults to the verified current version for known entities.

list_datasets

List the OpenFEMA datasets this pack knows about, with their entity name, current version, and a description. Also documents the OData filter syntax and response shape. Call this first to discover what query_dataset can target.