Skip to main content

Weather and Air quality utilities as an MCP server

Project description

Weather MCP Server

Weather forecast and air quality utilities using Open‑Meteo.

The server can be accessed locally over Stdio or remotely over Streamable HTTP.

Tools

The tools exposed by the MCP server include:

  • current_weather - Current temperature, wind speed and condition for a location.
  • forecast - Daily forecast for the next few days.
  • uv_index - UV index forecast and risk levels.
  • air_quality - Air quality index values for a location.

🛠️ Installation

Local Development (via uv)

From this directory:

uv sync --locked
uv tool install .

Docker Build

From the root of the repository:

docker build -f servers/weather/Dockerfile -t casual-mcp-server-weather .

▶️ Running the Server

➤ Stdio Mode

From Source

Install for local development and then configure:

{
  "mcpServers": {
    "weather": {
      "command": "uv",
      "args": ["tool", "run", "casual-mcp-server-weather"]
    }
  }
}

Using uvx

{
  "mcpServers": {
    "weather": {
      "command": "uvx",
      "args": ["casual-mcp-server-weather"]
    }
  }
}

Docker

{
  "mcpServers": {
    "weather": {
      "command": "docker",
      "args": ["run", "--rm", "casual-mcp-server-weather"]
    }
  }
}

➤ Streamable HTTP Mode

From Source

uv run casual-mcp-server-weather --transport streamable-http

With port/host overrides:

uv run casual-mcp-server-weather --transport streamable-http --port 9000 --host 0.0.0.0

Using uvx

uvx casual-mcp-server-weather --transport streamable-http

You can use the same port/host overrides as above

Docker

docker run -e MCP_TRANSPORT=streamable-http -e MCP_PORT=9000 -p 9000:9000 casual-mcp-server-weather
Configuration
{
  "mcpServers": {
    "weather": {
      "type": "streamable-http",
      "url": "http://localhost:9000"
    }
  }
}

📜 License

MIT – LICENSE


📦 PyPI

Published at: https://pypi.org/project/casual-mcp-server-weather/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

casual_mcp_server_weather-1.0.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

casual_mcp_server_weather-1.0.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file casual_mcp_server_weather-1.0.2.tar.gz.

File metadata

File hashes

Hashes for casual_mcp_server_weather-1.0.2.tar.gz
Algorithm Hash digest
SHA256 e1c120fcb213cbec59610b4784b4923e874c48058174677919168ef734ecb94c
MD5 06eb520213e7392bbe1ed66df7712968
BLAKE2b-256 c95d754469f96efdd3b396f278b9379661d726d2575a4c188a80c1d85868e841

See more details on using hashes here.

File details

Details for the file casual_mcp_server_weather-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for casual_mcp_server_weather-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2f6d01451bd86101a4b44e0d9be7a27a02ba8b0c08053481e972c1839df873a7
MD5 6010269c979b1b5e3df6da58b99cac9e
BLAKE2b-256 96685f9ac13a7d7ef26a3e86ca79b0ba387a22c7335d52c7e8c6085ab2cca46a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page