Skip to main content
Glama
Recipe Commerce Intelligence MCP

Recipe Commerce Intelligence MCP

Recipe Commerce Intelligence MCP

npm License: MIT Stars

Turn recipes into affiliate revenue. Extract every branded ingredient and kitchen tool from any recipe, match each to Amazon Associates, ShareASale, or Awin, and generate a shoppable ingredient list in seconds. F1=100% on eval suite. Free tier: 200 calls/day.

⭐ If this saves you time, please star the repo — it helps other developers find it.

Live endpoint: https://recipe-commerce-mcp.sincetoday.workers.dev/mcp · See examples

Extract recipes and ingredients from cooking video transcripts, match to purchasable products, and build affiliate shopping lists. Built on x402, the open payment standard backed by Shopify, Google, Microsoft, Visa, and the Linux Foundation.

Tools

Tool

Description

extract_recipe_ingredients

Extract structured recipe data from a cooking video transcript or YouTube URL

match_ingredients_to_products

Match ingredients to purchasable products with affiliate program details

suggest_affiliate_products

Generate a ranked affiliate shopping list scored by revenue potential

Related MCP server: Newsletter Commerce Intelligence MCP

Connect in Claude Code — No Install Required

Add to your claude_desktop_config.json or use /add-mcp in Claude Code. Free tier: 200 calls/day, no API key needed:

{
  "mcpServers": {
    "recipe-commerce": {
      "url": "https://recipe-commerce-mcp.sincetoday.workers.dev/mcp"
    }
  }
}

Quick Start

# Install
npm install recipe-commerce-mcp

# Configure
cp .env.example .env
# Edit .env: set OPENAI_API_KEY

# Run (stdio MCP server)
npx recipe-commerce-mcp

MCP Client Config

{
  "mcpServers": {
    "recipe-commerce": {
      "command": "npx",
      "args": ["recipe-commerce-mcp"],
      "env": {
        "OPENAI_API_KEY": "sk-..."
      }
    }
  }
}

Tool Reference

extract_recipe_ingredients

{
  "transcript": "Cooking video transcript or YouTube URL",
  "recipe_id": "optional-cache-key",
  "api_key": "optional-paid-key"
}

Returns:

{
  "result": {
    "recipeName": "Beef Bourguignon",
    "ingredients": [
      { "name": "beef chuck", "quantity": "2", "unit": "lbs", "category": "meat", "is_optional": false }
    ],
    "equipment": [
      { "name": "Le Creuset Dutch oven 5.5qt", "category": "cookware", "requiredForRecipe": true }
    ],
    "techniques": ["braising", "searing"],
    "cuisineType": "French",
    "difficulty": "medium"
  },
  "_meta": { "processing_time_ms": 1950, "ai_cost_usd": 0.0024, "cache_hit": false, "recipe_id": "..." }
}

match_ingredients_to_products

{
  "ingredients": [{ "name": "beef chuck", "quantity": "2", "unit": "lbs" }],
  "recipe_id": "optional-uses-cached-ingredients",
  "api_key": "optional"
}

Returns affiliate program details (Amazon Associates, ShareASale, Awin), price range, commission rate (2–10%), brand? (extracted brand name for branded ingredients, e.g. "Maldon" for "Maldon salt"), estimatedCommission (USD estimate based on price × commission rate), and substitution alternatives.

suggest_affiliate_products

{
  "recipe_name": "Beef Bourguignon",
  "ingredients": [...],
  "api_key": "optional"
}

Returns ingredients and equipment ranked by affiliate revenue score. Equipment scores highest (10% commission via Amazon Associates).

Example Output

Real extraction from a Serious Eats beef bourguignon recipe (live eval avg: F1=93%, 98/100 score, $0.000370/call, 2608ms):

{
  "recipe_id": "serious-eats-beef-bourguignon",
  "ingredients": [
    {
      "name": "Dutch oven (5.5 qt)",
      "brand": "Le Creuset",
      "category": "equipment",
      "is_optional": false,
      "affiliate_revenue_score": 0.92,
      "estimatedCommission": 8.50,
      "amazon_search_terms": ["dutch oven 5.5 quart", "Le Creuset 5.5 qt"]
    },
    {
      "name": "Maldon sea salt",
      "brand": "Maldon",
      "category": "ingredient",
      "is_optional": false,
      "affiliate_revenue_score": 0.18,
      "estimatedCommission": 0.42
    },
    {
      "name": "beef chuck",
      "brand": null,
      "category": "ingredient",
      "is_optional": false,
      "affiliate_revenue_score": 0.12,
      "estimatedCommission": null,
      "amazon_search_terms": null
    }
  ]
}

