AI-Hydro
An open platform for AI-driven research automation in hydrology and geospatial sciences. GitHub · PyPI · Quick Start · Tools Reference · Issues The VisionHydrological research today involves a fragmented cycle: downloading data from scattered federal APIs, wrangling formats, writing processing scripts, calibrating models, and documenting provenance — often spending more time on plumbing than on science. As foundation models become increasingly capable at reasoning over scientific problems, there is an opportunity to fundamentally change how computational hydrology is done. AI-Hydro is a platform that bridges this gap. It puts foundation models (Claude, GPT-4, Gemini, and others) at the centre of the research workflow and gives them direct access to production-quality hydrological and geospatial tools — not as a chatbot that generates code you then debug, but as an intelligent agent that orchestrates real computations, remembers context across sessions, and adapts its approach when built-in tools fall short by writing standalone scripts leveraging the latest scientific Python ecosystem. The platform ships with a growing set of built-in tools — from USGS watershed delineation to differentiable HBV-light calibration — but the long-term vision is much larger: a community-driven ecosystem where researchers contribute domain-specific tools (flood frequency analysis, sediment transport, groundwater modelling, remote sensing workflows) that any AI agent can discover and compose into novel research pipelines. Through a simple plugin system, any Python package can register tools that become immediately available to every AI-Hydro user. This is what the future of computational hydrology and geospatial sciences looks like: researchers describe their intent, and intelligent agents assemble the right data, methods, and models to get it done. What AI-Hydro Can Do1. Automated Research via Built-in ToolsWhen a tool exists for the task, the AI calls it directly — no code generation, no copy-paste, no debugging. Results come back structured and cached.
The AI chains multiple tools in a single conversation — delineation, data retrieval, signature extraction, model calibration — building on each step's results. 2. Standalone Script Generation When Tools Don't ExistAI-Hydro isn't limited to its built-in tools. When the task requires something outside the current toolkit — a custom statistical analysis, a novel visualisation, a niche data format conversion — the AI writes and executes standalone Python scripts, leveraging the full scientific Python ecosystem (NumPy, SciPy, xarray, rasterio, PyTorch, and beyond).
This dual capability — structured tools for common tasks, freeform scripting for everything else — means AI-Hydro adapts to the full breadth of research needs. 3. Community-Extensible Tool EcosystemAI-Hydro is designed as a platform, not a closed product. Any researcher can package domain-specific tools and make them available to the entire community:
Install the package, restart the server, and those tools are immediately available to every AI model connected to AI-Hydro. We envision a growing ecosystem of community-contributed tools spanning:
Built-in Tools
See docs/tools-reference.md for full parameters, examples, and return schemas. Key CapabilitiesResearch Session MemoryEvery tool result is cached in a HydroSession (JSON per gauge). Expensive computations — watershed delineation (~10s), multi-year streamflow downloads (~5s) — are done once and reused across conversations, days, or weeks. The session tracks provenance so you can export a methods paragraph for your paper.
Differentiable HBV-LightA pure-PyTorch differentiable HBV-light is built in:
Model Context Protocol (MCP)All tools communicate via the Model Context Protocol — an open standard for connecting AI models to external capabilities. This means AI-Hydro tools work with any MCP-compatible client, not just the bundled extension. Works with Any AI Provider
InstallationPrerequisites
Step 1 — Install the Python Tools
This installs all hydrological tools and the Optional extras (install only what you need)
Step 2 — Install the VS Code ExtensionOption A — VS Code Marketplace Search for "AI-Hydro" in VS Code Extensions, or install from the Marketplace page. Option B — Install from
Option C — Build from source
Step 3 — Configure Your AI Provider
Step 4 — Verify
The extension auto-registers the MCP server on startup. If you need manual registration:
See docs/installation.md for detailed platform-specific instructions. Quick StartOnce installed, open the AI-Hydro chat panel and try:
Then continue naturally:
See docs/quickstart.md for a complete walkthrough. Architecture
The extension acts as an MCP client: when the AI decides to call Full architecture details: docs/architecture.md Documentation
Contributing ToolsWe welcome contributions from the hydrology and geospatial sciences community. There are two paths depending on your goals: Path A: Standalone MCP Server — Build an independent MCP server for a full sub-domain toolkit (flood frequency analysis, hydraulic modelling, etc.). Your server runs as its own process with its own dependencies and gets registered alongside the core Path B: Entry Point Plugin — Extend the existing
Install, restart the server, and your tool is immediately available to every AI model. See PLUGIN_GUIDE.md for complete walkthroughs of both paths, including the data contract, session integration, and testing. High-Priority Contribution AreasWe're actively looking for community tools in these domains:
See CONTRIBUTING.md for the step-by-step new tool guide and python/CONTRIBUTING.md for Python-specific development setup. CitationIf you use AI-Hydro in your research, please cite:
Built on Open SourceAI-Hydro is a domain-specific fork of Cline (Apache 2.0). We are grateful to the Cline team for building the agentic VS Code framework that made this possible. Python data access is powered by HyRiver (pygeohydro, pynhd, py3dep, pygridmet) and PyTorch. LicenseApache 2.0 © 2026 Mohammad Galib, Venkatesh Merwade Support
|