Weather API MCP

Weather API MCP

A zero-config MCP server that provides real-time weather data and 5-day forecasts for any location without requiring API keys, enabling natural language weather queries through Claude.

Category
Visit Server

README

🌦️ 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

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