raw-to-cooked-weight-mcp
Convert meat and poultry weights between raw and cooked using USDA cooking yields, and plan how much to buy.
Convert raw weight to cooked weight in g, oz, lb or kg, including USDA sample range and weight lost.
Convert cooked weight back to raw weight for macro logging or recipe scaling.
Calculate raw meat to buy for a number of cooked servings, defaulting to 3 oz (85 g).
Find USDA cooking yield percent, sample count, yield range, moisture/fat change, and close alternatives with
yield_id.List and filter USDA cooking-yield rows by meat category and cooking method.
Handle beef/pork lean ratios and common cooking methods across beef, pork, poultry, lamb, veal, bison/game and sausage; fish, seafood, rice, pasta and vegetables are not covered.
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., "@raw-to-cooked-weight-mcp I weighed 150 g of cooked chicken thigh. What was the raw weight?"
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.
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 |
| 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. |
| Raw weight behind a cooked portion, for logging food against raw nutrition labels or scaling a recipe written in cooked weight. |
| How much raw meat to buy for a number of cooked servings (default 3 oz cooked). |
| USDA cooking yield percent, sample range, moisture change and fat change for a cut and method, with close alternatives and their |
| 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/mcpClaude Code
claude mcp add --transport http raw-to-cooked https://raw-to-cooked-weight-mcp.lipmichal.workers.dev/mcpOr run it locally over stdio:
claude mcp add raw-to-cooked -- npx -y github:theluckystrike/raw-to-cooked-weight-mcpClaude 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/andscripts/build_data.pyrebuilds 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 /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
5 toolscalculate_raw_weight_to_buyCalculate raw meat to buyBRead-onlyIdempotentInspect
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 weightARead-onlyIdempotentInspect
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 weightARead-onlyIdempotentInspect
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 yieldARead-onlyIdempotentInspect
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 yieldsARead-onlyIdempotentInspect
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
Scored across 5 tools
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.
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.
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.
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
Related MCP Connectors
Recipe search, ingredient matching, nutrition filters and a private cookbook for any AI agent.
Everyday calculators and converters for AI assistants: units, dates, percentages, text, JSON.
Cups to grams for 271 ingredients with USDA and King Arthur densities, recipe scaling, oven temps.
Cooking conversions: cups, tbsp, tsp, ml, grams and ounces per ingredient, plus recipe scaling.
Related MCP Servers
- 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
- AlicenseAqualityBmaintenanceEnables 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.4MIT