• DATA
  • MATH
  • ANALYSIS
  • HUMAN

How to calculate meal macros with your agent

Connect FatSecret to your AI client to turn meal descriptions into nutritional data. Your agent handles the database lookups and the math.

Ask AI about this page

Our technology reaches across leading technology and enterprise teams.

  • Amazon
  • NVIDIA
  • Red Hat
  • Fidelity Investments
  • Intuit
  • OLX Brasil
  • Writesonic
  • Artium
  • Trolley
Bunny World Voxel Workspace

Short answer

How can I use AI to track my macros?

Tell your agent what you ate and the portion size. It pulls the nutritional profile from FatSecret and calculates the protein, carbs, and fats for you. You'll get a complete macro breakdown.

The outcomes

What you get from your agent

Your agent does the heavy lifting by pulling data and scaling it to your specific meal.

DATA

Nutritional profiles

Your agent fetches specific calorie, fat, protein, and carb counts from the FatSecret database. You get the raw numbers for any food item.

MATH

Portion scaling

Your agent adjusts the nutritional data based on the weight or volume you provide. It calculates the exact macros for your specific serving size.

ANALYSIS

Meal composition

Your agent can sum up multiple ingredients to show the total macro split for a single dish. This gives you a clear view of your meal's impact.

HUMAN

Manual verification

You review the data your agent pulls to ensure it matches what you actually ate. Your agent provides the numbers, but you confirm the accuracy.

The workflow

What your agent does when you describe a meal.

Your agent acts as a bridge between your chat and the FatSecret database.

  1. Identify food

    Your agent parses your text to find the specific food item you're describing.

    get_fatsecret_food_details
  2. Fetch data

    Your agent pulls the nutritional profile for that item from the database.

    get_fatsecret_food_details
  3. Scale portions

    Your agent applies the nutritional data to the specific weight or serving size you mentioned.

    get_fatsecret_food_details
  4. Calculate totals

    Your agent sums the nutrients to provide a final macro count for the meal.

    get_fatsecret_food_details

Vinkius Agentic Execution Platform

State the outcome. Agents take it from there.

You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.

Run it in Vinkius

Agents carry the task to the end

Agents execute FatSecret tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.

Take it to any compatible AI

One connection, any client

Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.

Spaces

One Space per activity

A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.

Limits

Autonomy inside limits you set

Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.

Record

All steps, on the record

Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.

Models

Included in your plan

A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.

Try it

Copy these to start.

Use these prompts to begin your nutritional analysis.

Starting points

Replace the food names and amounts with your actual meal details.

FatSecret Connector

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

Connector linkhttps://edge.vinkius.com/vk_preview_ltoVus2qK1BQ5r7C33cCY2nztaYw2SE4eC1Hkl37/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, FatSecret capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "fatsecret-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_ltoVus2qK1BQ5r7C33cCY2nztaYw2SE4eC1Hkl37/mcp"
    }
  }
}
Copy into chat04
  • 01

    Calculate the macros for 250g of cooked chicken breast.

  • 02

    What are the nutritional details for a large Fuji apple?

  • 03

    I ate 150g of Greek yogurt and 30g of granola. Give me the macro breakdown.

  • 04

    Find the protein and carb content for 1 cup of cooked quinoa.

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

Start here

Connect FatSecret once, then ask.

Connect the FatSecret MCP to your AI client in one click. Your credentials stay encrypted on our side, and you can start asking about food immediately.

Connect FatSecret to your agent

FAQ

How this task behaves

  • 01

    Can your agent log my meals directly into the FatSecret app?

    No. Your agent only pulls data from the database to show you in your chat. You have to log the meal in your app yourself.

  • 02

    Does your agent know the exact brand of food I ate?

    Only if that brand is in the FatSecret database. If you don't name a brand, your agent pulls data for the generic version.

  • 03

    Can your agent change my daily calorie goals?

    No. Your agent only calculates the macros for the food you describe. It cannot modify your user profile or settings.

  • 04

    How accurate are the macro calculations?

    The accuracy depends on the data in FatSecret. Your agent performs the math based on the specific serving sizes you provide.

  • 05

    Can I ask for the macros of a recipe?

    Yes. If you list the ingredients and their amounts, your agent will fetch the data for each item and sum them up.

  • More questions about FatSecret? See everything the FatSecret Connector can do

Building with AI? Ship this whole workflow in your product.

Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from FatSecret to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.

Explore Vinkius Connect

TypeScript · Python · Java · Go · C# · PHP · Rust

  • 01

    Your customers bring their own keys.

    Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.

  • 02

    Whole catalog, kept current.

    FatSecret plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.

  • 03

    Any agent, any model.

    Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.

Connect FatSecret to Claude, Cursor, ChatGPT & more

From idea to done

See what gets done when the agents take over the busywork

Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.