Weather-Open-Meteo-MCP

Weather-Open-Meteo-MCP

Provides hourly and daily weather forecasts using the free Open-Meteo API without requiring an API key.

Category
Visit Server

README

MCP Weather Server

A Model Context Protocol (MCP) server that provides hourly and daily weather forecasts using the Open-Meteo API.

Acknowledgment

This project is a fork of the original MCP Weather Server by Tim Luka Horstmann. The original version used AccuWeather API, and this fork has been migrated to use Open-Meteo API to provide free weather data access without API keys.

NPM Package

Available on npm as weather-open-meteo-mcp.


Quick Start

No API key required! Open-Meteo provides free access to weather data for non-commercial use.

Simply run the MCP Weather server directly with:

npx -y weather-open-meteo-mcp

Or, for HTTP/REST access via supergateway:

npx -y supergateway --stdio "npx -y weather-open-meteo-mcp" \
  --port 4004 \
  --baseUrl http://127.0.0.1:4004 \
  --ssePath /messages \
  --messagePath /message \
  --cors "*"

MCP Server Config Example

For integration with Claude Desktop or other MCP-compatible clients, add this to your config (e.g. claude_desktop_config.json):

{
  "mcpServers": {
    "weather": {
      "command": "npx",
      "args": ["-y", "weather-open-meteo-mcp"]
    }
  }
}

Overview

This MCP server allows large language models (like Claude) to access real-time weather data. When integrated with an LLM, it enables the model to:

  • Fetch accurate, up-to-date weather forecasts
  • Provide hourly weather data for the next 12 hours
  • Access daily weather forecasts for up to 15 days
  • Display data in both metric (°C) and imperial (°F) units
  • View temperature, conditions, precipitation information, and other weather details

Available Tools

Hourly Weather Forecast

  • Tool name: weather-get_hourly
  • Provides hourly forecasts for the next 12 hours
  • Parameters:
    • location (required): City or location name
    • units (optional): "metric" (Celsius, default) or "imperial" (Fahrenheit)

Daily Weather Forecast

  • Tool name: weather-get_daily
  • Provides daily forecasts for up to 15 days
  • Parameters:
    • location (required): City or location name
    • days (optional): Number of forecast days (1, 5, 10, or 15; default is 5)
    • units (optional): "metric" (Celsius, default) or "imperial" (Fahrenheit)

Prerequisites

  • Node.js ≥18
  • pnpm (recommended) or npm

Setup

  1. Clone this repository:

    git clone https://github.com/adrianR84/Weather-Open-Meteo-MCP.git
    cd mcp-weather
    
  2. Install dependencies:

    Using pnpm (recommended):

    pnpm install
    

    Or using npm:

    npm install
    
  3. Build the project:

    npm run build
    

Usage with Claude Desktop

  1. Configure Claude Desktop to use this MCP server:

    • Open Claude Desktop
    • Go to Settings > Developer > Edit Config
    • Add the following to your claude_desktop_config.json:
    {
      "mcpServers": {
        "weather": {
          "command": "npx",
          "args": ["-y", "weather-open-meteo-mcp"]
        }
      }
    }
    
  2. Restart Claude Desktop

  3. In a new conversation, enable the MCP server by clicking the plug icon and selecting "weather"

  4. Now you can ask Claude for weather forecasts, such as:

    • "What's the hourly weather forecast for New York City?"
    • "Give me the 5-day forecast for London."
    • "What will the weather be like in Tokyo this week in Fahrenheit?"
    • "Will it rain in San Francisco tomorrow?"

Development

  • Install dev dependencies: pnpm install
  • Lint your code: pnpm run lint
  • Build: pnpm run build
  • Run tests: pnpm test
  • Start in dev mode: pnpm run dev

(You can also use npm instead of pnpm if preferred)

Contributing

Contributions are welcome! Please feel free to submit a Pull Request to adrianR84/Weather-Open-Meteo-MCP.

Future Enhancements

We're always looking to improve the MCP Weather Server. Here are some features we're considering for future releases:

  • Extended Hourly Forecasts: Beyond 12 hours, e.g., 24 or 48 hours.
  • Weather Alerts: Integration with severe weather alerts.
  • Location Autocomplete: Enhanced location searching with autocomplete suggestions.
  • Historical Weather Data: Access to past weather conditions.

If you have ideas for other features, feel free to open an issue!

License

This project is licensed under the MIT License - see the LICENSE file for details.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured