Cups to Grams MCP
This server converts cooking measurements with ingredient-aware accuracy, letting you switch between cups, spoons, milliliters and grams/ounces for 271 ingredients, scale recipes, and convert oven temperatures.
Convert any kitchen amount (
convert_ingredient): convert volume ↔ weight (cups, tbsp, tsp, fl oz, pints, quarts, gallons, mL, dL, L, g, mg, kg, oz, lb, sticks of butter) for a named ingredient, with measured grams-per-cup values from USDA FoodData Central and the King Arthur chart; states which cup definition it used and cites the density source.Pick the right cup system: choose US (236.588 mL), metric (250 mL) or imperial (284.13 mL) cups and spoons via
cup_system, or use explicit units likemetric_cup; volume-to-volume and weight-to-weight need no ingredient.Find ingredients (
search_ingredients): fuzzy search over 271 ingredients to get canonical names, grams per US cup and per tablespoon, and each row's source (USDA FDC id or King Arthur), so you can choose the exact match before converting.Scale recipes (
scale_recipe): scale ingredient lines by a factor or from original to target servings (parses mixed numbers and fraction characters), optionally outputting grams for every line and reporting lines it could not match.Convert oven temperatures (
convert_oven_temperature): switch between Fahrenheit, Celsius and gas mark (1/4–10), with optional 20 °C fan-oven adjustment and nearest-gas-mark reporting.Trustworthy output: results include structured JSON, a one-paragraph summary, an
as_ofdate, a source URL and a link to the matching ingredientcalculator.com page; for 23 ingredients it also shows where USDA and King Arthur differ by more than 5%.Easy access: hosted no-auth MCP endpoint, plus npx/stdio installs for Claude Code, Claude Desktop, Cursor, VS Code and ChatGPT developer mode.
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., "@Cups to Grams MCP How many grams is 3/4 cup of brown sugar?"
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.
Cups to Grams MCP
Ingredient-aware cups to grams for AI assistants, using measured grams per cup from USDA FoodData Central and the King Arthur Baking weight chart instead of guessed densities.
Hosted MCP URL (no sign-in, no token): https://cups-to-grams-mcp.lipmichal.workers.dev/mcp
Converters and recipe tools on the web: ingredientcalculator.com
Tools
Tool | What it does |
| Converts an amount between volume and weight for a named ingredient (cup, tbsp, tsp, fl oz, mL, L to g, oz, lb and back). Supports US, metric, imperial, US legal and Japanese cups, US, metric and Australian spoons, sticks of butter. Says which cup it used and cites the density source. |
| Fuzzy search over 271 ingredients. Returns canonical names, grams per US cup and per tablespoon, and the source (USDA FDC id or King Arthur chart). |
| Scales ingredient lines by a factor or from one servings count to another. Parses mixed numbers and fraction characters. Optionally gives grams for every line. |
| Fahrenheit, Celsius and gas mark (1/4 to 10), with a 20 C fan oven adjustment. |
Every result has structured JSON, a one-paragraph summary, an as_of date, a source URL and a more link to the matching ingredientcalculator.com page.
Related MCP server: foodos-mcp
What it knows that your model does not
Measured weights. A cup of all-purpose flour is 120 g, granulated sugar 200 g, butter 227 g, honey 339 g, water 237 g. Models often apply one density to everything or mix up fluid ounces and weight ounces. Each of the 271 rows carries its source, and USDA rows carry the FDC id.
Which cup. A US cup is 236.5882365 mL, a metric cup 250 mL, an imperial cup 284.13 mL, the US nutrition-label cup 240 mL and a Japanese cup 200 mL. A 1 cup of flour in an Australian recipe is about 127 g, not 120 g. The server states the cup it used.
Exact unit constants. US units come from the US gallon of 231 cubic inches (NIST SP 811). Imperial units come from the UK Weights and Measures Act 1985 (gallon = 4.54609 L). The pound is exactly 453.59237 g.
Where published tables disagree. For 23 ingredients USDA and King Arthur differ by more than 5% (cornstarch, bread flour, oats, baking soda and others). The result names the value used and lists the other published value, so the user can see the spread.
Install
Claude.ai custom connector, ChatGPT developer mode
Paste this URL as a custom connector. No token or sign-in.
https://cups-to-grams-mcp.lipmichal.workers.dev/mcpClaude Code
claude mcp add --transport http cups-to-grams https://cups-to-grams-mcp.lipmichal.workers.dev/mcpOr run it locally over stdio:
claude mcp add cups-to-grams -- npx -y cups-to-grams-mcpClaude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"cups-to-grams": {
"command": "npx",
"args": ["-y", "cups-to-grams-mcp"]
}
}
}Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"cups-to-grams": { "url": "https://cups-to-grams-mcp.lipmichal.workers.dev/mcp" }
}
}VS Code
Add to .vscode/mcp.json:
{
"servers": {
"cups-to-grams": { "type": "http", "url": "https://cups-to-grams-mcp.lipmichal.workers.dev/mcp" }
}
}Test with curl
curl -s -X POST https://cups-to-grams-mcp.lipmichal.workers.dev/mcp \
-H 'content-type: application/json' -H 'accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"convert_ingredient","arguments":{"amount":1,"from_unit":"cup","to_unit":"g","ingredient":"all-purpose flour"}}}'Example prompts
"How many grams is 3/4 cup of brown sugar?"
"Convert 250 g of bread flour to cups."
"This Australian recipe says 2 cups plain flour. How many grams is that?"
"Double this recipe and give me grams: 1 1/2 cups flour, 1/2 cup sugar, 2 tbsp honey, 1 stick butter."
"Scale this recipe from 4 servings to 10."
"What is gas mark 6 in Fahrenheit, and what should I set a fan oven to?"
How it converts
Density in g per mL = grams per US cup / 236.5882365.
Volume to weight = amount x unit mL x density. Weight to volume is the reverse.
Volume to volume and weight to weight use the unit constants only.
A stick of butter is 1/4 lb (113.398 g), which USDA lists as 113 g and 1/2 cup.
Gas marks follow the standard recipe table (gas mark 4 = 350 F = 180 C). Fan ovens are set 20 C lower, per oven maker guidance.
27 test fixtures check unit constants and table values. The expected values come from scripts/expected.py, which works from the unit definitions and the published table values, not from the server code.
Data sources
See DATA_SOURCES.md. In short, densities come from USDA FoodData Central SR Legacy portion weights (FDC ids per row) and the King Arthur Baking ingredient weight chart, both fetched on 2026-10-30. The table is rebuilt by scripts/build_data.py.
Limitations
Volume measures vary with how you fill the cup. Dry values assume spoon-and-level filling. Scooping flour from the bag can add 30 g or more per cup. Weigh when it matters.
Table values are whole grams per cup, so results carry about plus or minus 0.5 g per cup of rounding. King Arthur rows given per tablespoon or teaspoon are coarser.
Whole eggs and other count items are not converted by volume. A large egg is about 50 g.
Ingredient matching is fuzzy. Check the matched name in the result, or use
search_ingredientsfirst.Fan oven guidance is a rule of thumb. Oven calibration varies.
Development
npm install
npm run build
npm test
npx wrangler deploysrc/core.ts holds the pure conversion logic and src/data.ts the generated density table. src/stdio.ts and src/worker.ts are thin entries over the same tool registry in src/tools.ts.
License
MIT
Part of the Zovo MCP collection: https://mcp.zovo.one
More data servers from the same author
Each one is free, needs no API key and has a hosted URL you can paste into Claude or ChatGPT.
server | tools | hosted URL |
calculate_dscr, max_loan_for_target_dscr, rent_needed_for_target_dscr, compare_scenarios, amortization_summary |
| |
get_gold_price_per_gram, get_metal_prices, calculate_jewelry_value, convert_gold_units |
| |
search_lakes, get_lake_level, get_lake_history, compare_lakes |
| |
get_minimum_wage, list_upcoming_increases, compare_states, annual_income_at_minimum_wage |
| |
calculate_overtime_deduction, calculate_tips_deduction, calculate_senior_deduction, estimate_tax_savings, explain_eligibility |
| |
calculate_take_home_pay, compare_states_take_home, salary_to_hourly, hourly_to_salary, get_federal_tax_brackets |
| |
calculate_uk_take_home, get_uk_tax_bands, compare_salaries, marginal_rate_at_income |
| |
list_federal_holidays, is_business_day, add_business_days, count_business_days, invoice_due_date |
| |
calculate_sample_size, estimate_test_duration, test_ab_significance, fisher_exact_test, check_peeking_risk |
| |
get_federal_poverty_level, calculate_premium_tax_credit, check_subsidy_cliff, get_aptc_repayment_cap |
| |
get_ap_score_distribution, estimate_ap_percentile, compare_ap_exams, list_ap_exams, estimate_ap_score_from_composite |
| |
calculate_car_loan_interest_deduction, calculate_salt_deduction, get_tax_brackets_and_standard_deduction, calculate_child_tax_credit |
| |
get_exemption_amounts, calculate_estate_tax, check_gift, compare_years |
| |
lookup_ingredient_nutrition, calculate_recipe_nutrition, round_nutrition_label, scale_recipe_nutrition |
| |
get_contribution_limits, calculate_max_contribution, get_social_security_cola, compare_years |
| |
calculate_section_179, calculate_bonus_depreciation, get_vehicle_depreciation_limits, calculate_asset_loan_payment |
| |
calculate_rap_payment, compare_rap_vs_standard, get_federal_loan_limits, get_plan_transition_dates |
| |
find_subdomains, resolve_subdomains, get_certificate_history, summarize_attack_surface |
| |
calculate_statutory_sick_pay, calculate_statutory_maternity_pay, get_minimum_wage_rates, check_eligibility |
|
The paid back-office collection (invoices, VAT, PDFs, spreadsheets) is at https://mcp.zovo.one
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 toolsconvert_ingredientConvert cups to grams for a named ingredientARead-onlyIdempotentInspect
Converts a kitchen amount between volume and weight for a specific ingredient, using measured grams-per-cup values (USDA FoodData Central portion weights with FDC ids, and the King Arthur Baking ingredient weight chart) instead of guessed densities. 271 ingredients. Units: US cup (236.5882365 mL), metric cup (250 mL), imperial cup, US legal cup (240 mL), Japanese cup, US/metric/Australian tablespoons, teaspoons, US and imperial fl oz, pints, quarts, gallons, mL, dL, L, g, mg, kg, oz, lb and sticks of butter. Volume to volume and weight to weight need no ingredient. States which cup definition it used and cites the density source.
Inputs: amount (required), to_unit (required), from_unit (required), cup_system, +1 more.
convert_oven_temperatureConvert oven temperature between F, C and gas markARead-onlyIdempotentInspect
Converts an oven setting between Fahrenheit, Celsius and UK gas mark (1/4 to 10, from the standard recipe table) and optionally adjusts for a fan (convection) oven by 20 C, the manufacturer guidance. Returns the nearest gas mark and whether it is an exact table value.
Inputs: value (required), from_scale (required), fan.
scale_recipeScale a recipe and convert it to gramsARead-onlyIdempotentInspect
Scales a list of recipe ingredient lines ("1 1/2 cups all-purpose flour", "2 tbsp honey", "3 eggs") by a factor or from original to target servings. Parses mixed numbers and fraction characters. With to_metric_weights, converts cup and spoon amounts to grams with the measured density table and weights to grams, and reports lines it could not match.
Inputs: lines (required), factor, cup_system, target_servings, +2 more.
search_ingredientsSearch the measured ingredient density tableARead-onlyIdempotentInspect
Fuzzy search over the ingredient table (flours, sugars, fats, dairy, liquids, nuts, grains, fruit, produce). Returns canonical names, grams per US cup and per tablespoon, and the source (USDA FDC id or King Arthur Baking chart). Use it to pick the exact ingredient before converting.
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
The four tools have mostly distinct roles: searching ingredients, converting a single ingredient amount, scaling recipe lines, and converting oven temperatures. The only mild overlap is that scale_recipe can perform metric weight conversions internally, similar to convert_ingredient, but the descriptions make the intended boundary clear.
All tool names use consistent snake_case verb_noun phrasing: convert_oven_temperature, search_ingredients, convert_ingredient, and scale_recipe. The pattern is predictable and readable.
Four tools is well-scoped for a specialized cooking-unit conversion server. Each tool covers a distinct part of the workflow: ingredient lookup, unit conversion, recipe scaling, and oven temperature conversion.
The tool surface covers the core lifecycle for this domain: finding an ingredient, converting its units, scaling whole recipes, and converting oven temperatures. No obvious operational gaps remain for the stated purpose.
Maintenance
Related MCP Connectors
Baking unit conversion (cups/grams/temp/recipe scaling). convert_amount, convert_temperature
Cooking conversions: cups, tbsp, tsp, ml, grams and ounces per ingredient, plus recipe scaling.
Recipe search, ingredient matching, nutrition filters and a private cookbook for any AI agent.
Scale recipes, convert kitchen units and merge shopping lists. Free.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceEnables AI assistants to search recipes, compose nutritionally balanced meals, optimize weekly meal plans based on macro targets for family members, and generate consolidated grocery lists from a personal recipe database.-
- AlicenseAqualityBmaintenanceEnables deterministic recipe and portion math with USDA-sourced macros, gram conversions, cooked yields, and per-eater portions.12MIT
- 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
- AlicenseAqualityCmaintenanceEnables AI assistants to convert raw and cooked weights for meat and poultry by cut and cooking method from USDA data, calculate how much raw meat to buy for cooked servings, and look up cooking yields and sample ranges.5MIT