mcpField
W
Weatherapi Mcp

Weatherapi Mcp

Local
github.com/swonixsMaps & Travel2Updated 84w ago

About Weatherapi Mcp

WeatherAPI MCP Server provides current weather and optional air quality data using WeatherAPI. It is for MCP clients that need city-level weather information and supports dynamic weather resource URIs.

Key features

  1. 01Gets current weather for a city
  2. 02Provides optional air quality information
  3. 03Supports dynamic weather resource URIs
  4. 04Integrates with MCP clients

Use cases

  1. 01Checking current weather for a city
  2. 02Retrieving air quality alongside weather
  3. 03Using weather data in an MCP client

MCP support

It exposes current weather and optional air quality data through an MCP tool and supports dynamic URIs for weather resources. The README lists integrations with n8n, Claude Desktop App, Windsurf IDE, and Cursor IDE.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"weatherapi": {
"command": "npx",
"args": [
"-y",
"@swonixs/weatherapi-mcp"
],
"env": {
"WEATHER_API_KEY": "<WEATHER_API_KEY>"
}
}
}
}
Run commandnpx -y @swonixs/weatherapi-mcp
Environment variables to set
WEATHER_API_KEYSecret

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@swonixs/weatherapi-mcp

Tools

1

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
locationstringYesŞehir adı

Details

From the project README

WeatherAPI MCP Server

An MCP server that provides current weather and air quality data using WeatherAPI.

Features

  • Get current weather data for any city
  • Air quality information (optional)
  • Dynamic URI support for weather resources
  • Easy integration with n8n, Claude Desktop App, Windsurf IDE,Cursor IDE, and other MCP clients

Getting Started

Get WeatherAPI Key
  1. Go to WeatherAPI.com
  2. Sign up for a free account
  3. After signing in, go to your dashboard
  4. Copy your API key from the "API Keys" section
MCP Configuration

Add the following configuration to your Windsurf MCP config file:

{
  "mcpServers": {
    "weather": {
      "command": "npx",
      "args": ["-y", "@swonixs/weatherapi-mcp"],
      "env": {
        "WEATHER_API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}

Replace YOUR_API_KEY_HERE with the API key you obtained from WeatherAPI.com.

Tools
get_weather

Get current weather data for a specified city.

Parameters:

  • location (string): City name

Example response:

{
  "location": "London",
  "country": "United Kingdom",
  "temp_c": 15.0,
  "condition": "Partly cloudy",
  "humidity": 71,
  "wind_kph": 14.4,
  "air_quality": {
    "co": 230.3,
    "no2": 13.5,
    "o3": 52.9,
    "pm2_5": 8.5,
    "pm10": 12.1,
    "us-epa-index": 1
  }
}
Repository

WeatherAPI MCP Server

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.