See /examples endpoint for full output with value narrative: https://recipe-commerce-mcp.sincetoday.workers.dev/examples

Pricing

  • Free tier: 200 calls/day per agent (no API key required)

  • Paid: $0.01/call — set MCP_API_KEYS with valid keys

Environment Variables

Variable

Required

Default

Description

OPENAI_API_KEY

Yes

—

OpenAI API key

AGENT_ID

No

anonymous

Agent identifier for rate limiting

MCP_API_KEYS

No

—

Comma-separated paid API keys

CACHE_DIR

No

./data/cache.db

SQLite cache path

PAYMENT_ENABLED

No

false

Set true to enforce limits

Development

npm install
npm run typecheck   # Zero type errors
npm test            # All tests pass
npm run build       # Compile to dist/

License

MIT — Since Today Studio

Available Tools

3 tools
extract_recipe_ingredientsA

Extract structured recipe data from transcript text or YouTube URL: recipe name, ingredients with quantity and unit, equipment list, and cooking technique tags. YouTube URL transcription requires yt-dlp installed on the server — if not available the call fails; pass raw transcript text for reliable extraction in all environments. Returns ingredient list ready for match_ingredients_to_products and suggest_affiliate_products. Call this first — both downstream tools reuse its cache. Use for recipe monetization, shoppable recipe creation, and cooking content commerce. Example: recipe_id='chocolate-chip-cookies-v1', transcript='2 cups flour...' → returns {ingredients:[{name:'flour',quantity:'2',unit:'cups',category:'pantry'},...]}.

Inputs: transcript (required), recipe_id, api_key.

match_ingredients_to_productsA

Match recipe ingredients to purchasable products on Amazon and specialty retailers. Returns affiliate program details (Amazon Associates, ShareASale, Awin), estimated price range, estimated commission rate (2–10%), and substitution alternatives. Commission rates are benchmark estimates — not live affiliate platform data. Use this tool for ingredient-level product details and substitutions; use suggest_affiliate_products for a revenue-ranked shopping list instead. Accepts ingredient list directly or recipe_id from a prior extract_recipe_ingredients call. Use for recipe affiliate monetization and shoppable recipe generation. Example: recipe_id='chocolate-chip-cookies-v1' → returns [{name:'flour',product:'King Arthur All-Purpose Flour',program:'Amazon Associates',estimated_commission_pct:4}].

Inputs: ingredients, recipe_id, api_key.

suggest_affiliate_productsA

Generate a revenue-ranked affiliate shopping list for a recipe, sorted by estimated commission potential. Equipment ranks highest (Amazon Associates ~10% commission). Returns items sorted by affiliate score with estimated price range and commission per item. Revenue estimates are algorithmic benchmarks — not live pricing data. Use this tool for ranked shopping lists and blog monetization strategy; use match_ingredients_to_products for ingredient-level product SKUs and substitutions. Accepts ingredient list or recipe_id from extract_recipe_ingredients. Example: recipe_name='Beef Bourguignon'.

Inputs: recipe_name (required), ingredients, recipe_id, api_key.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.7/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a distinct and clear purpose: extraction, matching, and suggestion. They form a logical pipeline with no overlap.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with underscores: extract_recipe_ingredients, match_ingredients_to_products, suggest_affiliate_products.

    Tool Count5/5

    Three tools is appropriate for the focused domain of recipe commerce intelligence, covering the essential workflow without excess.

    Completeness4/5

    The tool set covers the main workflow from extraction to product suggestion, though live pricing and direct purchase links are not included, but that aligns with the stated purpose of intelligence.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables 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.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Extracts sponsored products, brand mentions, and affiliate signals from newsletters to generate a shoppable 'Products in this edition' section for affiliate revenue.
      3
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables an AI assistant to search affiliate product feeds from any network (Awin, Amazon, CJ, Impact, and others with deep links) and return buy links built with the user's own affiliate IDs, each shipped with a disclosure the assistant is told to show. Supports keyword search with price, currency, network and merchant filters, side-by-side comparison of products, sub-ID tagging of links, and validation of configured feeds before connecting an assistant.
      4
      46 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables ChatGPT and Codex users to match grocery items against retailer product candidates, explain those matches, and convert recipes into scaled shopping lists for Ocado, Waitrose, Tesco or Asda. It also prepares a retailer URL and copyable list for a Chrome extension handoff, leaving the user to review the basket and check out themselves.
      AGPL 3.0