Weatherapi MCP Server

MCP server for WeatherAPI.com — real-time weather, forecasts, history, marine, astronomy, air quality and more for AI agents

Local serverstdio

What is the Weatherapi MCP Server?

MCP server for WeatherAPI.com — real-time weather, forecasts, history, marine, astronomy, air quality and more for AI agents

The short version

Official MCP (Model Context Protocol) server for WeatherAPI.com. Gives AI agents like Claude direct access to real-time weather, forecasts, historical data, astronomy, marine weather, air quality, and more.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
get_current_weatherReal-time conditions — temp, wind, humidity, UV, pressure, AQI
get_forecastUp to 14-day forecast with hourly breakdown and alerts
get_historyHistorical weather from 1 Jan 2010 onwards
get_future_weatherLong-range forecast 14–300 days ahead (Pro+ plan)
get_marine_weatherWave height, swell, tide data for coastal/ocean points
get_astronomySunrise, sunset, moonrise, moon phase, illumination
get_timezoneIANA timezone and local time for any location
search_locationsAutocomplete city/town search with coordinates
ip_lookupGeolocate an IP address or auto-detect caller's location
get_alertsGovernment weather warnings (USA, UK, Europe, worldwide)
get_sportsUpcoming football, cricket, and golf events

How to install the Weatherapi MCP Server

{
  "mcpServers": {
    "weatherapi": {
      "command": "npx",
      "args": ["-y", "weatherapi-mcp"],
      "env": {
        "WEATHERAPI_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
WEATHERAPI_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use Weatherapi to get current weather.”
  • “Use Weatherapi to get forecast.”
  • “Use Weatherapi to get history.”

Frequently asked questions

MCP server for WeatherAPI.com — real-time weather, forecasts, history, marine, astronomy, air quality and more for AI agents Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.