# How to connect FEMA to Cursor

> Connect FEMA to Cursor with the Firecrawl MCP server. Use FEMA as an MCP tool in Cursor via Firecrawl Alexandria, with setup steps and example prompts.

To connect FEMA to Cursor, add the Firecrawl MCP server to Cursor, sign in on a Firecrawl team with Alexandria enabled, and ask for FEMA data in plain language. The connection works in Cursor's agent and chat, and you set it up once.

Cursor uses FEMA as an MCP tool through Firecrawl's hosted MCP server, so you don't install or host a separate MCP server for FEMA.

Cursor is an AI code editor. Its agent uses MCP servers for outside tools, and the Firecrawl MCP server adds web search, scraping and every data provider in Firecrawl Alexandria.

## How do I connect FEMA to Cursor?

### 1. Install the Firecrawl MCP server

Open the [install dialog in Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=firecrawl&config=eyJ1cmwiOiJodHRwczovL21jcC5maXJlY3Jhd2wuZGV2L3YyL21jcC1vYXV0aCJ9), check that the URL is Firecrawl's hosted server, then select Install.

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=firecrawl&config=eyJ1cmwiOiJodHRwczovL21jcC5maXJlY3Jhd2wuZGV2L3YyL21jcC1vYXV0aCJ9)

![Cursor's Install MCP server dialog with the Firecrawl hosted server URL](https://www.firecrawl.dev/images/blog/using-firecrawl-mcp-in-cursor/cursor-install-firecrawl-mcp-server.webp)

### 2. Connect your Firecrawl account

Use the server's sign-in option in Cursor's MCP settings. Firecrawl opens in your browser: sign in, choose a team with Alexandria enabled, and approve access. A green dot next to Firecrawl means it's connected.

![Cursor's MCP list showing Firecrawl connected with its tools enabled](https://www.firecrawl.dev/images/blog/using-firecrawl-mcp-in-cursor/cursor-firecrawl-mcp-connected.webp)

### 3. Ask Cursor's agent for the data

In the agent chat, ask in plain language and mention FEMA or Firecrawl Alexandria. The agent finds the FEMA capability that fits and runs it. For example:

```text
Use Firecrawl to run FEMA's Get dataset fields capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.
```

## What can Cursor do with FEMA?

FEMA (fema.gov): the disaster-survivor referral directories (the national list and the 56 state and territory local-level lists, including American Samoa, the Northern Mariana Islands, the U.S. Virgin Islands, Guam and Puerto Rico) with service category, entity, type of assistance and telephone numbers, parsed from the server-rendered pages; and the anonymous OpenFEMA JSON API: disaster declaration search (DisasterDeclarationsSummaries v2), one disaster's declaration record, designated areas and funding totals, the dataset catalog (with refresh cadence, deprecation successors and bulk-file hand-offs), per-dataset data dictionaries, a generic OData query over any OpenFEMA dataset, and the collection contract over any dataset version: source_status (count, newest lastRefresh, publication id, deprecation, files), records_list (full listing pinned to one publication, segmentable by field equality and calendar year), records_changes (modified-since on lastRefresh) and records_get (one record by id). Also the National Risk Index (NRI v1.20, December 2025) table downloads: release status with file sizes and ETag MD5 hashes, paginated state, county, census-tract and tribal rows (risk, expected annual loss, social vulnerability, community resilience and 18 hazard blocks) pinned to one publication, single-row lookups by FIPS, the hazard catalogue and the data dictionary.

Cursor can run any of FEMA's 17 capabilities through Alexandria. Each call is billed in Firecrawl credits on your Firecrawl team.

- **Get dataset fields**: The data dictionary of one OpenFEMA dataset (/api/open/v1/DataSetFields filtered by entity and version): every field with its name, title, description, type, nullability, searchability and primary-key flag, in the dataset's sort order. An entity/version pair with no fields is `not_found`. Costs 5 Firecrawl credits per call.
- **Get disaster**: One FEMA disaster by disaster number from three OpenFEMA datasets: the web-facing declaration record (FemaWebDisasterDeclarations v1: name, state, dates, region, program flags, GIS links), its designated areas with program types (FemaWebDeclarationAreas v1) and its funding totals (FemaWebDisasterSummaries v1: IHP, HA, ONA, PA, HMGP obligations; null when FEMA publishes none yet). Field names are OpenFEMA's own (camelCase). An unknown disaster number is `not_found`. Costs 5 Firecrawl credits per call.
- **Get local referrals**: One state or territory local-level referral directory (/assistance/individual/disaster-survivors/state-local-referral-lists/{slug}): every row of the page's referral table with service category, entity, the entity's link when the page has one, the type of assistance, the telephone cell as written and the phone numbers parsed from it, plus the page's last-updated timestamp and Drupal node id. Rows are returned in page order; a cell the page leaves blank is null. Costs 5 Firecrawl credits per call.
- **Get national referrals**: The National Referral List (/assistance/individual/disaster-survivors/national-referral-list): the service categories the list covers and every row of the national-level referral table (category, entity, link, type of assistance, telephone text and parsed phone numbers), with the page's last-updated timestamp. Costs 5 Firecrawl credits per call.
- **List datasets**: The OpenFEMA dataset catalog (/api/open/v1/DataSets): every published dataset with its entity name, API version, title, record count, last refresh, data dictionary and landing page URLs and any deprecation notice, sorted by name; optionally narrowed to names containing a substring. `name` + `version` feed `get_dataset_fields` and `query_dataset`; each row also carries lastDataSetRefresh (reload time), accrualPeriodicity (refresh cadence), depNewURL (successor), webService, the catalogue hash and the bulk-file distribution (collection contract datasets/list). Costs 5 Firecrawl credits per call.
- **List referral directories**: The State and Local Level Referral Lists index (/assistance/individual/disaster-survivors/state-local-referral-lists): the 24 disaster recovery service categories FEMA lists and every state or territory referral directory with its name, page slug and URL (56 entries, territories included). Slugs feed `get_local_referrals`. Costs 5 Firecrawl credits per call.
- **Nri dictionary**: The NRI data dictionary (NRIDataDictionary.csv, shipped inside every table zip and read from the 653 KB States zip): one row per field of the NRI layers with alias, type, length, relevant layer, metric type and version; optionally filtered by a substring of the field name. Costs 5 Firecrawl credits per call.
- **Nri get**: One NRI row by its own id: counties by STCOFIPS or NRI_ID (30031 / C30031), states by STATEFIPS, NRI_ID or USPS code (30 / S30 / MT), tribal tables by OID_ or NRI_ID (first match, with match_count), tracts by TRACTFIPS or NRI_ID (30031000100 / T30031000100). The one-fetch tables are scanned from one zip download; a tract is found by a binary search of 64 KiB Range reads over the 634 MB CSV (about 15 reads; Connecticut tracts from one tail read), all pinned to one file MD5. Costs 5 Firecrawl credits per call.
- **Nri hazards**: The NRI hazard catalogue (NRI_HazardInfo.csv, shipped inside every table zip and read from the 653 KB States zip): the 18 hazards with their four-letter column prefixes (AVLN, CFLD, CWAV, DRGT, ERQK, HAIL, HWAV, HRCN, ISTM, IFLD, LNDS, LTNG, SWND, TRND, TSUN, VLCN, WFIR, WNTW), period of record, frequency model and which expected-annual-loss components apply. Costs 5 Firecrawl credits per call.
- **Nri list**: Rows of one NRI table as records pinned to a publication. states, counties, tribal_counties and tribal_tracts are one zip fetch per page (653 KB to 26.6 MB) with an optional state filter and `limit`/`cursor` row paging; tracts (634 MB) are read by byte range, one Range request of `page_bytes` per page cut at the last row boundary, cursor = publication MD5 + next byte offset. Any page whose file MD5 differs from the cursor's fails with invalid_input `publication_changed`. Costs 5 Firecrawl credits per call.
- **Nri status**: National Risk Index (NRI) release check: for each table zip under /about/reports-and-data/openfema/nri/<release>/ its URL, size, ETag (whose first segment is the file MD5), Last-Modified, CSV layout and the NRI_VER label, from a 24 KiB Range read per file. No record counts (they need a full read; nri_list reports total_rows). Costs 5 Firecrawl credits per call.
- **Query dataset**: Generic OData query over any OpenFEMA dataset (/api/open/v{version}/{entity}): raw `$filter`, `$select` and `$orderby` with `$top`/`$skip` paging and the server's total count. Records are returned as OpenFEMA sends them (open objects; see `get_dataset_fields` for the field list). An unknown entity or version is `not_found`; a filter the OData parser rejects (code OF_OQP_*) is `invalid_input` with the server's message; the large datasets (IHP registrations, PA funded projects) share a bucket of 2 requests per 60 seconds and answer `upstream_rate_limited` beyond it. Costs 5 Firecrawl credits per call.
- **Records changes**: Records of one OpenFEMA dataset version refreshed since an instant (collection contract `records/changes`): the publisher's own modified-since filter `$filter=lastRefresh gt '<since>'`, paged with `$orderby=id` and pinned to the publication like `records_list` (same cursor, same `publication_changed` rule). Only UPDATE datasets carry a per-record `lastRefresh` (DisasterDeclarationsSummaries v2, FemaWebDisasterDeclarations v1, IpawsArchivedAlerts v1, ...); for RELOAD datasets (NfipClaims v3, NfipPolicies v3, HmaSubapplications v2) OpenFEMA offers no delta and the call fails with `invalid_input` code `no_change_feed`: list snapshots and diff them downstream. Deletions are never signalled by OpenFEMA (`deletions_signalled` is always false); a row that disappears is only visible as a count drop in `source_status`. Costs 5 Firecrawl credits per call.
- **Records get**: One OpenFEMA record by the source's own `id` (collection contract `records/get`): GET /api/open/v{version}/{dataset}/{id}, the row as sent plus `source_record_id`, `source_url`, `publication_id` (from the status query) and `retrieved_at`. Ids are UUIDs (declarations, HMA, IPAWS) or integers (NFIP v3); an unknown id, dataset or version is `not_found`; an id of the wrong type for the dataset is `invalid_input`. Costs 5 Firecrawl credits per call.
- **Records list**: Full listing of one OpenFEMA dataset version (collection contract `records/list`): pages of `$orderby=id&$top=<page_size>&$skip=<n>`, 1 to 5,000 rows a page (1,000 default; 1,000 declaration rows are 0.9 MB, 1,000 NFIP rows 2.4 MB). Every page re-runs the status query and compares the live `publication_id` with the one pinned in the cursor; when the dataset was refreshed in between the call fails with `invalid_input` code `publication_changed` and the listing restarts, so two publications are never mixed. Records are OpenFEMA's rows as sent (every field; declarations carry femaDeclarationString, disasterNumber, declarationType, declarationDate, incidentType, designatedArea, fipsStateCode, fipsCountyCode, placeCode, the four program flags, lastRefresh, hash, id; NFIP claims dateOfLoss, yearOfLoss, causeOfDamage, floodEvent, ratedFloodZone, waterDepth, the paid amounts, state, countyCode, censusGeoid, latitude, longitude, id) plus `source_record_id` (`<dataset>:v<version>:<id>`), `source_url`, `publication_id` and `retrieved_at`. Segment key for datasets over ~500k rows: `segment_field`/`segment_value` (an equality, e.g. `state` = `TX` for NfipClaims v3: 394k rows) and `year_field`/`year` (one calendar year of a date field, e.g. `dateOfLoss` 2017 with `state` = `TX` for NfipClaims v3). Datasets over 20M rows (NfipPolicies v3: 74.7M) are refused with `invalid_input` code `hand_off`: OpenFEMA cannot serve an ordered page of them within the timeout, so take the parquet/csv files `source_status` lists. `$count=true` is sent on the first page only. A frozen deprecated dataset (rows empty, count positive) is `upstream_error` naming the successor. Costs 5 Firecrawl credits per call.
- **Search disaster declarations**: OpenFEMA DisasterDeclarationsSummaries v2 (/api/open/v2/DisasterDeclarationsSummaries): one row per declared disaster and designated area, filtered by state or territory code, declaration type, incident type, disaster number and declaration date window, newest declaration first. Field names are OpenFEMA's own (camelCase). `total` is the server's count for the filter; `limit` + `skip` page through it and `next_skip` is null when exhausted. A filter that matches nothing is a successful empty result. Costs 5 Firecrawl credits per call.
- **Source status**: Cheap version check of one OpenFEMA dataset version (collection contract `source/status`): the live row count (`$count=true&$top=1`), the newest per-record `lastRefresh` (`$orderby=lastRefresh desc`; null on RELOAD datasets such as NfipClaims v3 and NfipPolicies v3, whose catalogue `lastDataSetRefresh` then stands in as `published_at`), the deprecation block (`metadata.DeprecationInformation` or the catalogue's depDate/depNewURL: a deprecated dataset names its successor) and the catalogue row from /api/open/v1/DataSets with refresh cadence (`accrual_periodicity`), the catalogue's own SHA-1 `hash` and the bulk file hand-offs (`files`: csv/json/jsonl/parquet URLs with FEMA's size class; FEMA posts no per-file hash or byte size). `publication_id` = `<dataset>:v<version>:<published_at>:<record_count>` is the pin `records_list` cursors carry. An unknown dataset or version is `not_found`. Costs 5 Firecrawl credits per call.

## What should I ask Cursor?

Name FEMA or Firecrawl Alexandria in the prompt so Cursor reaches for it.

- [Use Firecrawl to run FEMA's Get dataset fields capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20run%20FEMA's%20Get%20dataset%20fields%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)
- [Use Firecrawl to run FEMA's Get disaster capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20run%20FEMA's%20Get%20disaster%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)
- [Use Firecrawl to run FEMA's Get local referrals capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20run%20FEMA's%20Get%20local%20referrals%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)
- [Use Firecrawl to run FEMA's Get national referrals capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20run%20FEMA's%20Get%20national%20referrals%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)

### For agents

Start with the `fema-gov` provider. Use Firecrawl Alexandria first. With MCP, use firecrawl_search with sources: ["alexandria"] to discover relevant tools, firecrawl_find_tools to inspect the selected capability contracts, then firecrawl_scrape in alexandria mode to retrieve records. With the CLI, use firecrawl search alexandria, firecrawl list, then firecrawl scrape for the selected provider/capability. Follow the live tool schema and returned contract; never invent provider IDs or inputs. Ask for missing required details before execution, respect access and pricing, and inspect each result for errors. Cite retrieved records, distinguish missing data from failures, and explain gaps. If no suitable Alexandria capability exists, say so before using web sources. Do not treat a tool listing as retrieved data.

## Troubleshooting

### Why can't Cursor find FEMA?

If Firecrawl's tools in Cursor stop at search, scrape and parse, the connection is keyless and doesn't include Alexandria. Finish the sign-in from Cursor's MCP settings, or add an API key from a team with Alexandria enabled.

### Firecrawl shows a red dot in Cursor. What should I do?

Open Cursor's MCP settings, sign in to Firecrawl again, and restart the agent chat so it loads the tools.

## Use FEMA in other AI apps

- [FEMA in ChatGPT](https://alexandria.firecrawl.dev/providers/fema-gov/connect/chatgpt)
- [FEMA in Claude](https://alexandria.firecrawl.dev/providers/fema-gov/connect/claude)
- [FEMA in Grok Bot](https://alexandria.firecrawl.dev/providers/fema-gov/connect/grok-bot)
- [FEMA in Muse](https://alexandria.firecrawl.dev/providers/fema-gov/connect/muse)

### Other data providers you can connect to Cursor

- [How to connect France public medicines database (BDPM) to Cursor](https://alexandria.firecrawl.dev/providers/base-donnees-publique-medicaments-gouv-fr/connect/cursor)
- [How to connect ClinicalTrials.gov to Cursor](https://alexandria.firecrawl.dev/providers/clinicaltrials-gov/connect/cursor)
- [How to connect CMS Medicare Drug Prices: Negotiated Prices and Part B ASP Payment Limits to Cursor](https://alexandria.firecrawl.dev/providers/cms-gov/connect/cursor)
- [How to connect CDC PLACES local health estimates (data.cdc.gov) to Cursor](https://alexandria.firecrawl.dev/providers/data-cdc-gov/connect/cursor)

Full setup guide: [Firecrawl in Cursor](https://www.firecrawl.dev/integrations/cursor)

## Frequently asked questions

### What is Firecrawl?

Firecrawl is the web data API to search, scrape and interact with the web at scale. It turns websites into clean, LLM-ready data for AI agents and apps. The Firecrawl MCP server brings those tools into Cursor, along with every data provider in Firecrawl Alexandria.

### What is Firecrawl Alexandria?

Firecrawl Alexandria is Firecrawl's library of 550+ data providers for AI agents, FEMA among them. Each provider returns structured data through documented capabilities. Cursor finds the capability that fits your question and calls it through the Firecrawl MCP server, so you don't write any integration code. Alexandria needs a Firecrawl account signed in on a team with Alexandria enabled, or an API key from such a team; keyless connections don't include it.

### Is there a FEMA MCP server for Cursor?

Cursor reaches FEMA through Firecrawl's hosted MCP server, which serves FEMA and every other Alexandria provider as tools. Add the Firecrawl MCP server once and you don't install or host a separate MCP server for FEMA.

### What does connecting FEMA to Cursor unlock?

Cursor can run all 17 of FEMA's capabilities, including Get dataset fields, Get disaster and Get local referrals, from any chat, with structured results it can sort, compare and summarize. In the same conversation, Cursor can combine FEMA with Firecrawl's web search and scraping and the other providers in Firecrawl Alexandria.

### Do I need my own FEMA account or API key to use it in Cursor?

No. Cursor calls FEMA through Firecrawl Alexandria and each call is billed in Firecrawl credits, so you don't need a separate FEMA account or API key.

### How much does it cost to use FEMA in Cursor?

Each FEMA call costs 5 Firecrawl credits. The capability list on this page shows each price and its unit. The credits come from the Firecrawl team you connect to Cursor, and finding the right capability is free.

### Can Cursor use other providers besides FEMA?

Yes. The same Firecrawl MCP server reaches every provider in Firecrawl Alexandria, along with Firecrawl's web search and scraping, so you connect once.

### Can I use FEMA in other AI apps?

Yes. Connect Firecrawl to ChatGPT, Claude, Grok Bot, Muse signed in on a Firecrawl team with Alexandria enabled, or use the Firecrawl MCP server, CLI or API with an API key from that team, and the same FEMA capabilities are available there. Keyless connections don't include Alexandria.
