# How to connect Open Food Facts to Cursor

> Connect Open Food Facts to Cursor with the Firecrawl MCP server. Use Open Food Facts as an MCP tool in Cursor via Firecrawl Alexandria.

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

Cursor uses Open Food Facts as an MCP tool through Firecrawl's hosted MCP server, so you don't install or host a separate MCP server for Open Food Facts.

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 Open Food Facts 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 Open Food Facts or Firecrawl Alexandria. The agent finds the Open Food Facts capability that fits and runs it. For example:

```text
Use Firecrawl to run Open Food Facts' Product capability. Inspect the Alexandria inputs, ask for any missing required details, and return a small sample with sources.
```

## What can Cursor do with Open Food Facts?

Open Food Facts, the open database of packaged foods (world.openfoodfacts.org): product facts by barcode (name, brand, quantity, countries, ingredients, allergens, additives, Nutri-Score, NOVA, per-100g and per-serving nutrition, images), full-text and filtered product search over the Search-a-licious service, and taxonomy autocomplete for categories, brands, labels and countries. Anonymous read API; data under ODbL, images CC BY-SA.

Cursor can run any of Open Food Facts's 3 capabilities through Alexandria. Each call is billed in Firecrawl credits on your Firecrawl team.

- **Product**: One packaged food product by barcode (GTIN/EAN/UPC) from Open Food Facts: names, brand, quantity and serving, selling countries, categories, labels, stores, ingredients (text and parsed list with percent estimates and vegan/vegetarian flags), allergens, traces, additives, ingredient analysis, Nutri-Score (grade, score, version), NOVA group, Eco-Score, nutrient levels, the raw nutriments table (per 100 g and per serving, site keys), a fixed per-100g summary, image URLs, edit timestamps, the canonical product URL and the ODbL attribution. Costs 5 Firecrawl credits per call.
- **Search**: Search Open Food Facts products through the Search-a-licious service: free text (matched on product name, generic name, categories, labels and brands in `lang`) and/or structured filters (selling country, category, brand, Nutri-Score grade, NOVA group), sorted by relevance, popularity or last edit, paginated. Each hit carries barcode, product URL, name, brands, quantity, categories, countries, Nutri-Score, NOVA, Eco-Score, allergens, a per-100g nutrient summary, image URLs and the edit timestamp. Optional facet counts for brands, Nutri-Score grades and countries. Costs 5 Firecrawl credits per call.
- **Suggest**: Autocomplete Open Food Facts taxonomy entries (categories, brands, labels, countries) from a typed prefix, returning the canonical ids (`en:oat-milks`, `en:france`) that `search` filters accept together with their display names. Costs 5 Firecrawl credits per call.

## What should I ask Cursor?

Name Open Food Facts or Firecrawl Alexandria in the prompt so Cursor reaches for it.

- [Use Firecrawl to run Open Food Facts' Product 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%20Open%20Food%20Facts'%20Product%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)
- [Use Firecrawl to run Open Food Facts' Search 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%20Open%20Food%20Facts'%20Search%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)
- [Use Firecrawl to run Open Food Facts' Suggest 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%20Open%20Food%20Facts'%20Suggest%20capability.%20Inspect%20the%20Alexandria%20inputs%2C%20ask%20for%20any%20missing%20required%20details%2C%20and%20return%20a%20small%20sample%20with%20sources.)
- [Use Firecrawl to find the right Open Food Facts capabilities for my research question](https://cursor.com/link/prompt?text=Use%20Firecrawl%20to%20find%20the%20right%20Open%20Food%20Facts%20capabilities%20for%20my%20research%20question)

### For agents

Start with the `world-openfoodfacts-org` 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 Open Food Facts?

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 Open Food Facts in other AI apps

- [Open Food Facts in ChatGPT](https://alexandria.firecrawl.dev/providers/world-openfoodfacts-org/connect/chatgpt)
- [Open Food Facts in Claude](https://alexandria.firecrawl.dev/providers/world-openfoodfacts-org/connect/claude)
- [Open Food Facts in Grok Bot](https://alexandria.firecrawl.dev/providers/world-openfoodfacts-org/connect/grok-bot)
- [Open Food Facts in Muse](https://alexandria.firecrawl.dev/providers/world-openfoodfacts-org/connect/muse)

### Other data providers you can connect to Cursor

- [How to connect AlphaFold Protein Structure Database to Cursor](https://alexandria.firecrawl.dev/providers/alphafold-ebi-ac-uk/connect/cursor)
- [How to connect France public medicines database (BDPM) to Cursor](https://alexandria.firecrawl.dev/providers/base-donnees-publique-medicaments-gouv-fr/connect/cursor)
- [How to connect ClinVar to Cursor](https://alexandria.firecrawl.dev/providers/clinvar-ncbi-nlm-nih-gov/connect/cursor)
- [How to connect CMS Medicare Drug Prices: Negotiated Prices and Part B ASP Payment Limits to Cursor](https://alexandria.firecrawl.dev/providers/cms-gov/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, Open Food Facts 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 Open Food Facts MCP server for Cursor?

Cursor reaches Open Food Facts through Firecrawl's hosted MCP server, which serves Open Food Facts 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 Open Food Facts.

### What does connecting Open Food Facts to Cursor unlock?

Cursor can run Open Food Facts's Product, Search and Suggest, from any chat, with structured results it can sort, compare and summarize. In the same conversation, Cursor can combine Open Food Facts with Firecrawl's web search and scraping and the other providers in Firecrawl Alexandria.

### Do I need my own Open Food Facts account or API key to use it in Cursor?

No. Cursor calls Open Food Facts through Firecrawl Alexandria and each call is billed in Firecrawl credits, so you don't need a separate Open Food Facts account or API key.

### How much does it cost to use Open Food Facts in Cursor?

Each Open Food Facts 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 Open Food Facts?

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 Open Food Facts 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 Open Food Facts capabilities are available there. Keyless connections don't include Alexandria.
