MCP.so
登录

Weather Information Service MCP Server

@asifdotpy

基本信息

分类

媒体与设计

传输方式

stdio

作者

asifdotpy

关于 Weather Information Service MCP Server

暂无概览

Weather Information Service MCP Server 配置

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

{
  "mcpServers": {
    "mcp-weather-server-asifdotpy": {
      "command": "python",
      "args": [
        "weather.py"
      ]
    }
  }
}

Weather Information Service MCP Server 工具

工具列表暂未提供

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

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

概览

What is Weather Information Service?

It fetches weather alerts and forecasts from the National Weather Service (NWS) API, exposing them as tools via the FastMCP framework. It is intended for developers who need to integrate real-time US weather data into their applications.

How to use Weather Information Service?

Install dependencies (e.g., pip install httpx), then run python weather.py to start the FastMCP server. Use the provided tools get_alerts(state) for active alerts and get_forecast(latitude, longitude) for a 5-period forecast.

Key features of Weather Information Service

  • Fetches active weather alerts for any US state.
  • Retrieves a 5-period weather forecast for a location.
  • Uses structured JSON logging with correlation IDs.
  • Configurable log level and environment variables.
  • Containerizable via the included Dockerfile.

Use cases of Weather Information Service

  • Integrate live weather alerts into a monitoring dashboard.
  • Provide forecast data for travel or event planning.
  • Automate weather-aware notifications in smart home systems.

常见问题

1

What data source does the service use?

It uses the National Weather Service (NWS) API to fetch alerts and forecasts.

2

How do I run the service?

Run `python weather.py` directly. The service starts a FastMCP server that listens for requests (e.g., via stdio as configured in `smithery.yaml`).

3

What are the runtime dependencies?

Python 3.x and the `httpx` library. Other dependencies are listed in `pyproject.toml` and can be installed with `pip install .`.

4

How can I configure logging?

Set the `ENV` environment variable to `production` for JSON logs, or leave it unset for human‑readable output. Use `LOG_LEVEL`, `APP_VERSION`, and `HOSTNAME` to control verbosity, version, and hostname in logs.

5

What tools does the service expose?

Two tools: `get_alerts(state)` returns active alerts for a US state, and `get_forecast(latitude, longitude)` returns the next five forecast periods for a location.

评论

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