Weather MCP Server

Provides AI assistants with tools to retrieve current weather and forecasts.

README.md

Weather MCP Server

An MCP (Model Context Protocol) server that provides weather tools for AI assistants, built with xmcp.

Features

Tools

  • get-current-weather - Get current weather conditions for any city (temperature, humidity, wind speed)
  • get-forecast - Get weather forecast for 1-7 upcoming days
  • compare-weather - Compare weather between two cities

Resources

  • weather://{city}/current - Current weather data as a resource

Prompts

  • weather-summary - Generate weather summary prompts

Installation

npm install

Usage

Development

npm run dev

Production

npm run build
npm run start

Inspect with MCP Inspector

npm run inspect

Configuration

Add to your MCP client configuration:

{
  "mcpServers": {
    "weather": {
      "command": "node",
      "args": ["/path/to/weather-mcp/dist/stdio.js"]
    }
  }
}

API

This server uses the free Open-Meteo API for weather data. No API key required.

Tech Stack

License

MIT

Tools 3

get-current-weatherGet current weather conditions for any city including temperature, humidity, and wind speed.
get-forecastGet weather forecast for 1-7 upcoming days.
compare-weatherCompare weather between two cities.

Try it

What is the current weather in Tokyo?
Can you give me a 5-day weather forecast for London?
Compare the weather in New York and Los Angeles today.
Is it going to be rainy in Paris over the next 3 days?

Frequently Asked Questions

What are the key features of Weather MCP Server?

Retrieves current weather conditions including temperature, humidity, and wind speed. Provides weather forecasts for up to 7 days. Enables direct comparison of weather data between two cities. Uses the free Open-Meteo API with no API key required. Includes specialized resources for weather data access.

What can I use Weather MCP Server for?

Planning travel itineraries based on upcoming weather forecasts. Comparing climate conditions between two potential vacation destinations. Quickly checking local weather conditions without leaving the AI chat interface. Integrating weather data into automated daily planning workflows.

How do I install Weather MCP Server?

Install Weather MCP Server by running: npm install

What MCP clients work with Weather MCP Server?

Weather MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Weather MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Open Conare