home / mcp / weather api167 mcp server

Weather Api167 MCP Server

Provides weather data endpoints by querying Weather Api167 with current, forecast, and other meteorological data.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "bach-ai-tools-weather_api167": {
      "command": "python",
      "args": [
        "server.py"
      ],
      "env": {
        "API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}

This MCP server provides access to the Weather Api167 API using stdio transport. It lets you fetch current weather, forecasts, country details, US weather alerts, zones, earthquakes, and air pollution data through a plug-in MCP client workflow.

How to use

You can run this MCP server in multiple ways depending on your preferred workflow. Choose the stdio method for local runs or a direct command that integrates with your MCP client. The available run options below start the server and expose the Weather Api167 endpoints through your MCP client.

How to install

# Prerequisites
- Python 3.8+ (for direct development runs)
- pip
- uvx (optional but recommended for quick start)

# Install from PyPI
pip install bach-weather_api167

# Or install from source (editable)
pip install -e .

Additional sections

Configuration and usage are designed to be practical and straightforward. You can run the server directly, or integrate it into your MCP environment using the provided commands. Environment variables are used to secure API access and control runtime behavior.

Available tools

forecast_weather

Fetch forecast weather data using coordinates, a place name, or a zip code and return multiple timestamps with optional units and language.

country_info

Retrieve detailed information for a specified country.

us_weather_alert_data

Obtain US weather alert data for a region or area with filtering options such as urgency, severity, and certainty.

us_zone_list

Get a list of weather zones for a given US state or all zones if no state is provided.

earthquake_data

Fetch near real-time earthquake information for a selected country and date range.

current_weather

Get current weather data using coordinates, a place name, or a zip code with optional units and language.

air_pollution_data

Retrieve air pollution data by coordinates or place with an optional data type.