AI-Hydro
An open platform for autonomous hydrological and earth science research. Documentation · GitHub · PyPI · Quick Start · Tools Reference · YouTube · X / Twitter · Issues ▶ Watch the intro — What if an AI Agent Could Run Your Entire Hydrology Study?
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:
See the Plugin Guide to contribute a tool or knowledge plugin, or go directly to the Contributing Guide for the full contribution workflow. Built-in Tools
See the Tools Reference 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 the Installation Guide for detailed platform-specific instructions. Quick StartOnce installed, open the AI-Hydro chat panel and try:
Then continue naturally:
See the Quick Start guide for a complete walkthrough. Architecture
The extension acts as an MCP client: when the AI decides to call Full architecture details: Architecture Documentation
Contributing ToolsWe welcome contributions from the hydrology and geospatial sciences community. There are three practical contribution tracks, grouped into two implementation routes: 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 Paths B/C: Entry-Point & Knowledge Plugins — Extend the existing
Install, restart the server, and your tool is immediately available to every AI model. See Plugin Guide for complete walkthroughs of all three plugin paths, including the data contract, session integration, and testing. Priority Contribution AreasWe are especially interested in contributions that fit the current platform architecture cleanly and can be exposed as reliable, reproducible tools:
Knowledge-plugin contributions are also highly valuable for libraries such as See the Contributing Guide for the step-by-step tool and knowledge-plugin workflow, or open an issue if you want to discuss a contribution idea before implementing it. CitationIf you use AI-Hydro in your research, please cite:
For the Python MCP server package, 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. The Python backend builds on the broader scientific Python ecosystem — federal data APIs, geospatial libraries, and deep learning frameworks — all open source and properly cited in the tool provenance metadata. LicenseApache 2.0 © 2026 Mohammad Galib Support
|