Skip to main content
Glama
anslemdavid

Weather API MCP

by anslemdavid

🌦️ Weather API MCP

A zero-config MCP (Model Context Protocol) weather server for Claude AI. Get real-time weather data without API keys!

Features

✨ Zero Configuration - No API keys needed ✨ Multi-Location - Get weather for any location ✨ Forecast Support - 5-day weather forecasts ✨ Unit Conversion - Celsius and Fahrenheit support ✨ Tool Use Integration - Works seamlessly with Claude

Related MCP server: Simple Weather MCP

Installation

cd WEATHER_API_MCP
npm install

Usage

Development

npm run dev

Build

npm run build
npm start

API Functions

get_weather

Get current weather for a location.

Parameters:

  • location (string): Location name (e.g., 'London', 'New York')

  • unit (string, optional): 'celsius' or 'fahrenheit' (default: 'celsius')

Example:

getWeather('London', 'celsius')
// Returns: { location, temperature, condition, humidity, wind_speed, pressure }

get_forecast

Get weather forecast for the next 5 days.

Parameters:

  • location (string): Location name

  • days (number): Number of days to forecast (1-7)

Example:

getForecast('Tokyo', 3)
// Returns: { location, forecast: [{ date, high_temp, low_temp, condition, precipitation_chance }] }

Example Output

{
  "location": "London, UK",
  "temperature": 15,
  "condition": "Partly Cloudy",
  "humidity": 65,
  "wind_speed": 12,
  "pressure": 1013
}

Integration with Claude

Use this MCP with Claude by configuring it in your MCP settings. Claude can automatically call weather functions in natural language:

  • "What's the weather like in London?"

  • "Get me a 5-day forecast for Tokyo"

  • "Compare weather between Paris and New York"

Technical Stack

  • Language: TypeScript

  • Runtime: Node.js

  • Protocol: Model Context Protocol (MCP)

  • AI: Anthropic Claude API

License

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that provides real-time weather data, hourly forecasts, and daily summaries using the free Open-Meteo API with no API key required. It enables users to search for weather conditions by specific coordinates or city names across multiple measurement units.
    2
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A cross-platform MCP server that provides weather forecasts by coordinates, location name, or IP address without requiring API keys. It leverages Open Meteo and OpenStreetMap to deliver fast, single-query weather lookups.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A MCP server for querying real-time weather information for any city worldwide using the free Open-Meteo API, supporting CLI and integration with AI clients like Claude and Cursor.
    14 npm
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    A no-API-key-required MCP server that wraps Open-Meteo APIs to provide geocoding and weather forecast data, enabling city lookups and multi-day forecasts through tools, resources, and prompts.
    MIT