mcp-weather logo

MCP Weather

by adhikasp

2 forks
3 stars
Free

What is mcp-weather

mcp-weather is a straightforward server developed by adhikasp that provides accurate and timely hourly weather forecasts. It leverages the power of the AccuWeather API to deliver up-to-date weather information, making it a reliable tool for users who need to keep track of weather conditions. As part of the Model Context Protocol (MCP) framework, it enables AI systems to securely connect and retrieve weather data, ensuring seamless integration with AI-driven applications.

How to Use mcp-weather

To get started with mcp-weather, you'll need to set up the server by following these simple steps:

  1. Install Dependencies: Use uv to set up your environment and synchronize dependencies. Run the following commands in your terminal:

    uv venv
    uv sync
    
  2. Configure Your API Key: Create a .env file in your project directory and insert your AccuWeather API key. This key is essential for accessing weather data through the API:

    ACCUWEATHER_API_KEY=your_api_key_here
    
  3. Run the Server: Execute the server using the provided configuration. The setup involves specifying the command and arguments required to launch the server:

    {
        "mcpServers": {
            "weather": {
                "command": "uvx",
                "args": ["--from", "git+https://github.com/adhikasp/mcp-weather.git", "mcp-weather"],
                "env": {
                    "ACCUWEATHER_API_KEY": "your_api_key_here"
                }
            }
        }
    }
    

Once the server is running, you can access weather forecasts and current conditions through its API.

Key Features of mcp-weather

mcp-weather offers several noteworthy features that enhance its utility as a weather forecasting tool:

  • Current Weather Conditions: The server provides real-time weather data, including temperature, weather description, humidity, and precipitation status. This allows users to stay informed about the current weather in their location.

  • Hourly Weather Forecasts: Users can access detailed 12-hour forecasts that include:

    • Temperature: Displayed in Celsius, helping users plan their day based on expected temperature changes.
    • Weather Description: Provides a concise summary of expected weather conditions, such as "Partly sunny."
    • Precipitation Details: Offers insights into the probability, type, and intensity of precipitation, aiding users in preparing for potential rain or other weather events.

With its user-friendly setup and comprehensive weather data, mcp-weather is an indispensable tool for anyone needing reliable hourly weather updates. Whether you're planning your day or developing AI applications requiring real-time weather data, mcp-weather ensures you have the information you need at your fingertips.

How to Use

To use the mcp-weather, follow these steps:

  1. Visit https://github.com/adhikasp/mcp-weather
  2. Follow the setup instructions to create an account (if required)
  3. Connect the MCP server to your Claude Desktop application
  4. Start using mcp-weather capabilities within your Claude conversations

Additional Information

Created

January 1, 2025

Company

adhikasp

Start building your own MCP Server

Interested in creating your own MCP Server? Check out the official documentation and resources.

Learn More