Cups to Grams MCP
An MCP server that converts volume measurements to grams for 271 ingredients using precise USDA and King Arthur Baking densities. It supports fuzzy ingredient search, recipe scaling, and oven temperature conversion without requiring authentication.
Endpoint and access
No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.
https://cups-to-grams-mcp.lipmichal.workers.dev/mcpWhat you can do with it
- Convert cups, spoons, mL, and fl oz to grams and ounces for specific ingredients
- Fuzzy search the sourced density table to find grams per cup and tablespoon
- Scale ingredient lines by a factor or servings with optional gram conversion
- Convert oven temperatures between Fahrenheit, Celsius, and gas marks
Source and maintenance
- Maintenance checked
Protocol and capabilities
- Server
- cups-to-grams-mcp 1.0.0
- MCP protocol
- 2025-06-18
- Tools
- 4 advertised
- Resources
- Not advertised
- Resource templates
- Not advertised
- Prompts
- Not advertised
{
"tools": {
"listChanged": true
}
}Tools
4 advertised
convert_ingredient — Convert cups to grams for a named ingredient
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.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"amount",
"from_unit",
"to_unit"
],
"properties": {
"amount": {
"type": "number",
"maximum": 1000000,
"minimum": 0,
"description": "Quantity to convert, e.g. 1.5. Use decimals for fractions (3/4 = 0.75)."
},
"to_unit": {
"type": "string",
"maxLength": 30,
"minLength": 1,
"description": "Unit to convert to, e.g. g, oz, cup, ml."
},
"from_unit": {
"type": "string",
"maxLength": 30,
"minLength": 1,
"description": "Unit to convert from, e.g. cup, us_cup, metric_cup, tbsp, tsp, fl oz, ml, l, g, oz, lb, stick."
},
"cup_system": {
"enum": [
"us",
"metric",
"imperial"
],
"type": "string",
"description": "Which cup and spoon family the bare words cup, tbsp, tsp, fl oz and pint mean. us = 236.588 mL cup (default), metric = 250 mL cup with 15/5 mL spoons, imperial = 284.13 mL cup with UK pints. Explicit units such as metric_cup always win."
},
"ingredient": {
"type": "string",
"maxLength": 80,
"description": "Ingredient name, e.g. \"all-purpose flour\", \"brown sugar\", \"honey\". Required when converting between volume and weight."
}
}
}{
"title": "Convert ingredient",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}search_ingredients — Search the measured ingredient density table
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.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"maximum": 25,
"minimum": 1,
"description": "Maximum results. Default 10."
},
"query": {
"type": "string",
"maxLength": 80,
"minLength": 1,
"description": "Ingredient name or part of it, e.g. \"flour\", \"confectioners sugar\", \"oats\"."
}
}
}{
"title": "Search ingredients",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}scale_recipe — Scale a recipe and convert it to grams
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.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"lines"
],
"properties": {
"lines": {
"type": "array",
"items": {
"type": "string",
"maxLength": 200,
"minLength": 1
},
"maxItems": 60,
"minItems": 1,
"description": "Ingredient lines, one per item, quantity first."
},
"factor": {
"type": "number",
"maximum": 100,
"description": "Multiply every quantity by this, e.g. 2 or 0.5. Or give servings instead.",
"exclusiveMinimum": 0
},
"cup_system": {
"enum": [
"us",
"metric",
"imperial"
],
"type": "string",
"description": "Which cup and spoon family the bare words cup, tbsp, tsp, fl oz and pint mean. us = 236.588 mL cup (default), metric = 250 mL cup with 15/5 mL spoons, imperial = 284.13 mL cup with UK pints. Explicit units such as metric_cup always win."
},
"target_servings": {
"type": "number",
"maximum": 1000,
"description": "Servings you want.",
"exclusiveMinimum": 0
},
"original_servings": {
"type": "number",
"maximum": 1000,
"description": "Servings the recipe makes now.",
"exclusiveMinimum": 0
},
"to_metric_weights": {
"type": "boolean",
"description": "Also give grams for each line. Default false."
}
}
}{
"title": "Scale recipe",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}convert_oven_temperature — Convert oven temperature between F, C and gas mark
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.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"value",
"from_scale"
],
"properties": {
"fan": {
"enum": [
"none",
"conventional_to_fan",
"fan_to_conventional"
],
"type": "string",
"description": "Fan oven adjustment. Default none."
},
"value": {
"type": "number",
"description": "Temperature or gas mark, e.g. 350, 180 or 4."
},
"from_scale": {
"enum": [
"F",
"C",
"gas"
],
"type": "string",
"description": "Scale of value: F, C or gas (gas mark)."
}
}
}{
"title": "Convert oven temperature",
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}Prompts
Not advertised
Resources
Not advertised
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 1 of 1 (100%)
- Average latency
- 451 ms
- 95th percentile latency
- 451 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 451 ms · metadata changed · 4 tool(s)
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http cups-to-grams-mcp https://cups-to-grams-mcp.lipmichal.workers.dev/mcpCodex
codex mcp add cups-to-grams-mcp --url https://cups-to-grams-mcp.lipmichal.workers.dev/mcpCursor
{
"mcpServers": {
"cups-to-grams-mcp": {
"url": "https://cups-to-grams-mcp.lipmichal.workers.dev/mcp"
}
}
}Cline
{
"mcpServers": {
"cups-to-grams-mcp": {
"type": "streamableHttp",
"url": "https://cups-to-grams-mcp.lipmichal.workers.dev/mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"cups-to-grams-mcp": {
"type": "http",
"url": "https://cups-to-grams-mcp.lipmichal.workers.dev/mcp"
}
}
}Gemini CLI
gemini mcp add --transport http cups-to-grams-mcp https://cups-to-grams-mcp.lipmichal.workers.dev/mcpClaude Desktop
{
"mcpServers": {
"cups-to-grams-mcp": {
"url": "https://cups-to-grams-mcp.lipmichal.workers.dev/mcp"
}
}
}Windsurf
{
"mcpServers": {
"cups-to-grams-mcp": {
"serverUrl": "https://cups-to-grams-mcp.lipmichal.workers.dev/mcp"
}
}
}Let your agent find its tools
Find servers like Cups to Grams MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.