Dairy Ration Lab
Use the lab from an AI app
Last changed 28 October 2026
Claude, or any app that takes an MCP server, can balance rations on the farms saved in your Dairy Ration Lab account. The lab's page shows the same farms, so a change made in either is in both. The cow model is NASEM's Nutrient Requirements of Dairy Cattle, 8th edition (2021). Amounts are lb of dry matter per cow per day; prices $ per ton as fed.
Connect
- Claude (web, desktop, phone): in Claude's connector directory, find Dairy Ration Lab and Connect. Or add a
custom connector with the address
https://lab.dairydatascience.com/mcp. - Claude Code:
claude mcp add --transport http ration-lab https://lab.dairydatascience.com/mcp, then/mcpand Authenticate. - Any other app: add
https://lab.dairydatascience.com/mcpas a remote MCP server.
Your browser opens to sign in with a free agAI account (Google or email), then asks you to Allow. The first time, open the lab and sign in there once too, so your account has a place for farms.
Try it
- Open the example farm in the Dairy Ration Lab and show me the High recipe.
- Balance the High recipe at least cost. What's holding the cost up?
- Which protein feeds would be worth buying for High at their prices?
- Set corn silage to $58 a ton, balance High for most profit, and make it the ration fed now.
- Make the load sheet for the High recipe for a 24,000 lb mixer.
- Make a recipe called High 60, a copy of High, for 60 lb DM intake, and balance it.
What it can do
- Read: your farms and each one's overview, their recipes, feeds and limits, a ration against its limits, the feed library, market, milk and weather prices, load sheets, and a file (lab tests, prices, a feed list, AMTS targets, recipes, NDS's sheets) read against a farm. Make a file: the typing sheet, the ration sheet, recipes, or the report.
- Work out, saving nothing: least cost, most profit, why a ration is as it is, the prices each feed stays in at, a safety margin, the whole pen, each cow, pen groups to try, and feeds worth buying.
- Change, after you agree: make, rename, re-stage or remove a recipe; set its cows, intake and milk price, its limits and feed groups, and its feeds (on, off, swapped, held, bounded); make a ration the one fed now; change a feed (price, DM, stock, a new pile, a lab test), add or remove one; make a premix; change pens and bring in a cow list; change the farm's settings; go back to an older version; bring a file in; save or copy a farm. Each change is saved as the farm's next version; the old ones stay. If someone saved the farm meanwhile, nothing is saved and the app is told to open it again.
The tools
Each tool by the name an app sees, its title, and what it does.
Start
open_example_farm· Open the example farm
Opens a sample farm (six pens, six recipes) in your account, made the first time.open_cow_list· Start a farm from a DairyComp list
Starts a farm from a DairyComp cow list (CSV), each pen on the recipe it looks like.copy_farm· Copy a farm
Saves a copy of a farm in your account under a new name.
Read
list_farms· List your farms
Lists the farms in your Ration Lab account.open_farm· Open a farm
A farm's recipes, pens, feeds and version.farm_overview· The farm at a glance
Each recipe's least cost, share of the pen fed and income over feed cost.list_recipes· List a farm's recipes
A farm's recipes and the pens fed each.read_recipe· Read a recipe
A recipe's feeds, amounts, limits and cows.list_limits· A recipe's limits
Every nutrient limit of a recipe: its stage's and its own.feed_bank· A farm's feeds
The farm's feeds, prices and analyses, as CSV.search_feeds· Search the feed library
Searches NASEM's feed library.list_versions· A farm's saved versions
A farm's saved versions: when and by whom.load_sheet· Load sheet for a recipe
A recipe's mixer load sheet.read_file· Read a file for a farm
Reads lab tests, prices, a feed list, AMTS targets, recipes or NDS sheets against a farm, bringing nothing in.export_file· A farm's file
Makes the recipes CSV, typing sheet, ration sheet or ration report PDF.market_prices· Feed prices in an area
USDA Market News feed prices for an area, matched to NASEM feeds.milk_prices· USDA milk prices
USDA's announced milk prices for a Federal Milk Marketing Order.weather· Heat at a ZIP code
Each day's heat (THI) at a ZIP code's nearest weather station.
Work out, saving nothing
evaluate· Evaluate a ration
A ration's cost and nutrients against its recipe's limits.balance· Balance a recipe
Balances a recipe for least cost, with a safety margin, or for the whole pen.optimize· Balance for most profit
Balances a recipe for the most income over feed cost.formulate· Formulate a recipe
Balances a recipe any of those ways.why· Why a ration is what it is
What the cows get from a ration and what limits it.price_ranges· Prices that change the ration
The price at which each feed leaves or comes into the ration.confidence· How sure the ration is
How often energy and protein are met, from 50% to 95% sure, and what each level costs.each_cow· A ration for each cow
Each cow on her own ration, against the pen's: who runs short, and the spread.try_groups· Try 1, 2 or 3 milking groups
What 1, 2 or 3 milking groups would cost and earn.worth_buying· Feeds worth buying
Feeds not on hand that would cut the ration's cost, biggest saving first.
Change, after you agree (each saved as the farm's next version)
make_current· Save a ration as fed now
Saves a ration as the recipe's ration fed now.add_recipe· Make a recipe
Makes a recipe, empty or as a copy of one.edit_recipe· Change a recipe
Renames a recipe or changes its stage, DCAD or breed.remove_recipe· Remove a recipe
Removes a recipe no pen is fed.set_cows_and_intake· Set a recipe's cows and intake
Sets a recipe's cows, the intake it is balanced at, and the milk price.set_limits· Set a recipe's limits
Sets a recipe's nutrient limits and feed-group limits.set_recipe_feeds· Change a recipe's feeds
Puts feeds on or off a recipe; swaps, holds or bounds them.set_price· Set a feed's price
Sets a feed's price.set_price_range· Set a feed's price range
Sets the low and high a feed's price may move between.put_feed_on_hand· Put a feed on hand
Puts a feed on hand in the recipes named.edit_feed· Change a farm's feed
Changes a feed's price, dry matter, stock, pile or lab test, or removes it.add_feed· Add a feed to the farm
Adds a NASEM library feed to the farm.make_premix· Make or change a premix
Makes or changes a premix from the farm's feeds.edit_pens· Change pens
Adds, renames, removes or moves pens and sets their cows.bring_in_cow_list· Bring a DairyComp list into a farm
Brings a DairyComp cow list into a farm's pens.edit_farm· Change the farm's settings
Changes the farm's name, milkings, walk to the parlor, milk price or heat.restore_version· Go back to a saved version
Saves an older version as the farm's next.import_file· Bring a file into a farm
Brings in a file's lab tests, prices, feeds, limits or recipes.save_farm· Save a whole farm
Saves a whole farm document, checked first.
If something goes wrong
- "Sign in first" or "The sign-in has expired": disconnect and connect again.
- "This app can't add a farm in that account": open the lab, sign in there once, then ask again.
- Anything else: [email protected].