# Ambient Weather — how to use (mcp.ai)

Connect your Ambient Weather account and use 1 tools for internet of things straight from your AI agent. Connect with your own API key. Ambient Weather provides personal weather stations and an API for accessing real-time and historical weather data.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_ambient_weather?ms=1787296140000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `ambient_weather_get_devices`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/ambient_weather`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/ambient_weather/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/ambient_weather/get/devices` — Tool to retrieve a list of user's Ambient Weather devices with their most recent data. Use when you need to list your stations and view their latest readings.

## Example prompts
- "What can I do in Ambient Weather?"
- "Show me a summary of my Ambient Weather account"

## More
- Page: https://mcp.ai/ambient_weather
- Agent spec (llms.txt): https://mcp.ai/ambient_weather/llms.txt
- Postman collection: https://mcp.ai/ambient_weather/postman.json
