MCP.so
登录

Weather Server (MCP)

@Kavinduprabasara

基本信息

分类

媒体与设计

传输方式

stdio

作者

Kavinduprabasara

关于 Weather Server

暂无概览

Weather Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-server-one": {
      "command": "uv",
      "args": [
        "run",
        "--with",
        "mcp[cli]",
        "mcp",
        "run",
        "server.py"
      ]
    }
  }
}

Weather Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Weather Server (MCP)?

Weather Server (MCP) is a minimal async Python server that provides weather alerts and forecasts for US locations using the National Weather Service (NWS) API, built with FastMCP.

How to use Weather Server (MCP)?

Clone the repository, install dependencies with pip install -e ., then run either uv run --with mcp[cli] mcp run server.py or python server.py. It exposes two tools: get_alerts(state) for active alerts by state code, and get_forecast(latitude, longitude) for the local forecast.

Key features of Weather Server (MCP)

  • Get weather alerts for any US state by two-letter code.
  • Get weather forecasts for any latitude/longitude in the US.
  • Simple, async, and easy to extend.

Use cases of Weather Server (MCP)

  • Monitor active weather alerts for a specific US state.
  • Retrieve a point forecast for a given coordinate.
  • Integrate NWS data into MCP‑compatible clients or workflows.

常见问题

1

What does Weather Server (MCP) do?

It provides two functions: one to return active weather alerts for a US state (e.g., `CA`, `NY`) and another to return the forecast for given latitude/longitude coordinates.

2

What are the runtime requirements?

Python 3.13+, along with the `httpx`, `mcp`, and FastMCP packages. `uv` is optional but recommended for running the server.

3

Where does the data come from?

All weather data is sourced from the National Weather Service (NWS) API. The server only works for US locations.

4

How do I run the server?

Use either `uv run --with mcp[cli] mcp run server.py` (with `uv` installed) or directly with `python server.py`.

5

What tools does the server expose?

Two tools: `get_alerts(state)` for active weather alerts and `get_forecast(latitude, longitude)` for the weather forecast.

评论

媒体与设计 分类下的更多 MCP 服务器