WeatherAI MCP
WeatherAI MCP server — 11 live weather tools for Claude Desktop, Cursor, Windsurf, and any MCP-compatible AI assistant
README
WeatherAI MCP Server
11 live weather tools for your AI assistant — one URL, no setup.
The WeatherAI MCP server gives Claude Desktop, Cursor, Windsurf, and any MCP-compatible AI assistant instant access to real-time weather, forecasts, historical data, air quality, astronomy, solar irradiance, and a plain-English AI weather interface.
Hosted endpoint: https://api.weatherai.io/mcp
Transport: Streamable HTTP (stateless, MCP spec 2025-03-26)
Auth: API key via query param, header, or Bearer token
Free tier: 1,000 standard calls/day · 50 premium calls/day
Quick Start
1. Get a free API key
Sign up at weatherai.io — no credit card required.
2. Add to your AI client
Replace YOUR_API_KEY with the key from your dashboard.
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or
%APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"weatherai": {
"url": "https://api.weatherai.io/mcp?apiKey=YOUR_API_KEY"
}
}
}
Restart Claude Desktop after saving.
Cursor
Go to Cursor → Settings → MCP or edit ~/.cursor/mcp.json:
{
"mcpServers": {
"weatherai": {
"url": "https://api.weatherai.io/mcp?apiKey=YOUR_API_KEY"
}
}
}
Windsurf
Edit ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"weatherai": {
"url": "https://api.weatherai.io/mcp?apiKey=YOUR_API_KEY",
"type": "http"
}
}
}
Any other MCP client (generic mcp.json)
{
"mcpServers": {
"weatherai": {
"url": "https://api.weatherai.io/mcp?apiKey=YOUR_API_KEY",
"type": "http",
"transport": "streamable-http"
}
}
}
3. Start asking weather questions
"What's the weather like in Tokyo right now?"
"Will it rain in London this weekend?"
"What were temperatures in Paris on 14 July 2023?"
"What's the air quality like in Beijing?"
"When does the sun set in Dubai today?"
Available Tools
All 11 tools are registered automatically — no configuration needed.
| Tool | Tier | Description | Key Parameters |
|---|---|---|---|
get_current_weather |
Standard | Real-time conditions for any location | location, units |
get_weather_forecast |
Standard | Daily & hourly forecast up to 14 days | location, days (1–14), units |
get_historical_weather |
Premium | Actual past weather for any date | location, date (YYYY-MM-DD), units |
get_future_weather |
Premium | Predictions 14–300 days ahead | location, start_date, end_date, units |
get_air_quality |
Standard | AQI, PM2.5, PM10, CO, NO2, SO2, O3 | location |
get_weather_alerts |
Standard | Active government weather warnings | location |
get_astronomy |
Standard | Sunrise, sunset, moon phase & illumination | location, date |
get_solar_data |
Premium | Solar irradiance & energy estimates | location, date, units |
get_timezone |
Standard | UTC offset, local time, DST status | location |
search_locations |
Standard | Find cities/places by partial name | query |
ask_ai_weather |
Premium | Plain-English weather questions via Claude AI | question |
Tool Details
get_current_weather
Returns temperature, feels-like, humidity, wind speed/direction, UV index, visibility, pressure, and cloud cover.
location (required) City name, US zip, UK postcode, lat/lon, or IP address
units (optional) "metric" | "imperial" — default: metric
get_weather_forecast
Daily high/low and hourly breakdown for up to 14 days including precipitation chance and UV index.
location (required) City name, zip/postcode, coordinates, or IP address
days (optional) 1–14 — default: 3
units (optional) "metric" | "imperial" — default: metric
get_historical_weather
Hour-by-hour actual recorded weather for any past date.
location (required) City name, zip/postcode, coordinates, or IP address
date (required) YYYY-MM-DD format — must be a past date
units (optional) "metric" | "imperial" — default: metric
get_future_weather
AI-enhanced extended forecast from 14 to 300 days into the future. Costs 2 premium credits per request.
location (required) City name, zip/postcode, coordinates, or IP address
start_date (required) YYYY-MM-DD — 14–300 days from today
end_date (optional) YYYY-MM-DD — max 30 days per request
units (optional) "metric" | "imperial" — default: metric
get_air_quality
Real-time AQI index plus individual pollutant readings (PM2.5, PM10, CO, NO2, SO2, O3).
location (required) City name, zip/postcode, coordinates, or IP address
get_weather_alerts
Active government-issued storm, flood, heat, and other weather warnings.
location (required) City name, zip/postcode, coordinates, or IP address
get_astronomy
Sunrise, sunset, moonrise, moonset, moon phase name, and illumination percentage.
location (required) City name, zip/postcode, coordinates, or IP address
date (optional) YYYY-MM-DD — defaults to today
get_solar_data
Solar irradiance (W/m²) and estimated daily energy generation (kWh/m²).
location (required) City name, zip/postcode, coordinates, or IP address
date (optional) YYYY-MM-DD — defaults to today
units (optional) "metric" | "imperial" — default: metric
get_timezone
IANA timezone name, UTC offset (hours), current local time, and DST active flag.
location (required) City name, zip/postcode, coordinates, or IP address
search_locations
Returns up to 10 matching places with name, region, country, and coordinates.
query (required) Partial or full city/location name
ask_ai_weather ⭐
Ask any weather question in plain English. The AI interprets the intent, calls the relevant tools, and returns a natural-language answer plus the underlying JSON data. Costs 2 premium credits per request.
question (required) e.g. "Will it be good weather for hiking in the Lake District next weekend?"
Authentication
Three methods are supported — all equivalent:
| Method | Example |
|---|---|
| Query parameter | https://api.weatherai.io/mcp?apiKey=YOUR_KEY |
X-API-Key header |
X-API-Key: YOUR_KEY |
| Bearer token | Authorization: Bearer YOUR_KEY |
Query parameter is recommended for client config files. Use headers for programmatic access.
Pricing
| Tier | Free Allowance | Overage |
|---|---|---|
| Standard tools | 1,000 calls/day | $0.0005 / call |
| Premium tools | 50 calls/day | $0.001 / call |
Credits are prepaid — top up from your dashboard. No subscription required.
Standard tools: get_current_weather, get_weather_forecast, get_air_quality, get_weather_alerts, get_astronomy, get_timezone, search_locations
Premium tools: get_historical_weather, get_future_weather, get_solar_data, ask_ai_weather
Machine-Readable Discovery
| File | URL |
|---|---|
| MCP manifest | /.well-known/mcp.json |
| LLM context | /llms.txt |
| OpenAPI spec | /openapi.yaml |
Source Code
This repository contains the MCP server implementation. The server runs as part of the WeatherAI.io platform at https://api.weatherai.io/mcp.
src/index.ts is a self-contained adaptation that can also be run standalone:
npm install
WEATHERAI_API_KEY=your_key npm start
The standalone server listens on PORT (default 3000) and exposes the same /mcp endpoint.
Links
- Website: weatherai.io
- MCP docs: weatherai.io/mcp
- API docs: weatherai.io/docs
- Pricing: weatherai.io/pricing
- Register: weatherai.io/register
License
MIT — see LICENSE.
Built by Zoomash Ltd, England (Company No. 7838145).
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.