mcp-weather-plus
Provides real-time weather forecasts, air quality data, and timezone information via Open-Meteo API, with no API key required.
README
Weather MCP Server
A Model Context Protocol (MCP) server that provides real-time weather forecasts, air quality data, and timezone information. Built with Python and integrated with the Open-Meteo API.
๐ Features
- Weather Forecasts: Get current weather, hourly forecasts, and detailed meteorological data.
- Air Quality: Access real-time air quality index (AQI), PM2.5, PM10, and pollutant concentrations.
- Time Utilities: Current time lookups and timezone conversions.
- Dual Transport: Supports both standard input/output (
stdio) and Streamable HTTP transports. - No API Key Required: Powered by Open-Meteo's open data APIs.
๐ ๏ธ Available Tools
Weather Tools
get_current_weather: Get current weather metrics (temperature, humidity, wind, etc.) for a city.get_weather_by_datetime_range: Get hourly weather trends for a specific date range.get_weather_details: Get comprehensive raw weather data in JSON format.
Air Quality Tools
get_air_quality: Get current air quality metrics and AQI assessment.get_air_quality_details: Get detailed pollutant data (PM2.5, PM10, Ozone, etc.) in JSON format.
Time Tools
get_current_datetime: Get the current date and time for a specific timezone (e.g., "Asia/Shanghai").get_timezone_info: Get detailed information about a timezone (offset, DST status).convert_time: Convert a date/time string from one timezone to another.
๐ Installation & Usage
Prerequisites
- Python 3.12+
- uv (recommended for dependency management)
Local Development
-
Clone the repository:
git clone <repository_url> cd weather-mcp -
Install dependencies:
uv sync -
Run the server (stdio mode - default):
uv run mcp-weather-plus -
Run the server (HTTP mode):
uv run mcp-weather-plus --mode streamable-http --port 8080
Docker
-
Build the image:
docker build -t mcp-weather-plus . -
Run container (stdio):
docker run -i mcp-weather-plus -
Run container (HTTP):
docker run -p 8080:8080 mcp-weather-plus --mode streamable-http --port 8080
๐งช Testing
Run the test suite using pytest:
uv run pytest
๐ Project Structure
weather-mcp/
โโโ src/mcp_weather_plus/ # Source code
โ โโโ services/ # Business logic and API integrations
โ โโโ tools/ # MCP Tool handlers
โ โโโ server.py # Server setup and transport logic
โ โโโ ...
โโโ tests/ # Unit tests
โโโ pyproject.toml # Project configuration and dependencies
โโโ Dockerfile # Docker build definition
๐ค Configuration for AI Agents
You can easily use this MCP server with various AI agents like Claude Desktop, VS Code (Cline), and Cursor.
The recommended way to run this server is using uvx, which downloads and runs the latest version without manual installation.
Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"weather": {
"command": "uvx",
"args": [
"mcp-weather-plus"
]
}
}
}
VS Code (Cline)
Add the following to your cline_mcp_settings.json:
{
"mcpServers": {
"weather": {
"command": "uvx",
"args": [
"mcp-weather-plus"
]
}
}
}
Cursor
- Go to Settings -> Features -> MCP.
- Click Add New MCP Server.
- Enter the following:
- Name:
weather - Type:
stdio - Command:
uvx - Args:
mcp-weather-plus
- Name:
Connecting via Streamable HTTP (Remote/Docker)
If you are running the server via Docker or on a remote machine using the streamable-http mode (e.g., uv run mcp-weather-plus --mode streamable-http --port 8080), you can connect to it using the SSE configuration.
Claude Desktop Config:
{
"mcpServers": {
"weather-remote": {
"url": "http://localhost:8080/sse"
}
}
}
๐ License
This project is licensed under the MIT License. Data provided by Open-Meteo under CC BY 4.0.
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.