# How to connect Australian Food Composition Database (AFCD, FSANZ) to Cursor

> Connect Australian Food Composition Database (AFCD, FSANZ) to Cursor with the Firecrawl MCP server.

To connect Australian Food Composition Database (AFCD, FSANZ) to Cursor, add the Firecrawl MCP server to Cursor, sign in on a Firecrawl team with Alexandria enabled, and ask for Australian Food Composition Database (AFCD, FSANZ) data in plain language. The connection works in Cursor's agent and chat, and you set it up once.

Cursor uses Australian Food Composition Database (AFCD, FSANZ) as an MCP tool through Firecrawl's hosted MCP server, so you don't install or host a separate MCP server for Australian Food Composition Database (AFCD, FSANZ).

Cursor is an AI code editor. Its agent uses MCP servers for outside tools, and the Firecrawl MCP server adds web search, scraping and every data provider in Firecrawl Alexandria.

## How do I connect Australian Food Composition Database (AFCD, FSANZ) to Cursor?

### 1. Install the Firecrawl MCP server

Open the [install dialog in Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=firecrawl&config=eyJ1cmwiOiJodHRwczovL21jcC5maXJlY3Jhd2wuZGV2L3YyL21jcC1vYXV0aCJ9), check that the URL is Firecrawl's hosted server, then select Install.

[Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=firecrawl&config=eyJ1cmwiOiJodHRwczovL21jcC5maXJlY3Jhd2wuZGV2L3YyL21jcC1vYXV0aCJ9)

