Global-Weather-MCP

Zachwitte21/Global-Weather-MCP

3.2

If you are the rightful owner of Global-Weather-MCP and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.

The Global Weather MCP Server provides AI assistants with real-time weather data worldwide through the Model Context Protocol, ensuring user privacy and delivering accurate forecasts.

Tools
3
Resources
0
Prompts
0

Global Weather MCP Server

The Global Weather MCP Server gives AI assistants real-time access to weather data worldwide through the Model Context Protocol. By providing weather information directly, it eliminates the need for web searches, keeping your conversations private while delivering accurate, up-to-date forecasts and conditions.

When AI assistants need weather data, they typically use web search, which means your location and queries are sent to search engines and tracked. I wanted a way to get accurate weather information in my AI applications without compromising user privacy. The Global Weather MCP Server solves this by providing direct access to weather APIs through MCP, keeping location data and queries private while still delivering real-time forecasts and conditions.

Features

This MCP server provides three tools for accessing weather data:

  • get_forecast: Get weather forecast for a location (up to 16 days)

    • Daily temperature (max/min)
    • Precipitation
    • Wind speed
    • Weather codes
  • get_current_weather: Get current weather conditions

    • Real-time temperature
    • Humidity
    • Precipitation
    • Wind speed and direction
    • Weather code
  • geocode: Convert location names to coordinates

    • Supports city names, addresses
    • Returns latitude, longitude, elevation
    • Provides up to 5 results

Installation

npm install
npm run build

Usage

With MCP Inspector

You can test this server using the MCP Inspector:

npx @modelcontextprotocol/inspector node build/index.js

With Claude Desktop

Add this to your Claude Desktop configuration:

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "open-meteo": {
      "command": "node",
      "args": ["/absolute/path/to/Open-Meteo-MCP-Server/build/index.js"]
    }
  }
}

Example Usage

Once connected, you can ask Claude:

  • "What's the weather forecast for London?"
  • "Get current weather for latitude 40.7128, longitude -74.0060"
  • "Find coordinates for Tokyo"

API Documentation

This server uses the following Open Meteo APIs:

Development

Build

npm run build

Watch mode

npm run watch

License

MIT