MCP.so
登录

Weather MCP Server

@sirrupesh

关于 Weather MCP Server

暂无概览

基本信息

分类

媒体与设计

运行时

python

传输方式

stdio

发布者

sirrupesh

配置

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

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

工具

未检测到工具

工具是从 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

FAQ from Weather MCP Server

What data source does Weather MCP Server use?

It uses the National Weather Service (NWS) API.

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.

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.

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.

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 服务器