MCP Weather
Provides comprehensive weather information including current conditions, 7-day forecasts, and air quality data for any city worldwide using the Open-Meteo API. Features real-time weather data, hourly forecasts, sunrise/sunset times, and European Air
What is MCP Weather?
MCP Weather is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to provides comprehensive weather information including current conditions, 7-day forecasts, and air quality data for any city worldwide using the open-meteo api. features real-time weather data, hourly ...
Provides comprehensive weather information including current conditions, 7-day forecasts, and air quality data for any city worldwide using the Open-Meteo API. Features real-time weather data, hourly forecasts, sunrise/sunset times, and European Air
This server falls under the APIs category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- Provides comprehensive weather information including current
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx mcp-weather-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use MCP Weather
The MCP Weather Server is a Python-based MCP server that exposes real-time weather data from the US National Weather Service API through two clean tools: get_alerts for active weather warnings and get_forecast for location-based forecasts. It is implemented using the Server-Sent Events (SSE) transport pattern, making it suitable for cloud-native and multi-process deployments where stdio-based servers are impractical. AI developers and agent builders use it as both a functional weather utility and a reference implementation for SSE-based MCP architectures.
Prerequisites
- Python 3.10 or higher with uv or pip installed
- The mcp and httpx Python packages (installed automatically)
- An MCP client such as Claude Desktop or a compatible SSE-aware client
- No API key required — the server uses the free National Weather Service API (US locations only)
Install via Smithery (recommended)
Use the Smithery CLI to install the server and register it with Claude Desktop in one step.
npx -y @smithery/cli install @sidharthrajaram/mcp-sse --client claudeOr clone and run manually
Clone the repository and run the weather server directly with uv for local development or testing.
git clone https://github.com/sidharthrajaram/mcp-sse.git
cd mcp-sse
uv run weather.pyVerify the server is running
The server starts on 0.0.0.0:8080 by default. You can specify a different host and port via command-line arguments.
uv run weather.py --host 127.0.0.1 --port 9090Connect with the included SSE client
Use the bundled client.py to connect to the running SSE server and send natural language weather queries.
uv run client.py http://0.0.0.0:8080/sseSet ANTHROPIC_API_KEY for the client
The client uses Claude to interpret tool results. Set your Anthropic API key in the environment before running client.py.
export ANTHROPIC_API_KEY=sk-ant-...
uv run client.py http://0.0.0.0:8080/sseMCP Weather Examples
Client configuration
Claude Desktop config for the weather MCP server running locally over SSE.
{
"mcpServers": {
"mcp-weather": {
"command": "python",
"args": ["weather.py"],
"env": {
"ANTHROPIC_API_KEY": "sk-ant-..."
}
}
}
}Prompts to try
Ask the AI assistant weather questions that trigger get_alerts and get_forecast tools.
- "What are the current weather alerts for Sacramento, CA?"
- "What's the forecast for New York City this week?"
- "Are there any tornado warnings currently active in Oklahoma?"
- "Get the weather forecast for ZIP code 98101 in Seattle."
- "Are there any flood watches or warnings near Houston, Texas right now?"Troubleshooting MCP Weather
Server starts but get_forecast returns no data
The National Weather Service API only covers US locations. Provide US city names or coordinates. Non-US locations will not return forecast data from this API.
Client fails with 'connection refused' when connecting to the SSE endpoint
Confirm the weather.py server is running and listening on the expected host and port. Check with `curl http://0.0.0.0:8080/sse` — you should see an open SSE stream.
ANTHROPIC_API_KEY not found error in client.py
Export the key before running the client: `export ANTHROPIC_API_KEY=sk-ant-...`. Alternatively, create a .env file in the project root with ANTHROPIC_API_KEY=your-key and the client will load it automatically.
Frequently Asked Questions about MCP Weather
What is MCP Weather?
MCP Weather is a Model Context Protocol (MCP) server that provides comprehensive weather information including current conditions, 7-day forecasts, and air quality data for any city worldwide using the open-meteo api. features real-time weather data, hourly forecasts, sunrise/sunset times, and european air It connects AI assistants to external tools and data sources through a standardized interface.
How do I install MCP Weather?
Follow the installation instructions on the MCP Weather GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with MCP Weather?
MCP Weather works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is MCP Weather free to use?
Yes, MCP Weather is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
MCP Weather Alternatives — Similar APIs Servers
Looking for alternatives to MCP Weather? Here are other popular apis servers you can use with Claude, Cursor, and VS Code.
Kong
★ 43.4k🦍 The API and AI Gateway
API Mega List
★ 5.4kThis GitHub repo is a powerhouse collection of APIs you can start using immediately to build everything from simple automations to full-scale applications. One of the most valuable API lists on GitHub—period. 💪
Fetch
★ 5.4kFetch web content and convert to markdown for AI consumption
Fusio
★ 2.1kSelf-Hosted API Management for Builders
Korean Law
★ 1.8k국가법령정보MCP v4.0 | 법제처 41개 API → 17개 MCP 도구. 법령·판례·조례 검색 + LLM 환각 방지 인용검증 + 조문 영향 그래프(impact_map) + 시점 비교 자동 diff(time_travel) + 시민 5단계 실행 가이드(action_plan) | 41 Korean legal APIs → 17 MCP tools
RuleGo
★ 1.5k⛓️RuleGo is a lightweight, high-performance, embedded, next-generation component orchestration rule engine framework for Go.
Browse More APIs MCP Servers
Explore all apis servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up MCP Weather in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use MCP Weather?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.