[Integrations](https://spiral.ai/integrations) › [Cline](https://spiral.ai/integrations/cline) › [AFCD food groups](https://spiral.ai/integrations/cline/afcd-food-groups)

# How to Use AFCD food groups in Cline

Returns AFCD's food group hierarchy. Use it to identify the right category before building a food browser or comparing foods within a category.

|  |  |
| --- | --- |
| Model | AFCD food groups |
| Available through | Alexandria |
| Category | Industry Data |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with AFCD food groups in Cline

- Use AFCD food groups to build category navigation for the food reference browser in this project, with cereals and dairy easy to locate.
- Use AFCD food groups to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from AFCD food groups and tell me what changed since last week.
- Check AFCD food groups and summarize what you find in three bullet points.
- Pull the newest data from AFCD food groups and give me the result as a table.

## How to set up AFCD food groups in Cline

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: In the Cline panel, click the MCP Servers icon and open the Remote Servers tab. Enter:

```bash
cline mcp add spiral https://api.spiral.ai/mcp --transport http --yes
```

2. **Sign in**: Open the Configure tab and click Authenticate on the Spiral server. Sign in to Spiral, pick the organization and click Authorize. No API key.

3. **Check it**: Spiral shows as connected on the Configure tab. In the CLI:

```bash
cline config mcp
```

### Use the Spiral skill

1. **Send Cline this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run AFCD food groups**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "afcd-foodstandards-gov-au/foods/list_food_groups",
    "input": {}
  }'
```

Then paste one of the prompts above: Cline finds AFCD food groups on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/cline

## AFCD food groups tools and prices

- [Australian Food Composition Database (AFCD, FSANZ) · List food groups](https://spiral.ai/tools/alexandria/afcd-foodstandards-gov-au/foods/list_food_groups) (Alexandria): $0.00873 per call.

## What can you do with AFCD food groups in Cline?

Build an Australian food reference browser with category navigation, nutrient explanations, and food comparisons. A coding agent can use AFCD descriptions and Public Food Keys to connect search results to the correct detail records.

### Compare breakfast cereals

Identify the ready-to-eat cereal category, list its foods, and resolve named cereals. Check nutrient definitions, rank the entries by iron, and inspect the selected food profiles and sampling notes.

### Build a cheese reformulation reference

Find AFCD's cheese categories and enumerate the reference foods. Match named cheese types, check sodium definitions and units, then compare sodium values and inspect the underlying profiles.

### Match recipe ingredients to reference foods

Map ingredients such as rolled oats, milk, and almonds to AFCD descriptions. Browse the relevant categories when names are ambiguous, then inspect preparation details and nutrient profiles before calculating recipe estimates.

### Create an Australian food reference browser

Use the category hierarchy and category inventories for navigation, food search for lookup, nutrient definitions for explanations, nutrient comparisons for sorting, and individual profiles for the detail view.

### Review changes to a food reference collection

Periodically compare retrieved categories, food inventories, nutrient definitions, rankings, and selected profiles with earlier observations. Produce a review queue when AFCD descriptions or values change.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Cline guides](https://spiral.ai/integrations/cline)

## AFCD food groups in other agents

- [Amp](https://spiral.ai/integrations/amp/afcd-food-groups)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/afcd-food-groups)
- [Claude](https://spiral.ai/integrations/claude-desktop/afcd-food-groups)
- [Claude Code](https://spiral.ai/integrations/claude-code/afcd-food-groups)
- [Codex](https://spiral.ai/integrations/codex/afcd-food-groups)
- [Cursor](https://spiral.ai/integrations/cursor/afcd-food-groups)
- [Devin](https://spiral.ai/integrations/devin/afcd-food-groups)
- [dots](https://spiral.ai/integrations/dots/afcd-food-groups)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/afcd-food-groups)
- [Gemini](https://spiral.ai/integrations/gemini/afcd-food-groups)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/afcd-food-groups)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/afcd-food-groups)
- [goose](https://spiral.ai/integrations/goose/afcd-food-groups)
- [Grok](https://spiral.ai/integrations/grok/afcd-food-groups)
- [Grok Build](https://spiral.ai/integrations/grok-build/afcd-food-groups)
- [Hermes](https://spiral.ai/integrations/hermes/afcd-food-groups)
- [Instinct](https://spiral.ai/integrations/instinct/afcd-food-groups)
- [Manus](https://spiral.ai/integrations/manus/afcd-food-groups)
- [Muse](https://spiral.ai/integrations/muse/afcd-food-groups)
- [Muse Code](https://spiral.ai/integrations/muse-code/afcd-food-groups)
- [n8n](https://spiral.ai/integrations/n8n/afcd-food-groups)
- [Notion](https://spiral.ai/integrations/notion/afcd-food-groups)
- [OpenClaw](https://spiral.ai/integrations/openclaw/afcd-food-groups)
- [opencode](https://spiral.ai/integrations/opencode/afcd-food-groups)
- [Perplexity](https://spiral.ai/integrations/perplexity/afcd-food-groups)
- [Raycast](https://spiral.ai/integrations/raycast/afcd-food-groups)
- [VS Code](https://spiral.ai/integrations/vscode/afcd-food-groups)
- [Windsurf](https://spiral.ai/integrations/windsurf/afcd-food-groups)
- [Zapier](https://spiral.ai/integrations/zapier/afcd-food-groups)

## More Cline guides

- [fal Vignette](https://spiral.ai/integrations/cline/fal-vignette)
- [AFCD food nutrient profile](https://spiral.ai/integrations/cline/afcd-food-nutrient-profile)
- [fal Text Removal](https://spiral.ai/integrations/cline/fal-text-removal)
- [AFCD food search](https://spiral.ai/integrations/cline/afcd-food-search)
- [fal Style Transfer](https://spiral.ai/integrations/cline/fal-style-transfer)
- [AFCD foods by nutrient](https://spiral.ai/integrations/cline/afcd-foods-by-nutrient)

## Questions about AFCD food groups in Cline

**Can Cline use AFCD food groups?**

Yes. Add Spiral to Cline as an MCP server, and Cline can find and run AFCD food groups like any built-in tool.

**How much does AFCD food groups cost in Cline?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Cline plan is separate.

**Do I need an Alexandria account to use AFCD food groups in Cline?**

No. Spiral runs AFCD food groups on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up AFCD food groups in Cline?**

About two minutes: add the server, then sign in, then check it.

**Does Cline wait while AFCD food groups runs?**

AFCD food groups runs in the background. Cline starts the run, checks on it and gives you the json when it's ready.

**Which foods does AFCD cover?**

AFCD covers 1,588 foods commonly available in Australia. Its coverage is a reference selection of Australian foods, rather than a complete inventory of products sold worldwide.

**How many nutrients can AFCD describe?**

AFCD reports up to 268 nutrients per food. The nutrient documentation explains the units, derivation, assumptions, and limitations used for those components.

**What changed in the latest AFCD dataset?**

Release 3 incorporated new analytical data for 118 foods and an updated vitamin D dataset. That update describes the dataset as a whole; individual sampling notes provide the evidence behind a particular food.

**Are all AFCD values laboratory measurements?**

Laboratory analysis is the primary source, but a food's derivation can also identify calculated, borrowed, or label-based data. Sampling notes can include how many samples were purchased and where and when they were purchased.

**Are nutrient comparisons based on serving size?**

AFCD's nutrient comparison tables report values per 100 g. A ranking therefore compares equal food weights, which can differ substantially from the amounts someone would serve.

