Skip to main content

MCP Weather Server

A simple MCP server that provides hourly weather forecasts using the AccuWeather API.

Setup

  1. Install dependencies using uv:
uv venv
uv sync
  1. Create a .env file with your AccuWeather API key:
ACCUWEATHER_API_KEY=your_api_key_here

You can get an API key by registering at AccuWeather API.

Running the Server

{
    "mcpServers": {
        "weather": {
            "command": "uvx",
            "args": ["--from", "git+https://github.com/CreateModel/mcp-weather.git", "mcp-weather"],
            "env": {
                "ACCUWEATHER_API_KEY": "zpka_787d7e4f665b43b6b8b7b7b67ab2eb45_812b9cc3"
            }
        }
    }
}

API Usage

Get Hourly Weather Forecast

Response:

{
    "location": "Jakarta",
    "location_key": "208971",
    "country": "Indonesia",
    "current_conditions": {
        "temperature": {
            "value": 32.2,
            "unit": "C"
        },
        "weather_text": "Partly sunny",
        "relative_humidity": 75,
        "precipitation": false,
        "observation_time": "2024-01-01T12:00:00+07:00"
    },
    "hourly_forecast": [
        {
            "relative_time": "+1 hour",
            "temperature": {
                "value": 32.2,
                "unit": "C"
            },
            "weather_text": "Partly sunny",
            "precipitation_probability": 40,
            "precipitation_type": "Rain",
            "precipitation_intensity": "Light"
        }
    ]
}

The API provides:

  • Current weather conditions including temperature, weather description, humidity, and precipitation status
  • 12-hour forecast with hourly data including:
    • Relative time from current time
    • Temperature in Celsius
    • Weather description
    • Precipitation probability, type, and intensity

Metadata

Release files for mcp-weather-zk 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-weather-zk 0.1.1
File Size Uploaded Provenance
mcp_weather_zk-0.1.1.tar.gz 21.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-weather-zk 0.1.1
File Interpreter ABI Platform
mcp_weather_zk-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 23.7 kB

Release files / mcp_weather_zk-0.1.1.tar.gz

Download URL mcp_weather_zk-0.1.1.tar.gz
Size 21.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9ff7ded01a98eb2ecc115ca8c3ac56106b91dd299cd83848046363988234b85d
BLAKE2b-256 checksum
How to use checksums
d16c6d1e3ff6e3539744cdfa33b12facd27849f2a96efd9d6d34321fa3b06157
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.17

Release files / mcp_weather_zk-0.1.1-py3-none-any.whl

Download URL mcp_weather_zk-0.1.1-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc0555e4d2c821d7ada7208977115c4791d5cce68a64ada74b203cfa966e7b6e
BLAKE2b-256 checksum
How to use checksums
a1051d270b8a16da1cf36e708d332b5941bef3600fde8d503ee3dff37304c201
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.17

Security for mcp-weather-zk 0.1.1

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page