Skip to main content
Glama

MCP Weather Server

MCP Weather Server

The MCP Weather Server is a comprehensive Model Context Protocol (MCP) compliant server designed to provide AI agents with access to real-time and historical weather data. Built using Python and FastAPI, it integrates with multiple weather APIs to deliver accurate, up-to-date meteorological information.

Key Features

  • Model Context Protocol (MCP) compliance for seamless AI agent integration
  • Multiple API integration: OpenMeteo, Tomorrow.io, Google Weather (via SerpApi), OpenWeatherMap, and AccuWeather.
  • Comprehensive weather data: current conditions, forecasts, historical data, and alerts
  • Robust error handling and data validation
  • Configurable through environment variables
  • Extensive logging and monitoring capabilities
  • RESTful API design with JSON responses
  • Built-in testing and validation tools

Installation & Setup

Prerequisites

  • Python 3.8 or higher
  • pip package manager
  • Internet connection for API access
  • Optional: Tomorrow.io API key for premium features

Installation Steps

  1. Clone or download the project files
  2. Install dependencies: pip install -r requirements.txt
  3. Copy .env.example to .env
  4. Configure environment variables (optional Tomorrow.io API key)
  5. Run the server: python -m mcp_weather_server.server

Project Structure

mcp-weather-server/ ├── src/mcp_weather_server/ │ ├── __init__.py │ ├── server.py │ ├── tools/ │ │ ├── __init__.py │ │ ├── open_meteo.py │ │ └── tomorrow_io.py │ └── utils/ │ ├── __init__.py │ └── weather_utils.py ├── requirements.txt ├── pyproject.toml ├── .env.example ├── README.md ├── test_server.py └── examples.py
-
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.

Enables AI agents to access real-time and historical weather data through multiple weather APIs including OpenMeteo, Tomorrow.io, and OpenWeatherMap. Provides comprehensive meteorological information including current conditions, forecasts, historical data, and weather alerts.

  1. Key Features
    1. Installation & Setup
      1. Prerequisites
      2. Installation Steps
    2. Project Structure

      Related MCP Servers

      • -
        security
        F
        license
        -
        quality
        A standardized API server that enables AI agents and client applications to fetch current weather information for any location without directly interacting with external weather APIs.
        Last updated -
        Python
        • Apple
        • Linux
      • A
        security
        A
        license
        A
        quality
        A Model Context Protocol server that provides comprehensive weather data and forecasts through the OpenWeatherMap API, enabling AI assistants to access real-time weather information, forecasts, air quality data, and location services.
        Last updated -
        11
        9
        JavaScript
        MIT License
      • A
        security
        F
        license
        A
        quality
        Enables AI assistants to access real-time US weather forecasts and alerts through the National Weather Service API.
        Last updated -
        2
        3
        TypeScript
      • -
        security
        F
        license
        -
        quality
        Provides real-time weather information and forecasts, connecting AI assistants with live weather data for current conditions and multi-day forecasts for any location worldwide.
        Last updated -
        TypeScript
        • 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/digitalgreenorg/AgMCP'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server