Weather MCP Server
by julienlucas
A MCP (Model Context Protocol) server that provides weather information via the National Weather Service (NWS) API. It allows retrieving weather alerts by state and forecasts by geographic coordinates.
Last updated: N/A
What is Weather MCP Server?
This is a MCP server that retrieves weather data from the National Weather Service (NWS) API. It provides functionalities to get weather alerts for a specific state and weather forecasts for a given location.
How to use Weather MCP Server?
To use the server, you need to clone the repository, install the dependencies using npm or yarn, and compile the project. The server exposes two main tools: get-alerts to retrieve weather alerts for a state (using the state code as a parameter) and get-forecast to retrieve weather forecasts for a location (using latitude and longitude as parameters).
Key features of Weather MCP Server
Retrieval of weather alerts by state
Weather forecasts by geographic coordinates
Support for GeoJSON format
TypeScript interface for better maintainability
Use cases of Weather MCP Server
Displaying weather alerts on a website or application
Providing weather forecasts to users based on their location
Integrating weather data into other systems
Building weather-related applications
Researching weather patterns
FAQ from Weather MCP Server
What is the required Node.js version?
What is the required Node.js version?
Node.js version 16 or higher is required.
Do I need to configure the server to connect to the NWS API?
Do I need to configure the server to connect to the NWS API?
No, the server is pre-configured to connect to the NWS API.
What parameters are required for the get-alerts tool?
What parameters are required for the get-alerts tool?
The get-alerts tool requires the state parameter, which is a two-letter state code (e.g., "CA", "NY").
What parameters are required for the get-forecast tool?
What parameters are required for the get-forecast tool?
The get-forecast tool requires the latitude and longitude parameters, which are numbers between -90 and 90 and -180 and 180, respectively.
How do I run the server in development mode?
How do I run the server in development mode?
You can run the server in development mode using the command npm run dev.