mcp-weatherapi
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-weatherapiwhat's the current weather in London?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
WeatherAPI MCP Server
An MCP server that provides weather data tools using the WeatherAPI.com service.
Features
This MCP server provides the following tools:
get_current_weather: Get current weather conditions for any location
get_forecast: Get weather forecast (1-10 days) with hourly breakdowns
search_location: Search for locations by name
get_astronomy: Get sunrise, sunset, moon phases, and other astronomy data
get_air_quality: Get air quality index and pollutant levels
Related MCP server: Weather MCP Server
Setup
Get a free API key from WeatherAPI.com
Set the API key as an environment variable:
# Windows PowerShell $env:WEATHERAPI_KEY = "your_api_key_here" # Or add to your profile for persistence # Edit $PROFILE and add: # $env:WEATHERAPI_KEY = "your_api_key_here"Install using uvx:
uvx mcp-weatherapi
Usage with MCP Clients
Add this to your MCP configuration:
{
"mcpServers": {
"weatherapi": {
"command": "uvx",
"args": [
"--from", "git+https://github.com/bsparks/mcp-weatherapi.git",
"mcp-weatherapi"
],
"env": {
"WEATHERAPI_KEY": "your_api_key_here"
}
}
}
}Development
Clone the repository
Install dependencies:
pip install -e .Set your API key:
$env:WEATHERAPI_KEY = "your_api_key_here"Run the server:
python weather_server.py
Available Tools
get_current_weather(location: str)
Get current weather conditions including temperature, wind, humidity, air quality, etc.
Example: get_current_weather("London")
get_forecast(location: str, days: int = 3)
Get weather forecast for 1-10 days with daily summaries and hourly data.
Example: get_forecast("New York", 5)
search_location(query: str)
Search for locations by name (minimum 3 characters).
Example: search_location("Paris")
get_astronomy(location: str, date: Optional[str] = None)
Get astronomy information including sunrise, sunset, moonrise, moonset, and moon phases.
Example: get_astronomy("Tokyo", "2025-11-07")
get_air_quality(location: str)
Get air quality index and pollutant levels.
Example: get_air_quality("Beijing")
API Documentation
For more information about the WeatherAPI.com service, visit: https://www.weatherapi.com/docs/
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides access to comprehensive weather data including real-time conditions, forecasts, historical weather, marine data, astronomy information, and weather alerts through the Weatherapi.com API.Last updated11MIT
- Alicense-qualityDmaintenanceEnables AI assistants to fetch real-time weather data, forecasts up to 10 days, and compare weather conditions between cities using WeatherAPI.com with support for both Celsius and Fahrenheit units.Last updatedMIT
- Alicense-qualityCmaintenanceProvides weather data from WeatherAPI.com through MCP, enabling AI agents to query current conditions and forecasts via natural language.Last updated14MIT
- Flicense-qualityDmaintenanceProvides weather data, forecasts, air quality, and location services via OpenWeatherMap API integration.Last updated12
Related MCP Connectors
WeatherAPI.com MCP — wraps WeatherAPI.com (api.weatherapi.com)
Global weather API: forecasts, historical data, marine, ski, astronomy and timezone.
Pirate Weather forecast API (Dark Sky-compatible). Free key required.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bsparks/mcp-weatherapi'
If you have feedback or need assistance with the MCP directory API, please join our Discord server