
weather mcp server
A weather MCP server that provides weather alerts and forecasts using the National Weather Service API
Repository Info
About This Server
A weather MCP server that provides weather alerts and forecasts using the National Weather Service API
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
Weather CLI App
A simple application to fetch weather alerts and forecasts from the National Weather Service API using Model Context Protocol (MCP).
Features
- Get active weather alerts for any US state
- Get weather forecasts for any location by coordinates
- MCP server implementation for integration with AI assistants
Installation
- Ensure you have Python 3.11 or higher installed
- Clone this repository
- Install the package with pip:
# Install with pip
pip install -e .
# Or if you have pip3 specifically
pip3 install -e .
Note: This project uses the MCP framework and does NOT require the
uvtool specifically, despite what the lock file might suggest.
Usage as an MCP Server
Once installed, the weather MCP server can be accessed by AI assistants that support the Model Context Protocol. The server provides two main tools:
get_alerts- Get weather alerts for a US state (using two-letter state code)get_forecast- Get weather forecast for specific coordinates (latitude, longitude)
Development
This project uses:
- httpx for asynchronous HTTP requests
- MCP server tools for structured data handling
Troubleshooting
If you see errors like spawn uv ENOENT in the logs:
- Make sure you've installed the package with pip, not uv
- Check that your Python environment is properly configured
- Try running the server manually to see any additional stderr output:
python -m weather
API Information
This application uses the National Weather Service (NWS) API to retrieve weather data. No API key is required, but please be respectful of their rate limits.
Quick Start
Clone the repository
git clone https://github.com/aryankarn/weather-mcp-serverInstall dependencies
cd weather-mcp-server
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.