MCP.so
登录

Weather MCP Server

@matrupriya2048

关于 Weather MCP Server

暂无概览

基本信息

分类

媒体与设计

许可证

MIT license

运行时

python

传输方式

stdio

发布者

matrupriya2048

配置

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

{
  "mcpServers": {
    "mcp-server-weather-matrupriya2048": {
      "command": "uv",
      "args": [
        "run",
        "weather.py"
      ]
    }
  }
}

工具

未检测到工具

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

概览

What is Weather MCP Server?

This MCP server fetches weather data from the National Weather Service API. It provides two tools for getting weather alerts and short-term forecasts for US locations.

How to use Weather MCP Server?

Install dependencies (Python 3.7+, httpx, mcp[cli], requests), then run the server with uv run weather.py. Configure your MCP client with the provided JSON snippet pointing to the script.

Key features of Weather MCP Server

  • Fetches active weather alerts by US state code.
  • Returns short-term forecasts by latitude/longitude.
  • Uses the National Weather Service API.
  • Simple two‑tool interface over standard I/O.
  • Lightweight Python implementation with httpx.

Use cases of Weather MCP Server

  • Get current weather alerts for a specific US state.
  • Retrieve a short‑term forecast for a given GPS coordinate.
  • Integrate real‑time NWS weather data into an MCP‑enabled assistant or tool.

FAQ from Weather MCP Server

What tools does Weather MCP Server provide?

It provides get_alerts(state) for active weather alerts and get_forecast(latitude, longitude) for short‑term forecasts.

What data source does Weather MCP Server use?

It fetches data from the National Weather Service API.

What are the dependencies for Weather MCP Server?

Python 3.7+, the httpx library, and the MCP framework with CLI support (mcp[cli]).

How do I run Weather MCP Server?

Run the server using the command uv run weather.py; it communicates via standard I/O.

How do I configure an MCP client for Weather MCP Server?

Add a JSON entry to your client’s configuration with the path to uv and the script directory, as shown in the README’s example.

评论

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