Skip to main content
Glama

WeatherAPI MCP Server

by swonixs

WeatherAPI MCP 服务器

使用 WeatherAPI 提供当前天气和空气质量数据的 MCP 服务器。

特征

  • 获取任何城市的最新天气数据
  • 空气质量信息(可选)
  • 天气资源的动态 URI 支持
  • 轻松与 n8n、Claude Desktop App、Windsurf IDE、Cursor IDE 和其他 MCP 客户端集成

入门

获取 WeatherAPI 密钥

  1. 前往WeatherAPI.com
  2. 注册免费账户
  3. 登录后,转到您的仪表板
  4. 从“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 } }

存储库

WeatherAPI MCP 服务器

执照

麻省理工学院

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

使用 WeatherAPI 为任何城市提供当前天气和空气质量数据,轻松与 n8n 和 Claude Desktop App 等 MCP 客户端集成。

  1. 特征
    1. 入门
      1. 获取 WeatherAPI 密钥
      2. MCP 配置
      3. 工具
      4. 存储库
    2. 执照

      Related MCP Servers

      • -
        security
        A
        license
        -
        quality
        Provides 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.
        Last updated -
        Python
        MIT License
      • A
        security
        A
        license
        A
        quality
        An MCP server that provides real-time weather information including temperature, humidity, wind speed, and sunrise/sunset times through the OpenWeatherMap API.
        Last updated -
        1
        Python
        MIT License
        • Linux
        • Apple
      • -
        security
        F
        license
        -
        quality
        A simple MCP service that allows users to query weather conditions for cities worldwide through the Cursor AI assistant.
        Last updated -
        JavaScript
      • -
        security
        F
        license
        -
        quality
        An MCP server implementation that allows users to fetch and display weather information for specified cities, including temperature, humidity, wind speed, and weather descriptions.
        Last updated -
        Python
        • Linux
        • Apple

      View all related MCP servers

      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