WeatherAPI MCP Server
WeatherAPI MCP 服务器
使用 WeatherAPI 提供当前天气和空气质量数据的 MCP 服务器。
特征
获取任何城市的最新天气数据
空气质量信息(可选)
天气资源的动态 URI 支持
轻松与 n8n、Claude Desktop App、Windsurf IDE、Cursor IDE 和其他 MCP 客户端集成
Related MCP server: MCP Weather Server
入门
获取 WeatherAPI 密钥
注册免费账户
登录后,转到您的仪表板
从“API 密钥”部分复制您的 API 密钥
MCP 配置
将以下配置添加到您的 Windsurf MCP 配置文件:
{
"mcpServers": {
"weather": {
"command": "npx",
"args": ["-y", "@swonixs/weatherapi-mcp"],
"env": {
"WEATHER_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}将YOUR_API_KEY_HERE替换为您从 WeatherAPI.com 获取的 API 密钥。
工具
获取天气
获取指定城市的当前天气数据。
参数:
location(字符串):城市名称
响应示例:
{
"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
}
}存储库
执照
麻省理工学院
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
- AlicenseNot gradedqualityDmaintenanceProvides real-time weather data, forecasts, and historical weather information from OpenWeatherMap API for Claude Desktop, enabling natural language queries about current conditions, forecasts, air quality, and weather alerts worldwide.11MIT
- AlicenseAqualityDmaintenanceProvides comprehensive weather information including current conditions, 7-day forecasts, and air quality data for any city worldwide using the Open-Meteo API. Features real-time weather data, hourly forecasts, sunrise/sunset times, and European Air Quality Index with human-readable descriptions.3171MIT
- AlicenseAqualityDmaintenanceIntegrates the OpenWeather API with Claude to provide real-time weather updates, 5-day forecasts, and air quality data. It enables users to query current conditions, pollution levels, and coordinate-based weather information directly within their conversations.4MIT
- AlicenseNot gradedqualityDmaintenanceProvides current weather and multi-day forecasts for any location worldwide, integrable with MCP clients like Claude.4Apache 2.0
Related MCP Connectors
Air Quality MCP — wraps air-quality-api.open-meteo.com (free, no auth)
WeatherAPI.com MCP — wraps WeatherAPI.com (api.weatherapi.com)
OpenWeather MCP — wraps the OpenWeatherMap API (openweathermap.org)
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/swonixs/weatherapi-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server