- Home
- MCP servers
- WeatherAPI
WeatherAPI
- javascript
1
GitHub Stars
javascript
Language
4 months ago
First Indexed
3 weeks ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"swonixs-weatherapi-mcp": {
"command": "npx",
"args": [
"-y",
"@swonixs/weatherapi-mcp"
],
"env": {
"WEATHER_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}You can query current weather data and air quality for any city through this WeatherAPI MCP Server. It connects to WeatherAPI to fetch live weather information and exposes an MCP endpoint you can call from your MCP clients to get structured weather data on demand.
How to use
Use your MCP client to call the get_weather tool with a city name to retrieve current weather data for that location. The response includes the city, country, temperature in Celsius, weather condition, humidity, wind speed, and optional air quality metrics.
How to install
Prerequisites: ensure you have Node.js and npm installed on your system.
- Create a Windsurf MCP config file (or the MCP config you use in your environment) and add the following configuration for the weather MCP server. Replace YOUR_API_KEY_HERE with your WeatherAPI key.
{
"mcpServers": {
"weather": {
"command": "npx",
"args": ["-y", "@swonixs/weatherapi-mcp"],
"env": {
"WEATHER_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
Additional notes
Tool availability is focused on the single get_weather tool which fetches current weather data for a given city. The example response includes location, country, temp_c, condition, humidity, wind_kph, and an air_quality object with common air quality metrics.
Available tools
get_weather
Fetches current weather data for a specified city. Returns location, country, temp_c, condition, humidity, wind_kph, and optional air_quality metrics.