[Integrations](https://spiral.ai/integrations) › [Cline](https://spiral.ai/integrations/cline) › [Canadian Nutrient File food details](https://spiral.ai/integrations/cline/canadian-nutrient-file-food-details)

# How to Use Canadian Nutrient File food details in Cline

Get a food's nutrient profile and serving measures from Health Canada's online CNF. Use it to check a specific food or calculate nutrients for a reported portion after finding its food code.

|  |  |
| --- | --- |
| Model | Canadian Nutrient File food details |
| 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 Canadian Nutrient File food details in Cline

- Use Canadian Nutrient File food details for food code 61 and add a nutrient table to our recipe app, showing the returned units and serving measures.
- Use Canadian Nutrient File food details to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Canadian Nutrient File food details and tell me what changed since last week.
- Check Canadian Nutrient File food details and summarize what you find in three bullet points.
- Pull the newest data from Canadian Nutrient File food details and give me the result as a table.

## How to set up Canadian Nutrient File food details 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 Canadian Nutrient File food details**: 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": "food-nutrition-canada-ca/foods/get_food",
    "input": {
      "url": "<url>"
    }
  }'
```

Then paste one of the prompts above: Cline finds Canadian Nutrient File food details on Spiral, shows the price and runs it.

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

## Canadian Nutrient File food details tools and prices

- [Canadian Nutrient File, Health Canada (food-nutrition.canada.ca) · Get food](https://spiral.ai/tools/alexandria/food-nutrition-canada-ca/foods/get_food) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| url |  | — | A CNF page URL carrying the food code: https://food-nutrition.canada.ca/cnf-fce/serving-portion?id={food_code} or .../nutrientReport-rapportAliment?food-aliment-id={food_code}&id=... |
| lang | en, fr | en | Language of the description, nutrient names, measure, refuse, yield and source texts. |
| measure |  | — | One of the food's measure names as the CNF writes them (e.g. '250ml', '100ml diced', '1 slice'); spaces, commas and case are ignored. Adds `value_per_measure` to every nutrient row and sets `selected_measure`. |
| food_code | 1 to 99999999 | — | CNF food code (e.g. 61 Milk, fluid, partly skimmed, 2% M.F.; 119 Cheese, cheddar). Give this or `url`. |
| nutrient_ids |  | — | Return only these CNF nutrient ids (`nutrient_name_id` from `list_nutrients`). An id that is not in the CNF nutrient dictionary is invalid input; a known nutrient the CNF does not report for this food is simply absent. |

## What can you do with Canadian Nutrient File food details in Cline?

Build a Canadian food comparison feature with CNF descriptions, categories, nutrient definitions, and portion-aware results. A coding agent can turn this 2015 reference data into labeled tables for recipe and menu projects.

### Build a recipe substitution reference

Find descriptions matching lentils, beans, and chickpeas, organize them by CNF food category, resolve protein and fiber definitions, rank candidates, and inspect portions before proposing ingredient substitutions.

### Compare cafeteria menu ingredients

Organize candidate ingredients by food category, match their preparation descriptions, identify sodium and protein units, and compare ranked foods with their detailed serving profiles.

### Create a food composition classroom exercise

Let students choose a CNF category and nutrient, find familiar foods, examine the ranking, and compare the reported portions with complete food profiles. Include the edition and nutrient units in the worksheet.

### Screen ingredients for a product concept

Build a category-based shortlist for a soup or snack concept, resolve the nutrients of interest, rank candidate foods, and review matching descriptions and portion values. Use the results as reference estimates during concept work.

### Check ingredient matches in recipe data

Match recipe ingredients to CNF descriptions and food codes, then inspect nutrient profiles for the chosen preparation. Review ambiguous matches before calculating recipe totals.

### Explain nutrient units in food comparisons

Look up nutrient definitions and units, then use detailed food profiles to explain exactly which component a comparison measures.

### Draft a public food comparison article

Find the food descriptions used in an article, check nutrient definitions, and inspect ranked results and detailed profiles before writing comparisons.

## Overview

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

## Canadian Nutrient File food details in other agents

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

## More Cline guides

- [CER regulatory instruments](https://spiral.ai/integrations/cline/cer-regulatory-instruments)
- [Canadian Nutrient File food groups](https://spiral.ai/integrations/cline/canadian-nutrient-file-food-groups)
- [CER pipeline tolls](https://spiral.ai/integrations/cline/cer-pipeline-tolls)
- [Canadian Nutrient File food search](https://spiral.ai/integrations/cline/canadian-nutrient-file-food-search)
- [CER pipeline throughput](https://spiral.ai/integrations/cline/cer-pipeline-throughput)
- [Canadian Nutrient File nutrient dictionary](https://spiral.ai/integrations/cline/canadian-nutrient-file-nutrient-dictionary)

## Questions about Canadian Nutrient File food details in Cline

**Can Cline use Canadian Nutrient File food details?**

Yes. Add Spiral to Cline as an MCP server, and Cline can find and run Canadian Nutrient File food details like any built-in tool.

**How much does Canadian Nutrient File food details 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 Canadian Nutrient File food details in Cline?**

No. Spiral runs Canadian Nutrient File food details on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Canadian Nutrient File food details in Cline?**

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

**Does Cline wait while Canadian Nutrient File food details runs?**

Canadian Nutrient File food details runs in the background. Cline starts the run, checks on it and gives you the json when it's ready.

**Does the online CNF contain the latest Canadian nutrient dataset?**

The online CNF still serves the 2015 edition, and Health Canada says those pages will not be updated. The 2026 dataset is available separately, so an online lookup does not establish a food's current formulation.

**How much food and nutrient coverage does the online edition have?**

The 2015 CNF contains 5,690 foods with up to 152 food components. Coverage varies by food and nutrient; an unavailable nutrient value is not a measured zero.

**Where do the Canadian food values come from?**

The 2015 CNF incorporates USDA reference data through SR27 for foods corresponding to the Canadian market. Health Canada adjusts values for Canadian fortification and regulatory standards and adds Canadian food data.

**Are nutrient amounts based on a serving or on food weight?**

The underlying CNF values are recorded per 100 grams of edible food. Food-specific conversion factors translate those values into household measures, so a volume measure needs the weight associated with that food.

**Can CNF values replace a packaged product's nutrition label?**

CNF values generally represent averages across products, with brand-specific information only where the description identifies it. Health Canada says the generic information is not specific enough to produce a product's Nutrition Facts table.

