Weather App
A Python-based weather application that provides weather information using the National Weather Service (NWS) API. This project is built with modern Python tools and supports both synchronous and asynchronous HTTP requests.
Features
- 🌤️ Real-time weather data from National Weather Service API
- 🚀 Built with FastMCP for efficient server communication
- 📡 HTTP client support with httpx
- 🐍 Modern Python 3.13+ compatibility
- 🔧 Easy setup and configuration
Prerequisites
- Python 3.13 or higher
- uv (recommended) or pip for package management
Installation
- Clone the repository:
- Install dependencies:Using uv (recommended):Using pip:
Project Structure
Dependencies
- httpx (>=0.28.1): Modern HTTP client for Python with async support
- mcp[cli] (>=1.9.4): FastMCP server framework for efficient communication
Usage
Basic Usage
Run the main application:
Weather API Integration
The project is set up to integrate with the National Weather Service API:
API Configuration
The application is configured to use the National Weather Service API:
- Base URL:
https://api.weather.gov
- User Agent:
weather-app/1.0
Development
Setting up the development environment
- Install development dependencies:
- Run the application:
Project Configuration
The project uses pyproject.toml
for configuration, which includes:
- Python version requirement (>=3.13)
- Project metadata
- Dependencies specification
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- National Weather Service for providing the weather API
- httpx for the excellent HTTP client library
- FastMCP for the server framework
- Official MCP Server from mcp documenation.
This server cannot be installed
A Python-based MCP server that provides real-time weather information using the National Weather Service API, supporting both synchronous and asynchronous HTTP requests.
Related MCP Servers
- -securityFlicense-qualityThis SSE-based MCP server allows users to connect and interact with National Weather Service APIs to retrieve weather alerts and forecasts.Last updated -90Python
- -securityFlicense-qualityThis is a Model Context Protocol (MCP) server that provides weather information using the National Weather Service (NWS) API. Features Get weather alerts for a US state Get weather forecast for a specific location (using latitude and longitude)Last updated -Python
- AsecurityAlicenseAqualityAn MCP server that provides real-time weather information including temperature, humidity, wind speed, and sunrise/sunset times through the OpenWeatherMap API.Last updated -1PythonMIT License
- -securityFlicense-qualityAn MCP server that provides weather information like forecasts and alerts for US locations using the National Weather Service API.Last updated -1JavaScript