Vegetable Yield Percentage MCP

io.github.theluckystrike由 GitHub 账号 theluckystrike 发布v1.0.0更新于 Nov 3, 2026

根据USDA废弃物数据,计算蔬果可食部分产出率、修整损耗以及应购买多少农产品。

AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。

原文描述

Vegetable and fruit yield percentage, trim waste and how much produce to buy, from USDA refuse data.

已验证Streamable HTTP可网页运行

概览

Vegetable Yield Percentage 的托管 MCP 服务(vegetable-yield-percentage-mcp.lipmichal.workers.dev);无需登录;Streamable HTTP;4 个工具。

暂无 AI 概览:以下信息来自注册中心条目和服务本身。

端点
vegetable-yield-percentage-mcp.lipmichal.workers.dev
最近检查

安装

在 SourceWeft 中

  1. 打开 控制台中的 Vegetable Yield Percentage MCP,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.theluckystrike%2Fvegetable-yield-percentage-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "vegetable-yield-percentage": {
      "type": "http",
      "url": "https://vegetable-yield-percentage-mcp.lipmichal.workers.dev/mcp"
    }
  }
}

README

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

ToolWhat it returns
get_vegetable_yieldEdible 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.
calculate_edible_weightEdible weight and trim waste from a purchased weight, for example 5 lb of pineapple.
calculate_amount_to_buyHow 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.
list_vegetable_yieldsAll 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).

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/mcp

Claude Code

claude mcp add --transport http vegetable-yield https://vegetable-yield-percentage-mcp.lipmichal.workers.dev/mcp

Or run it locally over stdio:

claude mcp add vegetable-yield -- npx -y github:theluckystrike/vegetable-yield-percentage-mcp

Claude Desktop

Add to claude_desktop_config.json:

json
{  "mcpServers": {    "vegetable-yield": { "command": "npx", "args": ["-y", "github:theluckystrike/vegetable-yield-percentage-mcp"] }  }}

Cursor

Add to ~/.cursor/mcp.json:

json
{  "mcpServers": {    "vegetable-yield": { "url": "https://vegetable-yield-percentage-mcp.lipmichal.workers.dev/mcp" }  }}

VS Code

Add to .vscode/mcp.json:

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 from WEIGHT.txt. scripts/build_data.py rebuilds data/produce-yields.json from 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 installnpm test                       # builds, then runs the fixture testsnode scripts/smoke-stdio.mjs   # stdio check, one real call per toolpython3 scripts/build_data.py <dir with FOOD_DES.txt and WEIGHT.txt> data/produce-yields.jsonpython3 scripts/gen_ts.py data/produce-yields.json src/data.tsnpx wrangler deploy            # Cloudflare Worker, Streamable HTTP at /mcp

License

MIT

来源:README.md,提交 2d71788

工具

4

get_vegetable_yield

Get vegetable yield percentage

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.

输入参数food必填

calculate_edible_weight

Calculate edible weight

Edible weight and trim waste from a purchased (as purchased, untrimmed) weight of a raw vegetable or fruit, using the USDA edible yield percent.

输入参数food必填unitpurchased_weight必填

calculate_amount_to_buy

Calculate how much produce to buy

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.

输入参数food必填amount必填measure

list_vegetable_yields

List vegetable and fruit yields

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.

输入参数sortlimitcategory

版本历史

1
  1. v1.0.0最新Nov 3, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分