Vegetable Yield Percentage MCP
Look up USDA edible yield percentages and convert between as-purchased and edible amounts for 305 raw vegetables and fruits.
Get a food's yield (
get_vegetable_yield): edible yield percent, refuse percent and what the refuse is (skin, seeds, core, husk, cob), USDA household weights (1 medium, 1 cup chopped, 1 clove) and the as-bought weight of one whole item.Trim waste from a purchase (
calculate_edible_weight): give a purchased weight in g, kg, oz or lb and get edible weight plus trim waste, e.g. 5 lb of pineapple.Work out how much to buy (
calculate_amount_to_buy): give a recipe amount in weight or a USDA measure such as "cup chopped", "medium" or "clove"; returns edible weight needed, as-purchased weight and whole-item count.Browse or rank all 305 items (
list_vegetable_yields): sorted by name, lowest yield or highest yield, filtered to fruit or vegetable.Use anywhere, no key: read-only tools returning structured JSON plus a one-paragraph summary,
as_of,sourceand a calculator link; hosted endpoint or local stdio.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Vegetable Yield Percentage MCP how much broccoli do I buy to get 500 g of florets?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
vegetable-yield-percentage-mcp
Vegetable and fruit yield percentage for AI assistants: how much of what you buy is edible after peeling, coring and trimming, and how much to buy for a recipe, from USDA refuse data.
This is a Model Context Protocol (MCP) server. It covers 305 raw vegetables and fruits from the USDA National Nutrient Database for Standard Reference (SR28), each with its USDA refuse percent, what the refuse is, and USDA household weights such as 1 medium onion or 1 cup chopped. It needs no API key.
Tools
Tool | What it returns |
| Edible yield percent, refuse percent and what the refuse is (skin, seeds, core, crown), USDA household weights, and the edible and as-bought weight of one whole item. |
| Edible weight and trim waste from a purchased weight, for example 5 lb of pineapple. |
| How much to buy for a recipe amount given in g, kg, oz, lb or a USDA measure such as "cup chopped", "medium" or "clove", as purchased weight and whole-item count. |
| All 305 items by name, lowest yield or highest yield, filtered to fruit or vegetable. |
Every result has structured JSON, a one-paragraph summary, as_of, source and more (the vegetable yield percentage calculator on ingredientcalculator.com).
Related MCP server: FreshTrack MCP Server
What it knows that your model does not
The USDA trim loss for each item, and what it is. Corn on the cob is 36% edible (35% husk, silk and trimmings, 29% cob). Pineapple is 51% (8% core, 16% crown, 26% parings). Cauliflower is 39%, leeks 44%, asparagus 53%, bananas 64%, onions 90%, cucumbers 97%.
USDA household weights for the edible part. A medium onion (2-1/2 inch) is 110 g and a cup of chopped onion is 160 g, so 2 cups chopped needs about 3 medium onions and 356 g as bought.
The difference between as purchased and edible portion. Recipe costing, food cost and portion planning need both. The tools return both, plus the waste.
Install
Hosted (Claude.ai custom connector, ChatGPT developer mode)
Paste this URL. No token, no sign-up.
https://vegetable-yield-percentage-mcp.lipmichal.workers.dev/mcpClaude Code
claude mcp add --transport http vegetable-yield https://vegetable-yield-percentage-mcp.lipmichal.workers.dev/mcpOr run it locally over stdio:
claude mcp add vegetable-yield -- npx -y github:theluckystrike/vegetable-yield-percentage-mcpClaude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"vegetable-yield": { "command": "npx", "args": ["-y", "github:theluckystrike/vegetable-yield-percentage-mcp"] }
}
}Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"vegetable-yield": { "url": "https://vegetable-yield-percentage-mcp.lipmichal.workers.dev/mcp" }
}
}VS Code
Add to .vscode/mcp.json:
{
"servers": {
"vegetable-yield": { "type": "http", "url": "https://vegetable-yield-percentage-mcp.lipmichal.workers.dev/mcp" }
}
}Node 20 or newer is needed for the local stdio version.
Example prompts
"What is the yield percentage of a pineapple?"
"I bought 3 lb of butternut squash. How much will I have after peeling and seeding?"
"A recipe needs 2 cups of chopped onion. How many onions do I buy?"
"How much broccoli do I buy to serve 500 g of florets?"
"Which fruits waste the most weight when you prep them?"
Data sources
Full list with fetch dates and checksums in DATA_SOURCES.md.
USDA Agricultural Research Service, Nutrient Data Laboratory. National Nutrient Database for Standard Reference, Release 28 (September 2015), ASCII files: refuse percent and refuse description from
FOOD_DES.txt, household weights fromWEIGHT.txt.scripts/build_data.pyrebuildsdata/produce-yields.jsonfrom them.Definitions from the SR28 documentation: refuse is a percent of the item as purchased, and household weights are for the edible part without refuse.
Pound and ounce from NIST SP 811 (1 lb = 453.59237 g exactly).
Limitations
USDA refuse is an average for typical produce and trimming. Size, ripeness, variety and how hard you trim move your result.
Only raw items with a USDA refuse value are covered: 191 vegetables and 114 fruits. Herbs listed under spices (parsley, basil), nuts and coconut are not included.
Some items have no USDA whole-item weight (butternut squash, asparagus); the tools then answer by weight and cups only.
SR28 (2015) is the final Standard Reference release, so values for newer varieties are not included.
More
The vegetable yield percentage calculator, cups to grams and recipe scaling tools are on ingredientcalculator.com.
Part of the Zovo MCP collection: https://mcp.zovo.one
Development
npm install
npm test # builds, then runs the fixture tests
node scripts/smoke-stdio.mjs # stdio check, one real call per tool
python3 scripts/build_data.py <dir with FOOD_DES.txt and WEIGHT.txt> data/produce-yields.json
python3 scripts/gen_ts.py data/produce-yields.json src/data.ts
npx wrangler deploy # Cloudflare Worker, Streamable HTTP at /mcpLicense
MIT
More from zovo
All free zovo VS Code extensions - file viewers, database clients, formatters. Offline, no telemetry, no sign-up.
Full MCP server catalogue - local-first MCP servers for back-office work: invoices, VAT, PDFs, spreadsheets, payroll.
Hosted no-install MCP endpoints - paste a URL in Claude / Cursor, nothing to install.
Available Tools
4 toolscalculate_amount_to_buyCalculate how much produce to buyARead-onlyIdempotentInspect
How much of a raw vegetable or fruit to buy for a recipe amount. Give the prepared amount in g, kg, oz or lb, or as a USDA household measure such as "cup chopped", "cup sliced", "medium" or "clove". Returns the edible weight needed, the as-purchased weight to buy at the USDA edible yield, and the number of whole items (for example medium onions) to buy.
Inputs: food (required), amount (required), measure.
calculate_edible_weightCalculate edible weightBRead-onlyIdempotentInspect
Edible weight and trim waste from a purchased (as purchased, untrimmed) weight of a raw vegetable or fruit, using the USDA edible yield percent.
Inputs: food (required), purchased_weight (required), unit.
get_vegetable_yieldGet vegetable yield percentageARead-onlyIdempotentInspect
USDA edible yield percent for a raw vegetable or fruit (the share left after removing peel, seeds, core, stems and trimmings), the refuse percent and what the refuse is, plus USDA household weights (1 medium, 1 cup chopped, 1 clove) and the as-purchased weight of one whole item. From USDA SR28 refuse data.
Inputs: food (required).
list_vegetable_yieldsList vegetable and fruit yieldsARead-onlyIdempotentInspect
List raw vegetables and fruits with their USDA edible yield percent, filtered to fruit or vegetable and sorted by name, lowest yield or highest yield.
Inputs: sort, limit, category.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a distinct role: one lookup of yield data, one list/search, and two calculations in opposite directions (trimming a purchased weight vs. scaling up from a recipe amount). The two calculate_ tools do touch the same edible-yield concept, which could cause occasional misselection, but the descriptions make the direction of each clear.
All four tools use a consistent snake_case verb_noun pattern (get_, calculate_, calculate_, list_) with clear object naming. No mixing of conventions or casing styles.
Four tools is well-scoped for a narrow, focused domain (USDA vegetable yield lookup and yield-based calculations). Each tool earns its place with no obvious redundancy.
The surface covers per-item lookup, enumeration/filtering, trim calculation, and purchase-amount calculation, covering the core workflow end to end. Minor gaps exist (e.g. no bulk/multi-item calculations or cooked-yield handling), but agents can work around these with repeated calls.
Maintenance
Related MCP Connectors
Food nutrition lookup via natural language, barcode, and image. Database of 1,000,000+ foods.
Natural-language calorie lookup. Send '2 large eggs', get USDA-sourced nutrition data.
Raw to cooked weight of meat and poultry by cut and cooking method from USDA cooking yields.
Search structured recipes, scale servings, match pantry ingredients, and build shopping lists.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides intelligent access to the USDA nutrition database through AI assistants, enabling users to search foods, compare nutritional content, find foods high in specific nutrients, and query authoritative nutrition data across 7,146+ food items through natural language.1-
- AlicenseAqualityDmaintenanceEnables AI assistants to answer food safety and shelf-life questions using USDA-grade data, with tools for shelf life, safety checks, storage tips, and waste cost calculations.643 npmMIT
- AlicenseAqualityBmaintenanceEnables deterministic recipe and portion math with USDA-sourced macros, gram conversions, cooked yields, and per-eater portions.12MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to convert recipe amounts between volume and weight for specific ingredients using measured densities, scale recipes, and convert oven temperatures, with source citations and alternative published values.416 npmMIT