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 💡
medRxiv-mcp-server
Enable AI assistants to search and access medRxiv papers through MCP interface
volatility-mcp
This repo hosts an MCP server for volatility3.x. Integrates Volatility 3's memory analysis with FastAPI and the Model Context Protocol (MCP).
optuna/optuna-mcp
An MCP server for Optuna, enabling LLM control and interactive optimization of hyperparameter search.
mindmap-mcp-server
mindmap, mcp server, artifact
scrapling-fetch-mcp
MCP server that helps AI assistants access text content from bot-protected websites using Scrapling
@r-huijts/oorlogsbronnen-mcp
MCP server for accessing Dutch World War II archives through the Oorlogsbronnen API. Provides structured access to historical records, photographs, and documents from 1940-1945 Netherlands.