Weather MCP Server
Provides weather forecasts and alerts for US locations using the National Weather Service API. Enables users to retrieve active alerts by state and detailed forecasts by coordinates via MCP tools.
README
Weather MCP Server
A Model Context Protocol (MCP) server that provides weather forecasts and alerts for US locations using the National Weather Service (NWS) API.
Features
- Weather Alerts — Retrieve active NWS weather alerts for any US state
- Weather Forecast — Get a detailed forecast for any US location by latitude/longitude
- Weather Briefing Prompt — A pre-built prompt that combines alerts and forecast into a comprehensive briefing
Prerequisites
- Node.js v18 or later
- An MCP-compatible client (e.g. Claude Desktop)
Note: The NWS API only supports locations within the United States.
Installation
npm install
npm run build
Usage
Run the server directly via stdio (the standard MCP transport):
node build/index.js
Or use the weather bin alias after a global/local install:
npx weather
Integrating with Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"weather": {
"command": "node",
"args": ["/absolute/path/to/mcp-poc/build/index.js"]
}
}
}
Tools
get_alerts
Retrieves active weather alerts for a US state.
| Parameter | Type | Description |
|---|---|---|
state |
string | Two-letter state code (e.g. CA, NY) |
get_forecast
Retrieves the weather forecast for a specific US location.
| Parameter | Type | Description |
|---|---|---|
latitude |
number | Latitude of the location (-90–90) |
longitude |
number | Longitude of the location (-180–180) |
Prompts
weather-briefing
Generates a comprehensive weather briefing for a US state.
| Argument | Type | Description |
|---|---|---|
state |
string | Two-letter US state code (e.g. CA, NY) |
latitude |
string | Latitude of a location within the state for the forecast |
longitude |
string | Longitude of a location within the state for the forecast |
Development
# Build TypeScript
npm run build
# Source files
src/index.ts # MCP server, tools, and prompts
src/helpers.ts # NWS API client and shared types
License
ISC
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.