weather-mcp-server

chinnareddy578/weather-mcp-server

3.1

If you are the rightful owner of weather-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This document provides a structured summary of the MCP Weather Server, a weather service implementation using the MCP server framework.

MCP Weather Server

This is a weather service implementation using the MCP (Microservice Control Protocol) server framework.

Prerequisites

  • Python 3.8 or higher
  • uv (Python package installer and build tool)
    # Install uv
    curl -LsSf https://astral.sh/uv/install.sh | sh
    

Setup Instructions

  1. Clone the repository:

    git clone <repository-url>
    cd weather
    
  2. Create and activate a virtual environment using uv:

    uv venv .venv
    source .venv/bin/activate  # On Unix/macOS
    # OR
    .venv\Scripts\activate  # On Windows
    
  3. Install dependencies using uv:

    uv pip install -r requirements.txt
    

Running the Server

To start the MCP weather server:

python weather.py

The server will start and listen for incoming requests.

Dependencies

The project uses the following main dependencies:

  • httpx >= 0.24.0 (for HTTP requests)
  • mcp-server >= 0.1.0 (MCP server framework)

Project Structure

  • weather.py - Main server implementation
  • requirements.txt - Project dependencies
  • pyproject.toml - Project configuration
  • uv.lock - uv lock file for dependency resolution
  • .gitignore - Git ignore rules
  • .venv/ - Virtual environment directory (not tracked in git)

Development

For development, make sure to:

  1. Always work in a virtual environment
  2. Use uv for package management and dependency resolution
  3. Update requirements.txt if adding new dependencies
  4. Follow Python best practices and coding standards

License

[Add your license information here]