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

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

-
license - not tested
-
quality - not tested
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.

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/anslemdavid/WEATHER_API_MCP'

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