MCP server for checking the weather history and forecast
Project description
mcp-multi-weather
Description
MCP server for checking the weather history and forecast. This Model Context Protocol (MCP) server provides weather data functionality through a FastMCP-based service that integrates with weather providers to deliver historical weather information.
The server exposes a get_historical_weather tool that allows checking weather conditions for
specific cities on past dates, making it useful for applications that need historical weather data.
How to run it
First you need to create a valid API key with OpenWeather, and set it in your env file:
$ cp .env.example .env
$ vim .env # Modify the values
Now you can run the server locally:
$ uv run mcp-multi-weather
Or, you can install the package in your claude-desktop:
$ uv run fastmcp install claude-desktop src/mcp_multi_weather/cli/server.py --env-file .env --env PYTHONPATH=$PWD/src/
Development
You can run the tests using pytest:
$ uv run pytest
$ uv run pytest --ow-api-key=DUMMY # To run tests against the real OpenWeather API
You can also check the syntax and lint the code with pyright and ruff:
$ uv run pyright
$ uv run ruff check
$ uv run ruff format
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_multi_weather-0.2.1.tar.gz.
File metadata
- Download URL: mcp_multi_weather-0.2.1.tar.gz
- Upload date:
- Size: 78.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fa2620794897acb6687e18f1501a68fb23b513d2950f7cd7bbf1b8f91988a57
|
|
| MD5 |
18e6540d55df420fa2a23c80b0ef3169
|
|
| BLAKE2b-256 |
f9fd500a8bdd9f9cf388ef96965ce4379500b993e5c42afde0919a68d0e34901
|
File details
Details for the file mcp_multi_weather-0.2.1-py3-none-any.whl.
File metadata
- Download URL: mcp_multi_weather-0.2.1-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03cb894cf8faab4f24ee274b3d69793dba6d884d03c2380c63766864e7ec31c1
|
|
| MD5 |
b7df626328a932199379f3b401b3c99d
|
|
| BLAKE2b-256 |
2578e1ea7ac1f0c10692229fd288cd5e00708285d275a4c927a46af35dc9c8ac
|