Basic information
About WeatherAPI MCP Server
Access current weather and air quality with WeatherAPI. Get temperature, humidity, wind speed, and more. Your fast, reliable weather API.
WeatherAPI is a MCP server in the Analytics Data category listed in the AddMCP.net directory, published by swonixs. It exposes 1 tool, including get_weather. Supported transport: stdio. Runtime: JavaScript. License: MIT. The repository has 1 GitHub stars. Source code is hosted on github.com. Related topics: analytics-data, community.
Setup
{
"mcpServers": {
"weather": {
"command": "npx",
"args": [
"-y",
"@swonixs/weatherapi-mcp"
],
"env": {
"WEATHER_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
{
"mcpServers": {
"weather": {
"command": "npx",
"args": [
"-y",
"@swonixs/weatherapi-mcp"
],
"env": {
"WEATHER_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
{
"servers": {
"weather": {
"command": "npx",
"args": [
"-y",
"@swonixs/weatherapi-mcp"
],
"env": {
"WEATHER_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
WeatherAPI MCP Server config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"weather": {
"command": "npx",
"args": [
"-y",
"@swonixs/weatherapi-mcp"
],
"env": {
"WEATHER_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
WeatherAPI MCP Server tools
-
get_weather
location:string*
Overview
What is WeatherAPI?
An MCP server that provides current weather and air quality data using WeatherAPI. Designed for integration with MCP clients such as n8n, Claude Desktop App, Windsurf IDE, and Cursor IDE.
How to use WeatherAPI?
Obtain an API key from WeatherAPI.com, then configure your MCP client to run the server via npx with the command npx -y @swonixs/weatherapi-mcp and set the environment variable WEATHER_API_KEY. Use the get_weather tool to retrieve current weather for a specified city.
Key features of WeatherAPI
- Get current weather for any city
- Retrieve air quality information (optional)
- Dynamic URI support for weather resources
- Easy integration with multiple MCP clients
- Simple tool-based interaction via get_weather
Use cases of WeatherAPI
- Fetch real-time weather data in an assistant or automation workflow
- Include air quality readings in weather reports
- Provide weather context for location-based tasks
- Integrate weather information into n8n or IDE workflows
Frequently asked questions
1 What data does the get_weather tool return?
It returns current temperature, condition, humidity, wind speed, and optionally air quality indices (CO, NO2, O3, PM2.5, PM10, US‑EPA index).
2 What are the runtime requirements?
The server runs via npx, so Node.js and npm are required. No other dependencies are mentioned.
3 How do I get an API key?
Sign up for a free account at WeatherAPI.com, then copy your API key from the dashboard’s “API Keys” section.
4 Which MCP clients are supported?
The README lists n8n, Claude Desktop App, Windsurf IDE, and Cursor IDE.
5 Where does the data come from?
The server fetches data from the WeatherAPI external service. A valid API key is required to authenticate requests.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In