# How to connect National Weather Service API (api.weather.gov) to Cursor

> Connect National Weather Service API (api.weather.gov) to Cursor with the Firecrawl MCP server.

To connect National Weather Service API (api.weather.gov) to Cursor, add the Firecrawl MCP server to Cursor, sign in on a Firecrawl team with Alexandria enabled, and ask for National Weather Service API (api.weather.gov) data in plain language. The connection works in Cursor's agent and chat, and you set it up once.

Cursor uses National Weather Service API (api.weather.gov) as an MCP tool through Firecrawl's hosted MCP server, so you don't install or host a separate MCP server for National Weather Service API (api.weather.gov).

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 National Weather Service API (api.weather.gov) 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 National Weather Service API (api.weather.gov) or Firecrawl Alexandria. The agent finds the National Weather Service API (api.weather.gov) capability that fits and runs it. For example:

```text
Use Firecrawl to get the next five days of NWS forecasts for the GeoJSON Point [-86.93, 35.853], with temperatures in Celsius, precipitation in millimeters and wind in km/h.
```

## What can Cursor do with National Weather Service API (api.weather.gov)?

NWS watches, warnings and advisories (active and last ~7 days), daily/hourly forecasts and current conditions / recent observations from the nearest observation stations for a GeoJSON geometry in the United States: the land contract shared with the other land programs (geometry in; spatial_precision, sources, missing and a location echo out). Station-keyed functions (observations_latest, observations, stations) also accept an NWS station id.

Cursor can run any of National Weather Service API (api.weather.gov)'s 8 capabilities through Alexandria. Each call is billed in Firecrawl credits on your Firecrawl team.