![Cursor's Install MCP server dialog with the Firecrawl hosted server URL](https://www.firecrawl.dev/images/blog/using-firecrawl-mcp-in-cursor/cursor-install-firecrawl-mcp-server.webp)

### 2. Connect your Firecrawl account

Use the server's sign-in option in Cursor's MCP settings. Firecrawl opens in your browser: sign in, choose a team with Alexandria enabled, and approve access. A green dot next to Firecrawl means it's connected.

![Cursor's MCP list showing Firecrawl connected with its tools enabled](https://www.firecrawl.dev/images/blog/using-firecrawl-mcp-in-cursor/cursor-firecrawl-mcp-connected.webp)

### 3. Ask Cursor's agent for the data

In the agent chat, ask in plain language and mention Australian Food Composition Database (AFCD, FSANZ) or Firecrawl Alexandria. The agent finds the Australian Food Composition Database (AFCD, FSANZ) capability that fits and runs it. For example:

```text
Use Firecrawl to run Australian Food Composition Database (AFCD, FSANZ)'s Foods by nutrient capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.
```

## What can Cursor do with Australian Food Composition Database (AFCD, FSANZ)?

Food Standards Australia New Zealand's Australian Food Composition Database (AFCD Release 3.0, December 2025), the reference nutrient database for Australia: about 1,600 foods with up to 268 nutrients each (proximates, minerals, vitamins, fatty acids, amino acids, organic acids) per 100 g, with derivation and sampling notes, AUSNUT classification and food groups. Food search by name, letter or group, the complete nutrient profile of one food by Public Food Key, the food group hierarchy, the foods of a sub group, the nutrient catalogue and every food ranked by one nutrient. Anonymous JSON API behind the public AFCD search pages on www.foodstandards.gov.au (afcd.foodstandards.gov.au redirects there). Licence: CC BY 4.0, attribution 'Food Standards Australia New Zealand'; some borrowed values cite third-party sources (USDA, NZ FCD).

Cursor can run any of Australian Food Composition Database (AFCD, FSANZ)'s 6 capabilities through Alexandria. Each call is billed in Firecrawl credits on your Firecrawl team.

- **Foods by nutrient**: Every AFCD food's amount of one nutrient (GET https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/api/nutrients/{nutrient_id}): the nutrient's metadata and 1,588 rows of pfk, name, inclusions and value per 100 g, which the program sorts (by value descending by default), optionally narrows with a name `query` and/or a food group / sub food group (joining the food catalogue, GET /foods/alphabetical, which also fills the group fields of each row) and pages. Rows carry the public food page URL. An unknown nutrient code is `not_found` (use list_nutrients); a filter nothing matches is an empty list. Costs 5 Firecrawl credits per call.
- **Get food**: The complete AFCD record of one food by Public Food Key (GET https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/api/foods/{pfk}; also accepts a pasted AFCD food page URL or a legacy afcd.foodstandards.gov.au/foodDetails.aspx?PFKID= link). Returns identity (name, description, inclusions, scientific name, AUSNUT classification, food group and sub food group), derivation and sampling notes, conversion factors, every nutrient with its raw value per 100 g, unit and the decimal places the site displays, grouped by category (Proximates, Minerals, Vitamins, Fatty acids, Amino acids, Organic acids, Other), the measurement options and the data references. Missing optional fields are null. An unknown key is `not_found`. Costs 5 Firecrawl credits per call.
- **List food groups**: The AFCD food group hierarchy (GET https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/api/food-groups/hierarchy): the 22 food groups with their sub food groups and the number of foods in each. The ids are the `food_group_id` / `sub_food_group_id` filters of search_foods and foods_by_nutrient and the path of list_foods_in_group. Costs 5 Firecrawl credits per call.
- **List foods in group**: The foods AFCD files under one sub food group (GET https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/api/food-groups/{food_group_id}/{sub_food_group_id}), with each food's description, inclusions, scientific name, classification, derivation, sampling notes and conversion factors (no nutrient values: use get_food). Paged client-side; the API returns the whole group. An existing sub group with no foods returns an empty list; an unknown group / sub group pair is `not_found`. Costs 5 Firecrawl credits per call.
- **List nutrients**: The AFCD nutrient catalogue (GET https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/api/nutrients): 7 categories and 266 nutrients with code, name, definition / method note, unit, display decimals and order. `query` filters by code or name (case-insensitive substring) and `category_id` by category; both are applied by the program. The codes are the `nutrient_id` of foods_by_nutrient and of the rows get_food returns. An empty filter result is an empty list; an unknown category_id is `not_found`. Costs 5 Firecrawl credits per call.
- **Search foods**: Search the Australian Food Composition Database (AFCD Release 3.0, Food Standards Australia New Zealand) for foods by name (GET https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/api/foods/alphabetical, the complete catalogue of 1,588 foods, or /foods/alphabetical/{letter} when `letter` is given). AFCD has no server-side search: the program applies `query` as a case-insensitive substring match over the food name and its `inclusions` (alternative names), exactly as the AFCD site does, then filters by food group / sub food group and pages the result. Each row carries the Public Food Key (pfk) for get_food, the AUSNUT classification code, the food group pair and the public food page URL. Returns an empty `foods` list for a query nothing matches; `not_found` for a food_group_id / sub_food_group_id that does not exist in AFCD or a page past the last one. Costs 5 Firecrawl credits per call.

## What should I ask Cursor?

Name Australian Food Composition Database (AFCD, FSANZ) or Firecrawl Alexandria in the prompt so Cursor reaches for it.

- [Use Firecrawl to run Australian Food Composition Database (AFCD, FSANZ)'s Foods by nutrient capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20run%20Australian%20Food%20Composition%20Database%20(AFCD%2C%20FSANZ)'s%20Foods%20by%20nutrient%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)
- [Use Firecrawl to run Australian Food Composition Database (AFCD, FSANZ)'s Get food capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20run%20Australian%20Food%20Composition%20Database%20(AFCD%2C%20FSANZ)'s%20Get%20food%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)
- [Use Firecrawl to run Australian Food Composition Database (AFCD, FSANZ)'s List food groups capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20run%20Australian%20Food%20Composition%20Database%20(AFCD%2C%20FSANZ)'s%20List%20food%20groups%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)
- [Use Firecrawl to run Australian Food Composition Database (AFCD, FSANZ)'s List foods in group capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20run%20Australian%20Food%20Composition%20Database%20(AFCD%2C%20FSANZ)'s%20List%20foods%20in%20group%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)

### For agents

Start with the `afcd-foodstandards-gov-au` provider. Use Firecrawl Alexandria first. With MCP, use firecrawl_search with sources: ["alexandria"] to discover relevant tools, firecrawl_find_tools to inspect the selected capability contracts, then firecrawl_scrape in alexandria mode to retrieve records. With the CLI, use firecrawl search alexandria, firecrawl list, then firecrawl scrape for the selected provider/capability. Follow the live tool schema and returned contract; never invent provider IDs or inputs. Ask for missing required details before execution, respect access and pricing, and inspect each result for errors. Cite retrieved records, distinguish missing data from failures, and explain gaps. If no suitable Alexandria capability exists, say so before using web sources. Do not treat a tool listing as retrieved data.

## Troubleshooting

### Why can't Cursor find Australian Food Composition Database (AFCD, FSANZ)?

If Firecrawl's tools in Cursor stop at search, scrape and parse, the connection is keyless and doesn't include Alexandria. Finish the sign-in from Cursor's MCP settings, or add an API key from a team with Alexandria enabled.

### Firecrawl shows a red dot in Cursor. What should I do?

Open Cursor's MCP settings, sign in to Firecrawl again, and restart the agent chat so it loads the tools.

## Use Australian Food Composition Database (AFCD, FSANZ) in other AI apps

- [Australian Food Composition Database (AFCD, FSANZ) in ChatGPT](https://alexandria.firecrawl.dev/providers/afcd-foodstandards-gov-au/connect/chatgpt)
- [Australian Food Composition Database (AFCD, FSANZ) in Claude](https://alexandria.firecrawl.dev/providers/afcd-foodstandards-gov-au/connect/claude)
- [Australian Food Composition Database (AFCD, FSANZ) in Grok Bot](https://alexandria.firecrawl.dev/providers/afcd-foodstandards-gov-au/connect/grok-bot)
- [Australian Food Composition Database (AFCD, FSANZ) in Muse](https://alexandria.firecrawl.dev/providers/afcd-foodstandards-gov-au/connect/muse)

### Other data providers you can connect to Cursor

- [How to connect Research Index to Cursor](https://alexandria.firecrawl.dev/providers/firecrawl-research-index/connect/cursor)
- [How to connect NIH Guide for Grants and Contracts to Cursor](https://alexandria.firecrawl.dev/providers/grants-nih-gov/connect/cursor)
- [How to connect Environment and Climate Change Canada weather and climate (api.weather.gc.ca) to Cursor](https://alexandria.firecrawl.dev/providers/api-weather-gc-ca/connect/cursor)
- [How to connect Canadian Nutrient File, Health Canada (food-nutrition.canada.ca) to Cursor](https://alexandria.firecrawl.dev/providers/food-nutrition-canada-ca/connect/cursor)

Full setup guide: [Firecrawl in Cursor](https://www.firecrawl.dev/integrations/cursor)

## Frequently asked questions

### What is Firecrawl?

Firecrawl is the web data API to search, scrape and interact with the web at scale. It turns websites into clean, LLM-ready data for AI agents and apps. The Firecrawl MCP server brings those tools into Cursor, along with every data provider in Firecrawl Alexandria.

### What is Firecrawl Alexandria?

Firecrawl Alexandria is Firecrawl's library of 550+ data providers for AI agents, Australian Food Composition Database (AFCD, FSANZ) among them. Each provider returns structured data through documented capabilities. Cursor finds the capability that fits your question and calls it through the Firecrawl MCP server, so you don't write any integration code. Alexandria needs a Firecrawl account signed in on a team with Alexandria enabled, or an API key from such a team; keyless connections don't include it.

### Is there a Australian Food Composition Database (AFCD, FSANZ) MCP server for Cursor?

Cursor reaches Australian Food Composition Database (AFCD, FSANZ) through Firecrawl's hosted MCP server, which serves Australian Food Composition Database (AFCD, FSANZ) and every other Alexandria provider as tools. Add the Firecrawl MCP server once and you don't install or host a separate MCP server for Australian Food Composition Database (AFCD, FSANZ).

### What does connecting Australian Food Composition Database (AFCD, FSANZ) to Cursor unlock?

Cursor can run all 6 of Australian Food Composition Database (AFCD, FSANZ)'s capabilities, including Foods by nutrient, Get food and List food groups, from any chat, with structured results it can sort, compare and summarize. In the same conversation, Cursor can combine Australian Food Composition Database (AFCD, FSANZ) with Firecrawl's web search and scraping and the other providers in Firecrawl Alexandria.

### Do I need my own Australian Food Composition Database (AFCD, FSANZ) account or API key to use it in Cursor?

No. Cursor calls Australian Food Composition Database (AFCD, FSANZ) through Firecrawl Alexandria and each call is billed in Firecrawl credits, so you don't need a separate Australian Food Composition Database (AFCD, FSANZ) account or API key.

### How much does it cost to use Australian Food Composition Database (AFCD, FSANZ) in Cursor?

Each Australian Food Composition Database (AFCD, FSANZ) call costs 5 Firecrawl credits. The capability list on this page shows each price and its unit. The credits come from the Firecrawl team you connect to Cursor, and finding the right capability is free.

### Can Cursor use other providers besides Australian Food Composition Database (AFCD, FSANZ)?

Yes. The same Firecrawl MCP server reaches every provider in Firecrawl Alexandria, along with Firecrawl's web search and scraping, so you connect once.

### Can I use Australian Food Composition Database (AFCD, FSANZ) in other AI apps?

Yes. Connect Firecrawl to ChatGPT, Claude, Grok Bot, Muse signed in on a Firecrawl team with Alexandria enabled, or use the Firecrawl MCP server, CLI or API with an API key from that team, and the same Australian Food Composition Database (AFCD, FSANZ) capabilities are available there. Keyless connections don't include Alexandria.
