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 💡
@8enSmith/mcp-open-library
A Model Context Protocol (MCP) server for the Internet Archive's Open Library API that enables AI assistants to search for book and author information.
@modelcontextprotocol/server-everything
A test MCP server that exercises all the features of the MCP protocol, including prompts, tools, resources, and sampling.
youtube-video-summarizer-mcp
An MCP server that enables Claude to fetch and summarize YouTube videos by extracting titles, descriptions, and transcripts
edubase
Enables LLMs to interact with EduBase's comprehensive e-learning platform via the Model Context Protocol.
svelte-llm
Provides Svelte developer documentation via MCP (Model Context Protocol) endpoints for AI assistants
fulcra-context-mcp
An MCP server for accessing Fulcra Context data via the Fulcra API