- **Alert**: One NWS alert by CAP id from /alerts/{id}: full description and instruction, geocodes, affected zones and the storm polygon when the alert has one. Costs 5 Firecrawl credits per call.
- **Alerts active**: Active NWS watches, warnings and advisories (status actual) for a GeoJSON geometry. Samples the centroid and ring vertices, resolves their county, forecast and fire zones with /zones?point=, reads /alerts/active?zone=... and keeps zone-based alerts (match zone, precision county) plus storm-based alerts whose polygon intersects the geometry or lies within buffer_km of it (match polygon, precision polygon). Costs 5 Firecrawl credits per call.
- **Alerts history**: NWS alerts (status actual) whose zones or polygon covered a GeoJSON geometry within a date window, from /alerts?zone=...&start=...&end=.... The API keeps about seven days of alerts; a window older than that is reported in `missing`, not guessed. Pages with `continuation` (the API's opaque cursor). Costs 5 Firecrawl credits per call.
- **Forecast daily**: Per-local-day quantitative forecast for the NWS 2.5 km grid cell containing the geometry's centroid, aggregated from the raw gridpoint series (/gridpoints/{wfo}/{x},{y}): precipitation (mm), max/min temperature (C), min relative humidity, max wind and gust (km/h), max probability of precipitation, plus the day and night text from the 12-hour forecast, which also supplies the local UTC offset. Costs 5 Firecrawl credits per call.
- **Forecast hourly**: Hourly forecast periods for the NWS grid cell containing the geometry's centroid, from /gridpoints/{wfo}/{x},{y}/forecast/hourly: temperature (as the source states it, F), dewpoint (C), relative humidity, probability of precipitation, wind and short forecast text, with local-offset timestamps. Costs 5 Firecrawl credits per call.
- **Observations**: Recent observations of one NWS station, newest first, from /stations/{id}/observations with an optional start/end window (ISO 8601 with offset) and a page size (limit, 1..500). The API keeps roughly seven days; an older window is reported in `missing`, not guessed. Pages with `continuation` (the API's opaque cursor; the window and limit are re-applied on each page because the API's own next link drops them). Station metadata comes from /stations/{id}, which also makes an unknown id a not_found. Costs 5 Firecrawl credits per call.
- **Observations latest**: Current conditions: the latest observation from the nearest NWS station that reports data. With a geometry: /points/{lat},{lon} for the centroid's grid cell, /gridpoints/{wfo}/{x},{y}/stations (nearest first), then /stations/{id}/observations/latest station by station until one answers 200 with data (max_stations bounds the walk; stations that 404 or report every value null are skipped and listed in stations_tried). With a station_id: /stations/{id} and its /observations/latest. When /observations/latest answers with every value null, the newest record with data among the station's last 3 /observations is returned instead, with a latest_fallback warning. Temperature, dewpoint, humidity, wind, pressure, visibility, precipitation, present weather and cloud layers in fixed SI units, each null when the station did not report it, with the API's quality-control flags. Costs 5 Firecrawl credits per call.
- **Stations**: NWS observation stations, one of three ways: for a geometry, the stations the API lists for the centroid's forecast grid cell (/points then /gridpoints/{wfo}/{x},{y}/stations), nearest first with the API's grid-cell distance and bearing plus the great-circle distance from the centroid; for a two-letter state code, /stations?state=XX with cursor pagination; for a list of station ids, /stations?id=A,B (not_found when none exists). Each station carries name, provider network, time zone, elevation, coordinates and its forecast, county and fire-weather zone ids. Costs 5 Firecrawl credits per call.

## What should I ask Cursor?

Name National Weather Service API (api.weather.gov) or Firecrawl Alexandria in the prompt so Cursor reaches for it.

- [Use Firecrawl to get the next five days of NWS forecasts for the GeoJSON Point [-86.93, 35.853], with temperatures in Celsius, precipitation in millimeters and wind in km/h.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20get%20the%20next%20five%20days%20of%20NWS%20forecasts%20for%20the%20GeoJSON%20Point%20%5B-86.93%2C%2035.853%5D%2C%20with%20temperatures%20in%20Celsius%2C%20precipitation%20in%20millimeters%20and%20wind%20in%20km%2Fh.)
- [Use Firecrawl to show the next 12 hours of NWS temperature, precipitation probability and wind forecasts at GeoJSON Point [-86.93, 35.853].](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20show%20the%20next%2012%20hours%20of%20NWS%20temperature%2C%20precipitation%20probability%20and%20wind%20forecasts%20at%20GeoJSON%20Point%20%5B-86.93%2C%2035.853%5D.)
- [Use Firecrawl to list active NWS warnings and advisories covering GeoJSON Point [-97.12, 32.58], with severity, expiry and instructions.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20list%20active%20NWS%20warnings%20and%20advisories%20covering%20GeoJSON%20Point%20%5B-97.12%2C%2032.58%5D%2C%20with%20severity%2C%20expiry%20and%20instructions.)
- [Use Firecrawl to show NWS alerts covering GeoJSON Point [-97.12, 32.58] during the last three days, limited to 20 alerts, and report any missing history.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20show%20NWS%20alerts%20covering%20GeoJSON%20Point%20%5B-97.12%2C%2032.58%5D%20during%20the%20last%20three%20days%2C%20limited%20to%2020%20alerts%2C%20and%20report%20any%20missing%20history.)

### For agents

Start with the `api-weather-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 National Weather Service API (api.weather.gov)?

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 National Weather Service API (api.weather.gov) in other AI apps

- [National Weather Service API (api.weather.gov) in ChatGPT](https://alexandria.firecrawl.dev/providers/api-weather-gov/connect/chatgpt)
- [National Weather Service API (api.weather.gov) in Claude](https://alexandria.firecrawl.dev/providers/api-weather-gov/connect/claude)
- [National Weather Service API (api.weather.gov) in Grok Bot](https://alexandria.firecrawl.dev/providers/api-weather-gov/connect/grok-bot)
- [National Weather Service API (api.weather.gov) in Muse](https://alexandria.firecrawl.dev/providers/api-weather-gov/connect/muse)

### Other data providers you can connect to Cursor

- [How to connect Connecticut Solar and Battery Installs (data.ct.gov) to Cursor](https://alexandria.firecrawl.dev/providers/data-ct-gov/connect/cursor)
- [How to connect ArcGIS public GIS layers to Cursor](https://alexandria.firecrawl.dev/providers/arcgis-com/connect/cursor)
- [How to connect Auction.com to Cursor](https://alexandria.firecrawl.dev/providers/auction-com/connect/cursor)
- [How to connect OpenAddresses per-source runs to Cursor](https://alexandria.firecrawl.dev/providers/batch-openaddresses-io/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, National Weather Service API (api.weather.gov) 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 National Weather Service API (api.weather.gov) MCP server for Cursor?

Cursor reaches National Weather Service API (api.weather.gov) through Firecrawl's hosted MCP server, which serves National Weather Service API (api.weather.gov) 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 National Weather Service API (api.weather.gov).

### What does connecting National Weather Service API (api.weather.gov) to Cursor unlock?

Cursor can run all 8 of National Weather Service API (api.weather.gov)'s capabilities, including Alert, Alerts active and Alerts history, from any chat, with structured results it can sort, compare and summarize. For example, ask: "Use Firecrawl to get the next five days of NWS forecasts for the GeoJSON Point [-86.93, 35.853], with temperatures in Celsius, precipitation in millimeters and wind in km/h." In the same conversation, Cursor can combine National Weather Service API (api.weather.gov) with Firecrawl's web search and scraping and the other providers in Firecrawl Alexandria.

### Do I need my own National Weather Service API (api.weather.gov) account or API key to use it in Cursor?

No. Cursor calls National Weather Service API (api.weather.gov) through Firecrawl Alexandria and each call is billed in Firecrawl credits, so you don't need a separate National Weather Service API (api.weather.gov) account or API key.

### How much does it cost to use National Weather Service API (api.weather.gov) in Cursor?

Each National Weather Service API (api.weather.gov) 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 National Weather Service API (api.weather.gov)?

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 National Weather Service API (api.weather.gov) 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 National Weather Service API (api.weather.gov) capabilities are available there. Keyless connections don't include Alexandria.
