Weather MCP Server
This MCP server fetches weather data from the National Weather Service API. It provides two tools:
-
get_alerts(state: str)
Returns active weather alerts for a given US state (using its two-letter code). -
get_forecast(latitude: float, longitude: float)
Returns a short-term weather forecast for a specified location.
Requirements
- Python 3.7+
- httpx
- MCP Framework mcp[cli]
so install, run:
uv add mcp[cli] httpx requests
Usage
Run the server with:
uv run weather.py
The server uses standard I/O for communication.
MCP Client Configuration
configuration snippet for your MCP client (config.json):
{
"mcpServers": {
"weather": {
"command": "C:/path/to/your/uv",
"args": [
"--directory",
"C:/path/to/your/project",
"run",
"weather.py"
]
}
}
}
Recommend MCP Servers 💡
package-registry-mcp
A Model Context Protocol (MCP) server that enables AI assistants and agents to search and retrieve up-to-date information from NPM, Cargo, PyPI, NuGet, and Go package registries.
tandoor-mcp-server
An MCP server that enables interaction with Tandoor Recipe Manager for managing recipes, meal plans, and shopping lists.
verodat-mcp-server
A Model Context Protocol (MCP) server implementation for Verodat, enabling seamless integration of Verodat's data management capabilities with AI systems like Claude Desktop.
memcord
AI Memory Management for Claude Desktop, providing intelligent summarization, search, and organization of chat history as a self-hosted MCP server.
osp_marketing_tools
A Model Context Protocol (MCP) server that empowers LLMs to use some of Open Srategy Partners' core writing and product marketing techniques.
Escorza07/whatsapp-mcp
A Model Context Protocol (MCP) server for WhatsApp enabling message/contacts search and message sending.