Weather MCP Server
by dsomel21
This project implements a simple weather service that provides weather alerts and forecasts using the National Weather Service (NWS) API. It serves as a learning project exploring the Model Context Protocol (MCP) concept.
Last updated: N/A
What is Weather MCP Server?
This is an MCP server that provides weather alerts and forecasts using the National Weather Service (NWS) API. It allows AI assistants like Claude to access real-time weather information.
How to use Weather MCP Server?
- Clone the repository. 2. Install the dependencies (mcp, httpx). 3. Configure the MCP server in your AI assistant (Claude or Cursor) using the provided configurations, adjusting the path to the server as needed. 4. Ask the AI assistant to retrieve weather alerts or forecasts using the example prompts.
Key features of Weather MCP Server
Retrieve active weather alerts for a US state (get_alerts)
Get weather forecast for a specific location using latitude and longitude (get_forecast)
Integration with National Weather Service (NWS) API
MCP compliant server
Use cases of Weather MCP Server
Getting weather alerts for a specific location
Retrieving weather forecasts for a specific location
Integrating weather information into AI assistant workflows
Demonstrating MCP server implementation
FAQ from Weather MCP Server
What is MCP?
What is MCP?
MCP stands for Model Context Protocol. It's a protocol that allows AI assistants to access external tools and data sources.
What is the NWS API?
What is the NWS API?
The National Weather Service (NWS) API provides access to weather data, forecasts, and alerts.
What AI assistants are compatible with this server?
What AI assistants are compatible with this server?
This server is designed to be compatible with any MCP-compatible assistant, such as Claude and Cursor.
What Python version is required?
What Python version is required?
Python 3.9 or higher is required.
How do I find the absolute path to the server?
How do I find the absolute path to the server?
The absolute path is the full path to the 'weather' directory on your system where the weather.py file is located. You can use the 'pwd' command in your terminal while in the directory to find it.