Skip to main content
Glama

HRFCO Service

HRFCO服务

实时水文信息查询服务(MCP Server)

特征

  • 实时水文信息,如水位、降水量和水坝流量
  • 查看天文台的详细信息
  • 时间序列数据过滤与统计
  • 天文台位置信息查询

先决条件

安装

  1. 安装软件包:
    git clone https://github.com/kwenhwang/hrfco-service.git cd hrfco_service pip install -e .
  2. 安装所需的依赖项:
    pip install -r requirements.txt
  3. 配置 HRFCO API 密钥:视窗:
    # PowerShell [Environment]::SetEnvironmentVariable("HRFCO_API_KEY", "your-api-key", "User")
    # Command Prompt setx HRFCO_API_KEY "your-api-key"
    或者在控制面板>系统>高级系统设置>环境变量>用户变量中添加Linux/macOS:
    # Add to ~/.bashrc or ~/.zshrc export HRFCO_API_KEY="your-api-key" # Apply changes source ~/.bashrc # or source ~/.zshrc
    或者创建一个 .env 文件:
    echo "HRFCO_API_KEY=your-api-key" > .env

配置

  1. 更新claude_desktop_config.json
    { "mcpServers": { "hrfco": { "command": "C:\\Users\\{USERNAME}\\AppData\\Local\\Programs\\Python\\Python313\\python.exe", "args": ["-m", "hrfco_service"], "cwd": "D:\\python\\mcp\\hrfco_service", "env": { "PYTHONPATH": "D:\\python\\mcp\\hrfco_service" } } } }
  2. 光标配置:
    • 打开光标设置(Ctrl+,)
    • 导航至扩展 > Python
    • 将 Python 路径更新到您的 Python 安装:
      C:\Users\{USERNAME}\AppData\Local\Programs\Python\Python313\python.exe
    • 在工作区设置中设置 PYTHONPATH:
      { "python.analysis.extraPaths": ["D:/python/mcp/hrfco_service"] }
  3. 确保HRFCO_API_KEY设置为系统环境变量。

使用示例

-
security - not tested
A
license - permissive license
-
quality - not tested

实时水文信息检索服务,提供水位、降水、水坝流量数据和观测站位置信息。

  1. 特征
    1. 先决条件
      1. 安装
        1. 配置
          1. 使用示例

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              Fetches tide information for any location using latitude and longitude, providing detailed tide data including high/low tides and station information with automatic UTC time zone handling.
              Last updated -
              1
              12
              Python
              MIT License
              • Apple
            • A
              security
              A
              license
              A
              quality
              This server provides tools for interacting with the NOAA Tides and Currents API, enabling access to water level data, tide predictions, currents data, station information, and astronomical information like moon phases and sun times.
              Last updated -
              15
              3
              4
              TypeScript
              MIT License
            • -
              security
              F
              license
              -
              quality
              Provides access to real-time water data from the USGS Water Services API, allowing users to fetch instantaneous measurements like stream flow, gage height, temperature, and water quality parameters from thousands of monitoring stations across the US.
              Last updated -
              2
              Python
              • Apple
            • -
              security
              F
              license
              -
              quality
              Provides tools to fetch real-time weather data from the National Weather Service API, allowing users to retrieve weather alerts by state and detailed forecasts by coordinates.
              Last updated -
              42
              TypeScript

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/kwenhwang/hrfco-service'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server