HRFCO Service
HRFCOサービス
リアルタイム水文情報照会サービス(MCP Server)
Features
水位、降水量、ダム放流量などリアルタイム水門情報の照会
観測所別詳細情報の照会
時系列データのフィルタリングと統計
観測所の位置情報の照会
Related MCP server: Weather Server
Prerequisites
Python 3.8+
Installation
Install the package:
git clone https://github.com/kwenhwang/hrfco-service.git cd hrfco_service pip install -e .Install required dependencies:
pip install -r requirements.txtConfigure HRFCO API Key:
Windows:
# 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
構成
Update
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" } } } }Cursor Configuration:
Open Cursor Settings (Ctrl+,)
Navigate to Extensions > Python
Update Python Path to your Python installation:
C:\Users\{USERNAME}\AppData\Local\Programs\Python\Python313\python.exeSet PYTHONPATH in workspace settings:
{ "python.analysis.extraPaths": ["D:/python/mcp/hrfco_service"] }
Ensure
HRFCO_API_KEYis set as a system environment variable.
Usage Examples
This server cannot be deployed
Maintenance
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.
River levels & flood alerts: USGS gauges. $0.01/query. Register in-session — free testnet funds.
Access UK flood warnings, river levels, water quality, Met Office forecasts, and carbon data
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.56 npm1GPL 3.0
- AlicenseBqualityCmaintenanceProvides 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.1115 npmMIT