Skip to main content
Glama
raw-to-cooked-weight-mcp

raw-to-cooked-weight-mcp

raw-to-cooked-weight-mcp

Raw to cooked weight for meat and poultry, for AI assistants, by cut and cooking method, from the USDA Table of Cooking Yields for Meat and Poultry.

This is a Model Context Protocol (MCP) server. It converts raw weight to cooked weight and cooked weight back to raw weight with the cooking yields USDA measured for 173 cut and method pairs of beef, pork, chicken, turkey, lamb, veal, bison and game. It needs no API key.

Tools

Tool

What it returns

convert_raw_to_cooked

Cooked weight of a raw cut (chicken thigh, 80/20 ground beef, pork tenderloin, bacon) in g, oz, lb and kg, the range seen across USDA samples, the weight lost and the USDA row used.

convert_cooked_to_raw

Raw weight behind a cooked portion, for logging food against raw nutrition labels or scaling a recipe written in cooked weight.

calculate_raw_weight_to_buy

How much raw meat to buy for a number of cooked servings (default 3 oz cooked).

find_cooking_yield

USDA cooking yield percent, sample range, moisture change and fat change for a cut and method, with close alternatives and their yield_id.

list_cooking_yields

All rows of the USDA table by category (beef, pork, poultry, chicken, turkey, lamb, veal, game, sausage) and method.

Every result has structured JSON, a one-paragraph summary, as_of, source and more (the raw to cooked weight calculator on recipetool.net).

Related MCP server: foodos-mcp

What it knows that your model does not

  • Yields differ by cut, fat level and method. A flat "meat loses 25%" rule is wrong for most cuts. USDA measured bacon at 29 to 32% of its raw weight, 80/20 ground beef crumbles at 67%, a grilled bone-in rib eye steak at 85.7% and a boneless cured ham at 94 to 96%.

  • The exact USDA number, its sample count and its range. Roast chicken thigh is 69%, but USDA samples ran from 58% to 79%. The tools return both.

  • Ground meat lean ratios. "80/20", "93% lean" and "73/27" map to the USDA low, medium and high fat classes for beef (under 12%, 12 to 22%, over 22% fat) and pork (under 10%, 10 to 27%, over 27%).

  • What is not covered. Fish, seafood, rice, pasta and vegetables are not in the USDA table. The tools say so instead of guessing.

Install

Hosted (Claude.ai custom connector, ChatGPT developer mode)

Paste this URL. No token, no sign-up.

https://raw-to-cooked-weight-mcp.lipmichal.workers.dev/mcp

Claude Code

claude mcp add --transport http raw-to-cooked https://raw-to-cooked-weight-mcp.lipmichal.workers.dev/mcp

Or run it locally over stdio:

claude mcp add raw-to-cooked -- npx -y github:theluckystrike/raw-to-cooked-weight-mcp

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "raw-to-cooked": { "command": "npx", "args": ["-y", "github:theluckystrike/raw-to-cooked-weight-mcp"] }
  }
}

Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "raw-to-cooked": { "url": "https://raw-to-cooked-weight-mcp.lipmichal.workers.dev/mcp" }
  }
}

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "raw-to-cooked": { "type": "http", "url": "https://raw-to-cooked-weight-mcp.lipmichal.workers.dev/mcp" }
  }
}

Node 20 or newer is needed for the local stdio version.

Example prompts

  • "I weighed 150 g of cooked chicken thigh. What was the raw weight for my macro log?"

  • "How much does 2 lb of raw 80/20 ground beef weigh after browning?"

  • "How much raw brisket do I buy to serve 12 people 4 oz cooked each?"

  • "What percent of its weight does bacon lose in the microwave?"

  • "Which pork cuts keep the most weight when grilled?"

Data sources

Full list with fetch dates and checksums in DATA_SOURCES.md.

  • USDA Agricultural Research Service, Nutrient Data Laboratory. USDA Table of Cooking Yields for Meat and Poultry, Release 2, September 2014. PDF and Excel. The Excel file is in data/ and scripts/build_data.py rebuilds the table from it.

  • Pound and ounce from NIST SP 811 (1 lb = 453.59237 g exactly).

