MCP Weather Server MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add -e "SSE_URL=${SSE_URL}" weather-server -- npx -y @modelcontextprotocol/server-sse
Required:SSE_URL
README.md

Provides real-time weather information and multi-day forecasts.

MCP Weather Server

A Model Context Protocol (MCP) server that provides weather information tools and resources.

Features

  • Current Weather: Get real-time weather conditions for any location
  • Weather Forecast: 5-day weather forecast with detailed information
  • Location Support: Major world cities, coordinates, and ZIP codes
  • Units: Support for both Celsius and Fahrenheit
  • Resources: Weather location data and API information
  • Prompts: Weather summary generation for activity planning

Tools

`get_current_weather`

Get current weather information for a location.

Parameters:

  • location (required): City name, coordinates, or ZIP code
  • units (optional): "celsius" or "fahrenheit" (default: celsius)

`get_weather_forecast`

Get multi-day weather forecast for a location.

Parameters:

  • location (required): City name, coordinates, or ZIP code
  • days (optional): Number of days (1-5, default: 3)

Resources

  • weather://locations: List of supported locations and formats
  • weather://api-info: Weather API and data source information

Prompts

  • weather_summary: Generate weather summary for activity planning

Usage

With Claude Desktop

Add to your Claude Desktop configuration:

{
  "mcpServers": {
    "weather": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-sse"],
      "env": {
        "SSE_URL": "https://your-server.fly.dev/mcp"
      }
    }
  }
}

Local Development

npm install
npm start

Docker Deployment

docker build -t mcp-weather-server .
docker run -p 8080:8080 mcp-weather-server

Health Check

The server includes a health check endpoint at /health that returns server status and version information.

License

MIT

Tools (2)

get_current_weatherGet current weather information for a location.
get_weather_forecastGet multi-day weather forecast for a location.

Environment Variables

SSE_URLrequiredThe URL of the weather server instance

Configuration

claude_desktop_config.json
{"mcpServers": {"weather": {"command": "npx", "args": ["-y", "@modelcontextprotocol/server-sse"], "env": {"SSE_URL": "https://your-server.fly.dev/mcp"}}}}

Try it

What is the current weather in Tokyo in Celsius?
Can you provide a 5-day weather forecast for New York?
Check the weather in London and tell me if I should plan an outdoor activity for the weekend.
Get the current weather for ZIP code 90210 in Fahrenheit.

Frequently Asked Questions

What are the key features of MCP Weather Server?

Real-time weather conditions for global locations. 5-day weather forecast with detailed information. Support for city names, coordinates, and ZIP codes. Configurable units in Celsius or Fahrenheit. Weather summary generation for activity planning.

What can I use MCP Weather Server for?

Planning outdoor events based on accurate weather forecasts. Integrating real-time weather data into AI-driven travel assistants. Automating weather-dependent task scheduling. Quickly checking local weather conditions without leaving the Claude interface.

How do I install MCP Weather Server?

Install MCP Weather Server by running: npm install && npm start

What MCP clients work with MCP Weather Server?

MCP Weather 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 MCP Weather Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare