MCP.so
登录

Weather MCP Server

@sirrupesh

基本信息

分类

媒体与设计

传输方式

stdio

作者

sirrupesh

关于 Weather MCP Server

暂无概览

Weather MCP Server 配置

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

{
  "mcpServers": {
    "weather-mcp-server-sirrupesh": {
      "command": "uv",
      "args": [
        "venv"
      ]
    }
  }
}

Weather MCP Server 工具

工具列表暂未提供

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

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

概览

What is Weather MCP Server?

Weather MCP Server is a Model Context Protocol (MCP) server that provides weather information and alerts using the National Weather Service (NWS) API. It is built for developers who need to access real-time weather data through an MCP-compatible interface.

How to use Weather MCP Server?

Install Python 3.13+ and uv, then clone the repo, install dependencies with uv pip install . and run with uv run src/main.py. Alternatively, deploy with Docker using docker compose up -d; the server is then available at http://localhost:8001/sse. Two tools are provided: get_alerts(state) for US state alerts and get_forecast(latitude, longitude) for location forecasts.

Key features of Weather MCP Server

  • Get weather alerts for any US state
  • Get detailed weather forecasts using latitude/longitude
  • Easy-to-use MCP interface
  • Docker support for easy deployment
  • Built with Python’s MCP framework and httpx
  • Implements proper error handling and request timeouts

Use cases of Weather MCP Server

  • Retrieve active weather alerts for a specific US state
  • Obtain a detailed forecast for any location given its coordinates
  • Deploy the server containerized with Docker Compose
  • Integrate NWS weather data into MCP‑enabled applications

常见问题

1

What data source does Weather MCP Server use?

It uses the National Weather Service (NWS) API.

2

What are the prerequisites to run it?

Python 3.13 or higher is required for local development; Docker and Docker Compose are needed for containerized deployment.

3

What tools are available?

`get_alerts(state)` returns active alerts for a two‑letter US state code, and `get_forecast(latitude, longitude)` returns a detailed forecast for the given coordinates.

4

How do I deploy with Docker?

Run `docker compose up -d` in the project root. The server will be accessible at `http://localhost:8001/sse`.

5

Which port does the server use?

Inside the container the server runs on port 8000, which is mapped to port 8001 on the host machine.

评论

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