HRFCO Service
HRFCO服务
实时水文信息查询服务(MCP Server)
特征
实时水文信息,如水位、降水量和水坝流量
查看天文台的详细信息
时间序列数据过滤与统计
天文台位置信息查询
Related MCP server: Weather Server
先决条件
Python 3.8+
安装
安装软件包:
git clone https://github.com/kwenhwang/hrfco-service.git cd hrfco_service pip install -e .安装所需的依赖项:
pip install -r requirements.txt配置 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
配置
更新
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" } } } }光标配置:
打开光标设置(Ctrl+,)
导航至扩展 > Python
将 Python 路径更新到您的 Python 安装:
C:\Users\{USERNAME}\AppData\Local\Programs\Python\Python313\python.exe在工作区设置中设置 PYTHONPATH:
{ "python.analysis.extraPaths": ["D:/python/mcp/hrfco_service"] }
确保
HRFCO_API_KEY设置为系统环境变量。
使用示例
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Real-time water levels and flow rates from USGS stream gauges
Query real-time and historical USGS water data from ~8,000 stream gages and groundwater wells.
Real-time river and lake levels from Water Survey of Canada gauges near any postal code.
Live GloFAS river discharge forecasts, historical flow, flood risk, and basin stats.
51
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides 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.3-
- FlicenseNot gradedqualityNot gradedmaintenanceProvides global weather query services with features including real-time weather, weather forecasting, and multi-city weather comparison.-
- AlicenseAqualityDmaintenanceProvides access to real-time and historical water conditions of the Aare river in Switzerland, including water temperature, flow rates, swimming recommendations, and data from multiple monitoring locations along the river.510 npm1GPL 3.0
- AlicenseBqualityDmaintenanceProvides access to UK Environment Agency's real-time flood monitoring data, enabling users to check flood warnings, monitor water levels and flow rates, and access historical measurements from monitoring stations across the UK.118 npmMIT