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
-
Clone the repository:
git clone <repository-url> cd weather
-
Create and activate a virtual environment using uv:
uv venv .venv source .venv/bin/activate # On Unix/macOS # OR .venv\Scripts\activate # On Windows
-
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 implementationrequirements.txt
- Project dependenciespyproject.toml
- Project configurationuv.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:
- Always work in a virtual environment
- Use uv for package management and dependency resolution
- Update requirements.txt if adding new dependencies
- Follow Python best practices and coding standards
License
[Add your license information here]