Skip to main content
Glama
itachiuchihadev

weather-mcp-server

Weather MCP Server

A Model Context Protocol (MCP) server that provides weather forecasts and geocoding lookup using the free, keyless Open-Meteo APIs. This server enables LLMs (like Claude, Gemini, and GPT) to query real-time weather information and multi-day forecasts for any city or location in the world.

Features

  • Get Current Weather: Detailed current conditions including condition description, temperature, apparent temperature (feels like), humidity, wind speed, and precipitation details.

  • Multi-day Weather Forecast: Standard 1-7 day forecast with conditions, daily min/max temperatures, and total expected precipitation.

  • Keyless & Free: Powered by the open-source Open-Meteo APIs, requiring no API keys or subscription signups.

  • Fuzzy Geocoding: Automatically resolves location names (e.g., "Paris", "New York", "London") to geographic coordinates and timezones.


Related MCP server: open-meteo-mcp-server

Installation & Usage

You can run this server directly from npm using npx, or install it globally.

Method 1: Using npx (Recommended)

To run the server without installation:

npx -y weather-mcp-server

Method 2: Global Installation

Install the package globally:

npm install -g weather-mcp-server

Then run it:

weather-mcp-server

Configuration for MCP Clients

1. Claude Desktop

To add the Weather MCP Server to Claude Desktop, edit your claude_desktop_config.json file.

  • Windows path: %APPDATA%\Claude\claude_desktop_config.json

  • macOS path: ~/Library/Application Support/Claude/claude_desktop_config.json

Add the server to the mcpServers list:

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

2. Cursor

Cursor supports custom MCP servers directly from the GUI:

  1. Open Cursor Settings (Ctrl + , or Cmd + ,).

  2. Go to Features -> MCP.

  3. Click + Add New MCP Server.

  4. Fill in:

    • Name: Weather

    • Type: command

    • Command: npx -y weather-mcp-server

  5. Click Save.


Tool Documentation

This server exposes a single tool called get_weather.

get_weather

Gets the current weather and daily forecast for a given location.

Arguments:

  • location (string, required): The city, region, or location name (e.g. "Tokyo", "Paris", "Chicago, IL").

  • days (number, optional, default: 3): Number of forecast days to return (integer between 1 and 7).

Example Request:

{
  "name": "get_weather",
  "arguments": {
    "location": "Paris",
    "days": 3
  }
}

Development & Building

If you want to run the server locally from the source code, follow these steps:

  1. Clone or download the repository.

  2. Install dependencies:

    npm install
  3. Build the TypeScript code:

    npm run build
  4. Run locally:

    npm start

To link and test the local version in Claude Desktop, point the configuration directly to the local path:

{
  "mcpServers": {
    "weather-local": {
      "command": "node",
      "args": [
        "C:/path/to/your/project/dist/index.js"
      ]
    }
  }
}

License

ISC License. Feel free to use and adapt this server.

Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    A
    maintenance
    Provides comprehensive access to Open-Meteo APIs for weather forecasts, historical data, air quality, and marine conditions. It enables LLMs to query specialized meteorological models, perform geocoding, and access advanced climate or flood projections.
    17
    668
    64
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Provides comprehensive access to Open-Meteo weather APIs, including forecasts, historical data, air quality, marine weather, and geocoding, enabling LLMs to retrieve weather information and location data.
    17
    668
    1
    MIT
  • F
    license
    -
    quality
    C
    maintenance
    Provides weather data including current conditions, humidity, wind speed, sunrise/sunset, and 7-day forecast via Open-Meteo APIs, discoverable and callable by LangChain agents.

View all related MCP servers

Related MCP Connectors

  • Global weather via Open-Meteo: forecast, ERA5 archive, marine, air quality, geocoding, elevation.

  • US weather & geo for AI agents: forecasts, alerts, earthquakes, elevation, geocoding. No keys.

  • US weather, alerts, earthquakes and elevation for AI agents, from NWS/NOAA and USGS. No API keys.

View all MCP Connectors

Latest Blog Posts

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/itachiuchihadev/weather_mcp'

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