Basic information
About mcp-weather Server
一個給 AI Agent 使用的 MCP Server 範例,用來取得美國各州的天氣預報與警示資訊
mcp-weather is a MCP server in the Media & Design category listed in the AddMCP.net directory, published by erhwenkuo. Supported transport: stdio. Runtime: python. License: MIT. Source code is hosted on github.com.
Setup
{
"mcpServers": {
"mcp-weather-erhwenkuo": {
"command": "uv",
"args": [
"run",
"server"
]
}
}
}
{
"mcpServers": {
"mcp-weather-erhwenkuo": {
"command": "uv",
"args": [
"run",
"server"
]
}
}
}
{
"servers": {
"mcp-weather-erhwenkuo": {
"command": "uv",
"args": [
"run",
"server"
]
}
}
}
mcp-weather config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-weather-erhwenkuo": {
"command": "uv",
"args": [
"run",
"server"
]
}
}
}
mcp-weather tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is mcp-weather?
mcp-weather is an MCP server example for AI agents to retrieve US weather forecasts and alerts. It integrates with the National Weather Service API and uses SSE transport for remote, decoupled access.
How to use mcp-weather?
Clone the repository, install dependencies with uv sync, then start the server with uv run server or via Docker. Connect using an MCP client (e.g., MCP Inspector) via SSE URL http://<host>:<port>/sse. The server exposes two tools: get_alerts and get_forecast. Host and port can be configured with command-line arguments.
Key features of mcp-weather
- Provides US weather forecasts and alerts
- SSE-based for remote, decoupled access
- Two tools: get_alerts and get_forecast
- Supports uv and Docker deployment
- Configurable host and port via command line
Use cases of mcp-weather
- AI agent fetching weather alerts for a US state
- AI agent retrieving forecast for specific coordinates
- Demonstrating SSE-based MCP server-client interaction
Frequently asked questions
1 What transport does mcp-weather use?
SSE (Server-Sent Events), allowing the server to run as a remote process separate from the client.
2 What tools does mcp-weather provide?
Two tools: get_alerts for alerts by US state, and get_forecast for forecast by latitude/longitude.
3 How do I run mcp-weather?
Run with uv run server after installing dependencies, or build and run as a Docker container.
4 What are the system requirements?
Requires Python and uv runtime, or Docker. The examples use Ubuntu 24.04.
5 Is mcp-weather limited to US weather?
Yes, the tools are for US states and coordinates, using the National Weather Service API.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In