MCP.so
登录

Weather MCP Server

@dsomel21

基本信息

分类

媒体与设计

传输方式

stdio

作者

dsomel21

关于 Weather MCP Server

Example of creating MCP server

Weather MCP Server 配置

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

{
  "mcpServers": {
    "weather": {
      "command": "uv",
      "args": [
        "--directory",
        "/ABSOLUTE/PATH/TO/PARENT/FOLDER/weather",
        "run",
        "weather.py"
      ]
    }
  }
}

Weather MCP Server 工具

工具列表暂未提供

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

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

概览

What is Weather MCP Server?

Weather MCP Server is a learning project exploring the Model Context Protocol (MCP). It integrates with the National Weather Service (NWS) API to provide weather alerts and forecasts. The server is designed for AI assistants that support MCP, such as Claude.

How to use Weather MCP Server?

Install dependencies (pip install mcp httpx or uv pip install mcp httpx) with Python 3.9+. Configure the server in your AI assistant (e.g., Claude Desktop or Cursor) using the provided JSON or command. Then ask the assistant to retrieve alerts or forecasts.

Key features of Weather MCP Server

  • get_alerts: Retrieves active weather alerts for a US state.
  • get_forecast: Gets weather forecast for a latitude/longitude location.

Use cases of Weather MCP Server

  • Ask an AI assistant for current weather alerts in a US state.
  • Request a weather forecast at specific geographic coordinates.

常见问题

1

What tools does Weather MCP Server provide?

Two tools: `get_alerts` for state‑based alerts and `get_forecast` for location‑based forecasts.

2

Which API does Weather MCP Server use?

It uses the free National Weather Service (NWS) API.

3

What are the required dependencies?

Python 3.9+, the `httpx` library, and the `mcp` library.

4

How do I configure Weather MCP Server in Claude Desktop?

Add a JSON block to your Claude Desktop configuration with the `uv` command pointing to the `weather.py` file.

5

How do I configure Weather MCP Server in Cursor?

Go to Cursor Settings → MCP Servers → Add MCP Server. Set Type to “Command” and the command to `uv run /ABSOLUTE/PATH/TO/weather.py`.

评论

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