Weather Info

Provides weather data access via an MCP server with single/multi-city queries and health checks.
  • python

0

GitHub Stars

python

Language

4 months ago

First Indexed

3 weeks ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "raffay0177-mcp-server-using-fast-mcp": {
      "command": "python",
      "args": [
        "<absolute-path-to-mcp_server.py>"
      ],
      "env": {
        "ENV": "{}"
      }
    }
  }
}

You can run a Python-based weather API and expose its functionality through an MCP server so you can orchestrate weather queries from an MCP client. This setup lets you query current weather for single or multiple cities and perform health checks from a consistent interface, making it easy to integrate into automation or CLI workflows.

How to use

You start the FastAPI weather server and then connect to it through an MCP client. The MCP server exposes tools that you can call to get weather data for one or more cities and to check the API health. Use a Gemini CLI or any MCP client that supports the standard MCP protocol to list available tools, call get_weather for a single city, call get_weather_batch for multiple cities, and run a health check.

How to install

# Prerequisites
- Python 3.8+
- pip

# Step 1: Install dependencies
pip install -r requirements.txt

# Step 2: Run the FastAPI weather server
python weather_api.py

# The API will be available at http://localhost:8000

Configuration and usage notes

The MCP server is configured to run locally and communicate with the FastAPI server via HTTP. You will configure the Gemini CLI to start the MCP server as a stdio process and expose the weather-tools to your MCP client.

// Example Gemini CLI configuration for a local MCP server
{
  "mcpServers": {
    "weather-info": {
      "command": "python",
      "args": ["<absolute-path-to-mcp_server.py>"],
      "env": {}
    }
  }
}

For Windows, use a full path example like:

{
  "mcpServers": {
    "weather-info": {
      "command": "python",
      "args": ["B:\\MCp derver using FAST MCP\\mcp_server.py"],
      "env": {}
    }
  }
}

How to use with Gemini CLI

Once the MCP server is running and Gemini CLI is configured, you can list tools and call them from the CLI to fetch weather data or perform health checks.

Available MCP Tools (described)

Note: The following tools are exposed by the MCP server to fetch weather data and check health.

get_weather

Get current weather information for a single city.

get_weather_batch

Get weather information for multiple cities at once.

check_api_health

Check if the weather API is running and healthy.

Available tools

get_weather

Fetches current weather information for a single city. Requires city and may include country.

get_weather_batch

Fetches current weather information for multiple cities provided as a comma-separated list.

check_api_health

Performs a health check on the MCP-integrated API to ensure it is running and responsive.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational