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 💡
deepseek-thinker-mcp
MCP provider that connects Deepseek reasoning content to MCP-enabled AI Clients, supporting Deepseek API and local Ollama server access.
mcp-neovim-server
An MCP server that allows Claude Desktop (or any MCP client) to control Neovim, leveraging Vim's native commands for AI text assistance.
biothings-mcp
MCP (Model Context Protocol) server for biothings
cursor-talk-to-figma-mcp
MCP integration between Cursor AI and Figma for reading and modifying designs programmatically
sneharao/wheather-mcp-server
A custom weather MCP server that provides weather alerts and information through Claude Desktop by location prompts.
@arabold/docs-mcp-server
A MCP server for fetching, processing, indexing, and searching documentation for various software libraries and packages.