Limitations

  • USDA yield is hot cooked weight over raw weight of the same piece, cooked to USDA research protocols. Doneness, trim, bone, brines and how much of the pan juice you keep move your result. The tools return the USDA range when there is one.

  • Rows with a 1975 release year come from USDA Agriculture Handbook 102. They have no sample count, moisture or fat change.

  • A bone-in cut keeps its bone in both weights. Boneless skinless chicken breast and grilled chicken breast are not in the table; the tools return the closest row and say so.

  • Fish, seafood, duck, eggs, rice, pasta and vegetables are not covered.

More

The raw to cooked weight calculator and recipe nutrition tools are on recipetool.net.

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 data/USDA_CookingYields_MeatPoultry02.xlsx data/cooking-yields.json
python3 scripts/gen_ts.py data/cooking-yields.json src/data.ts
npx wrangler deploy            # Cloudflare Worker, Streamable HTTP at /mcp

License

MIT

More from zovo

Available Tools

5 tools
calculate_raw_weight_to_buyCalculate raw meat to buyB
Read-onlyIdempotent
Inspect

How much raw meat or poultry to buy for a number of cooked servings, from the USDA cooking yield for that cut and method. Default cooked serving is 3 oz (85 g).

Inputs: servings (required), food, unit, method, +2 more.

convert_cooked_to_rawConvert cooked to raw weightA
Read-onlyIdempotent
Inspect

Raw weight that a cooked portion of meat or poultry came from, using the USDA measured cooking yield. Use it to log a cooked portion against raw nutrition data (labels and most databases list raw meat) or to scale a recipe written in cooked weight. Returns raw weight in g, oz, lb and kg, and the raw weight if the yield was at the USDA high or low end.

Inputs: cooked_weight (required), food, unit, method, +1 more.

convert_raw_to_cookedConvert raw to cooked weightA
Read-onlyIdempotent
Inspect

Cooked weight of raw meat or poultry using the USDA measured cooking yield for that cut and cooking method (USDA Table of Cooking Yields for Meat and Poultry). Returns the expected cooked weight in g, oz, lb and kg, the range seen across USDA samples, the weight lost, and the USDA row used. Understands ground beef lean ratios such as 80/20 or 93% lean.

Inputs: raw_weight (required), food, unit, method, +1 more.

find_cooking_yieldFind USDA cooking yieldA
Read-onlyIdempotent
Inspect

Look up the USDA cooking yield percent for a cut of meat or poultry and a cooking method, with the yield range, sample count, moisture change and fat change measured by USDA, plus up to 4 close alternative rows with their yield_id.

Inputs: food (required), limit, method.

list_cooking_yieldsList USDA cooking yieldsA
Read-onlyIdempotent
Inspect

List rows of the USDA Table of Cooking Yields for Meat and Poultry, filtered by category (beef, pork, poultry, chicken, turkey, lamb, veal, game, sausage) and cooking method.

Inputs: method, category.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 5 tools

    Disambiguation4/5

    The direction-based converters (raw→cooked vs cooked→raw) are clearly distinguished by name and description, and find vs list have distinct intents (single precise lookup with yield_id alternatives vs filtered browsing). The only mild overlap is between calculate_raw_weight_to_buy and convert_cooked_to_raw, since both produce a raw weight for cooked amounts, but the servings-scaling framing mostly separates them.

    Naming Consistency4/5

    All names are snake_case, verb-first, and descriptive (convert_*, calculate_*, find_*, list_*). The pattern is predictable, though the two converts embed a directional argument (raw_to_cooked) rather than a pure verb_noun object, which is a minor deviation.

    Tool Count5/5

    Five tools is well-scoped for a focused weight-conversion domain, with no filler. Each tool covers a distinct step: two directions of conversion, a batch/purchase calculator, a precise yield lookup, and a browse/list operation.

    Completeness4/5

    Coverage of the core lifecycle (raw→cooked, cooked→raw, servings→purchase amount, yield lookup and browsing) is solid and closes most workflows. Minor gaps remain: no inverse of calculate_raw_weight_to_buy (cooked weight → number of servings) and no way to scale nutrition per portion, but agents can work around these with the existing converters.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables 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.
      6
      43 npm
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables 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.
      4
      16 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to calculate recipe and per-serving calories, macros, and FDA-rounded Nutrition Facts values from ingredient lines using USDA FoodData Central data, including scaling recipes and looking up ingredient nutrition.
      4
      MIT