weather-mcp-server

Integrations

  • Used to store and access environment variables like the WeatherAPI key

  • Used as the web framework to build the MCP server API endpoints

  • Used for version control of the codebase

天气 MCP 服务器

一个用于天气数据的模型上下文协议 (MCP) 服务器,使用 FastAPI 和 MCP 框架构建。该服务器提供各种与天气相关的工具,可供 AI 助手检索当前天气状况、天气预报、空气质量数据等。

特征

  • 当前天气状况
  • 天气预报(1-14天)
  • 历史气象数据
  • 天气警报
  • 空气质量信息
  • 天文学数据(日出、日落、月相)
  • 位置搜索
  • 时区信息
  • 体育赛事

要求

安装

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装天气数据服务器:

npx -y @smithery/cli install @devilcoder01/weather-mcp-server --client claude

手动安装

  1. 克隆此存储库:
    git clone https://github.com/yourusername/Weather_mcp_server.git cd Weather_mcp_server
  2. 使用 uv 安装依赖项:
    uv venv uv pip install -e .
  3. 使用您的 WeatherAPI 密钥在项目根目录中创建一个.env文件:
    WEATHER_API_KEY=your_api_key_here

用法

运行服务器:

python main.py

默认情况下,服务器将从http://localhost:8000启动。

执照

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。

-
security - not tested
A
license - permissive license
-
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.

天气-mcp-服务器

  1. Features
    1. Requirements
      1. Installation
        1. Installing via Smithery
        2. Manual Installation
      2. Usage
        1. License

          Related MCP Servers

          • -
            security
            F
            license
            -
            quality
            This SSE-based MCP server allows users to connect and interact with National Weather Service APIs to retrieve weather alerts and forecasts.
            Last updated -
            90
            Python
          • 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
            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
          • -
            security
            A
            license
            -
            quality
            An MCP server that connects to OpenWeatherMap's API to provide current weather data and multi-day forecasts for locations worldwide in different measurement units.
            Last updated -
            51
            TypeScript
            MIT License

          View all related MCP servers

          ID: g9jdavq1yu