npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

agribrain

v0.1.0

Published

Agronomic intelligence for AI agents — weather, ET0, GDD, spray windows, soil. Zero API keys. MCP server.

Readme

agribrain 🌱

Agronomic intelligence for AI agents — weather, ET₀, GDD, spray windows, soil. Zero API keys.

agribrain is an MCP (Model Context Protocol) server that gives AI assistants real agronomic decision support for any field location on Earth. No API keys, no sign-ups — all open data.

Built by a licensed agronomist with 19 years of field experience.


What it does

Ask your AI assistant questions like:

  • "When can I spray my vineyard this week?" → ranked spray windows with wind & rain checks
  • "Is my olive grove water-stressed after this heat wave?" → ET₀ vs rainfall deficit
  • "Has the grape berry moth reached the 2nd generation flight threshold?" → GDD vs biofix
  • "What is the soil type and pH at my farm?" → ISRIC SoilGrids profile with interpretation

Tools

| Tool | Description | |------|-------------| | agri_get_weather | Forecast + ET₀ (Hargreaves-Samani FAO-56) + spray windows | | agri_water_balance | Past water deficit: ET₀ vs rain + irrigation | | agri_compute_gdd | Growing degree days from biofix/planting date | | agri_get_soil | Soil pH, organic carbon, texture (0–30cm depth profile) | | agri_list_models | List all bundled GDD pest/crop models |

Bundled GDD models

  • lobesia_botrana — Grape berry moth
  • bactrocera_oleae — Olive fruit fly
  • ceratitis_capitata — Mediterranean fruit fly (medfly)
  • cydia_pomonella — Codling moth
  • grape_phenology — Grapevine staging (BBCH)
  • olive_phenology — Olive tree staging
  • tomato_phenology — Tomato staging
  • citrus_phenology — Citrus staging

Custom base/cap temperatures supported for any other crop or pest.

Data sources

| Data | Source | API key? | |------|--------|----------| | Weather forecast (10 days) | Open-Meteo | ❌ None | | Historical weather (GDD / water balance) | Open-Meteo Archive | ❌ None | | Soil profile | ISRIC SoilGrids v2 | ❌ None |


Quick start — Claude Desktop

  1. Install Node.js 18+ if you don't have it.

  2. Add to your Claude Desktop config (claude_desktop_config.json):

{
  "mcpServers": {
    "agribrain": {
      "command": "npx",
      "args": ["-y", "agribrain"]
    }
  }
}
  1. Restart Claude Desktop. Ask: "What is the weather forecast for my vineyard at lat 38.024, lon 22.494?"

Install globally

npm install -g agribrain

Or run without installing:

npx agribrain

Example prompts

Get the weather and spray windows for my olive grove at 37.9, 23.7 for the next 10 days.

Compute GDD for grape berry moth at lat 41.1, lon 24.5 since my trap biofix on 2026-04-15.

What is the water balance for my tomato field at 40.6, 22.9 over the last 14 days?
I irrigated 25mm on June 5th and 20mm on June 10th.

Show me the full soil profile for coordinates 38.0, 22.5.

Architecture

agribrain is a single TypeScript package with zero external API dependencies. All agronomic math (ET₀, GDD, spray window scoring) is implemented from published equations (FAO-56, EPPO/UC IPM) and runs locally.

src/
├── index.ts              # MCP server — tool registration
└── services/
    ├── weather.ts        # Open-Meteo client + ET₀ + spray windows
    ├── gdd.ts            # GDD engine + bundled pest/crop models
    ├── soil.ts           # ISRIC SoilGrids client + interpretation
    └── waterbalance.ts   # Water balance engine

Contributing

Pull requests welcome. Especially:

  • New GDD pest/crop models with published threshold data and citations
  • Additional crop Kc coefficients (FAO-56 or local calibrations)
  • New regions or data sources

See CONTRIBUTING.md.


Disclaimer

Spray window calculations and pest threshold alerts are guidance only. Always follow the product label, local regulations, and consult a licensed agronomist for commercial spray decisions. Soil data is from a 250m global grid — a local laboratory test always takes precedence.


License

MIT — see LICENSE.


agribrain powers the agronomic data layer of Ask Oli — AI agronomist for Mediterranean smallholders.