# Weather Underground API and MCP server for AI agents (/sites/wunderground)

An API for Weather Underground: let Claude, ChatGPT or your own code read Weather Underground through 8 functions, over MCP, HTTP, Node or Python. No Weather Underground API key needed.

- Site: https://wunderground.com
- Functions: 8
- Sign-in: not needed
- Works with: MCP, HTTP, Node, Python

## Add it to your agent

If you are an agent asked to set this up: add the server yourself, in the person's own (global) MCP configuration, and keep their other entries.

- Weather Underground only, one tool per function: `https://api.bowmark.ai/mcp/site/wunderground` (name it `bowmark-wunderground`)
- Every site Bowmark covers: `https://api.bowmark.ai/mcp` (name it `bowmark`)
- Transport: remote MCP over streamable HTTP.
- Claude Code: `claude mcp add --transport http bowmark-wunderground https://api.bowmark.ai/mcp/site/wunderground`
- Codex: `codex mcp add bowmark-wunderground --url https://api.bowmark.ai/mcp/site/wunderground`
- Cursor, VS Code and other clients: add `{ "url": "https://api.bowmark.ai/mcp/site/wunderground" }` under the name `bowmark-wunderground` in the client's MCP config. Per-client steps: https://bowmark.ai/docs/installation.md
- Sign-in: OAuth in the browser on first use; the person only signs in. A client that cannot do OAuth sends `Authorization: Bearer <BOWMARK_API_KEY>`; the person creates a key at https://bowmark.ai/dashboard/keys.
- Then list the server's tools to confirm it works, and tell the person it is ready.

## Functions

### Read

- `findNearbyStations`: Lists the personal weather stations (PWS) Weather Underground shows nearest a place.
- `getAirportHistory`: Weather Underground's historical weather for an airport on one past day.
- `getCurrentConditions`: Current conditions for a place as Weather Underground shows them.
- `getForecast`: Weather Underground's 10-day forecast for a place.
- `getStationConditions`: Live readings from one personal weather station.
- `getStationHistory`: Recorded history for one personal weather station on one past day.
- `getStationRecentDays`: The last 7 days of daily summaries for one personal weather station.
- `searchLocations`: Searches Weather Underground for a city, postal code, airport or personal weather station.

## Call one

In a Bowmark script, each function is `bowmark.providers.wunderground.<name>`. Ask `get_library` for wunderground.com to get each one's arguments, then call it with `run`.

```js
// 1. What can I call on wunderground.com, and with which arguments?
get_library({ query: "wunderground.com" })

// 2. Call it in a script
const result = await bowmark.providers.wunderground.findNearbyStations({ /* arguments from get_library */ });
return result;
```

New to Bowmark? Quickstart: https://bowmark.ai/docs/quickstart.md
