• STRUCTURED
  • MACROS
  • LOGS
  • HUMAN

How to extract nutritional data from recipe websites with your AI

Connect Spoonacular to your AI client to pull structured data from any cooking blog or recipe link. Your agent handles the parsing and math for you.

Ask AI about this page

Short answer

How can I get nutrition facts from a recipe URL?

Paste a recipe URL into your chat and ask your AI to pull the ingredients and macros. The AI uses Spoonacular to scrape the site and calculate the nutritional breakdown. You get a clean list of calories, protein, fats, and carbs immediately.

The results.

Where your data lands.

The AI processes the URL and organizes the information into these specific formats.

STRUCTURED

Clean ingredient lists

The AI strips away the blog stories and ads. You get a precise list of every ingredient and measurement needed for the dish.

MACROS

Detailed nutrition facts

The AI calculates the caloric density and macronutrient profile. This includes protein, fat, carbohydrates, and fiber counts.

LOGS

Meal planning data

The parsed data is ready to be moved into your spreadsheets or tracking apps. It turns a webpage into usable numbers.

HUMAN

Manual verification

You should check the extracted measurements against the original site. This ensures the AI didn't miss a specific brand or quantity.

The workflow

What your AI does when a URL arrives.

Your agent acts as the bridge between a messy webpage and your structured data needs.

  1. Scrape the recipe

    The AI visits the provided URL to find the core cooking instructions and ingredient list.

    extract_recipe
  2. Calculate macros

    Once the ingredients are identified, the AI pulls the specific nutritional values for the dish.

    get_recipe_nutrition
  3. Format the output

    The AI organizes the raw data into a readable format like a table or a list.

    extract_recipe
  4. Verify the math

    The AI cross-references the ingredient amounts with the nutritional totals to ensure accuracy.

    get_recipe_nutrition

Try it

Copy these to start.

Use these prompts to trigger the extraction process.

Starting points

Swap the bracketed text for your actual recipe links or specific macro targets.

Spoonacular Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_JThQP0L3xcV8iDCwm4LAJIQrbWZXIAIi8oe6TmGj/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat — Spoonacular capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "spoonacular-alternative-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_JThQP0L3xcV8iDCwm4LAJIQrbWZXIAIi8oe6TmGj/mcp"
    }
  }
}
Copy into chat04
  • Extract the ingredients and nutrition facts from this recipe: [URL]

  • Give me a macro breakdown for the recipe at [URL].

  • List the ingredients from [URL] and tell me how much protein is in the whole dish.

  • Convert this recipe into a table with columns for ingredient, amount, and calories: [URL]

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Spoonacular once, then ask.

One click connects this MCP to your AI client. Your credentials stay encrypted and your workflow stays local to your chat.

Connect Spoonacular to your AI

FAQ

How this task behaves.

  • 01

    Can the AI edit the recipe on the original website?

    No. The AI only reads the data from the URL; it cannot change the content on the website itself.

  • 02

    Does it work with any food blog?

    Yes, as long as the recipe is visible on the page, the AI can attempt to extract the data.

  • 03

    Will the AI automatically add these recipes to my fitness app?

    No. The AI provides the data to you in your chat. You must manually copy it into your tracking apps.

  • 04

    Can it calculate nutrition for a custom list of ingredients I type in?

    Yes, you can provide a list of ingredients directly instead of a URL.

  • 05

    Does the AI handle serving size changes?

    The AI calculates based on the recipe's stated serving size, but you can ask it to scale the nutrition for different amounts.

  • More questions about Spoonacular? The Connector page answers them. See everything the Spoonacular Connector can do

Connect Spoonacular to Claude, Cursor, ChatGPT & more