Weather MCP Server
A Model Context Protocol (MCP) server for weather data, built with FastAPI and the MCP framework. This server provides various weather-related tools that can be used by AI assistants to retrieve current weather conditions, forecasts, air quality data, and more.
Features
- Current weather conditions
- Weather forecasts (1-14 days)
- Historical weather data
- Weather alerts
- Air quality information
- Astronomy data (sunrise, sunset, moon phases)
- Location search
- Timezone information
- Sports events
Requirements
- Python 3.13+
- uv package manager
- WeatherAPI API key
Installation
Installing via Smithery
To install Weather Data Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @devilcoder01/weather-mcp-server --client claude
Manual Installation
-
Clone this repository:
git clone https://github.com/yourusername/Weather_mcp_server.git cd Weather_mcp_server -
Install dependencies using uv:
uv venv uv pip install -e . -
Create a
.envfile in the project root with your WeatherAPI key:WEATHER_API_KEY=your_api_key_here
Usage
Run the server:
python main.py
The server will start on http://localhost:8000 by default.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for weatherapi-mcp-server 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| weatherapi_mcp_server-0.1.0.tar.gz | 4.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| weatherapi_mcp_server-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.3 kB
Release files / weatherapi_mcp_server-0.1.0.tar.gz
| Download URL | weatherapi_mcp_server-0.1.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f8a48b4b551e9aa0628397c54fc505aa412119c9bb9918d0cbbaa232b5ccf96d
|
|
BLAKE2b-256 checksum How to use checksums |
b859247c55982793a405ab0e50bfada48c7063213749e641b35668525d6772df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.12
|
Release files / weatherapi_mcp_server-0.1.0-py3-none-any.whl
| Download URL | weatherapi_mcp_server-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5491192ba3411bf22573834fd9fdf178a96c3d120e7e36cc3d89eacf4c54226b
|
|
BLAKE2b-256 checksum How to use checksums |
53a17d4678471d6709f457ab748ffb98f6f433d4badfac15894fa34e5fe288b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.12
|
Security for weatherapi-mcp-server 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.