Bring Nutritional Data
to Mastra AI
Open Food Facts MCP Server · 2 tools available to AI Agents
What is the Open Food Facts MCP Server?
The Open Food Facts MCP Server connects your AI agent to the world's largest open food product database — over 2 million products from 150+ countries.
Core Capabilities
- Barcode Scanner — Instantly look up any packaged food product by its EAN/UPC barcode to get complete nutritional information.
- Product Search — Find products by name, brand, or category across the entire global database.
- Nutri-Score — Official A-to-E nutritional quality grading used across Europe.
- NOVA Classification — Food processing level indicator (1=unprocessed to 4=ultra-processed).
- Allergen Detection — Comprehensive allergen warnings including gluten, dairy, nuts, soy, and more.
Built-in capabilities (2)
Returns Nutri-Score, NOVA classification, full macronutrient profile, allergens, and ingredient list. Scan a food product barcode to get complete nutritional and allergen information
Returns nutritional information, Nutri-Score grades, NOVA processing levels, and allergen data for each product. Search the Open Food Facts database for packaged food products
Why Mastra AI?
Mastra's agent abstraction provides a clean separation between LLM logic and Open Food Facts tool infrastructure. Connect 2 tools through Vinkius and use Mastra's built-in workflow engine to chain tool calls with conditional logic, retries, and parallel execution. deployable to any Node.js host in one command.
- —
Mastra's agent abstraction provides a clean separation between LLM logic and tool infrastructure. add Open Food Facts without touching business code
- —
Built-in workflow engine chains MCP tool calls with conditional logic, retries, and parallel execution for complex automation
- —
TypeScript-native: full type inference for every Open Food Facts tool response with IDE autocomplete and compile-time checks
- —
One-command deployment to any Node.js host. Vercel, Railway, Fly.io, or your own infrastructure
Open Food Facts in Mastra AI
Open Food Facts and 2,500 other MCP servers. One platform. One governance layer.
Teams that connect Open Food Facts to Mastra AI through Vinkius don't need to source, host, or maintain individual MCP servers. Every tool call runs inside a hardened runtime with credential isolation, DLP, and a signed audit chain.
Raw MCP | Vinkius | |
|---|---|---|
| Server catalog | Find and host yourself | 2,500+ managed |
| Infrastructure | Self-hosted | Sandboxed V8 isolates |
| Credential handling | Plaintext in config | Vault + runtime injection |
| Data loss prevention | None | Configurable DLP policies |
| Kill switch | None | Global instant shutdown |
| Financial circuit breakers | None | Per-server limits + alerts |
| Audit trail | None | Ed25519 signed logs |
| SIEM log streaming | None | Splunk, Datadog, Webhook |
| Honeytokens | None | Canary alerts on leak |
| Custom domains | Not applicable | DNS challenge verified |
| GDPR compliance | Manual effort | Automated purge + export |
Why teams choose Vinkius for Open Food Facts in Mastra AI
The Open Food Facts MCP Server runs on Vinkius-managed infrastructure inside AWS — a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts. All 2 tools execute in hardened sandboxes optimized for native MCP execution.
Your AI agents in Mastra AI only access the data you authorize, with DLP that blocks sensitive information from ever reaching the model, kill switch for instant shutdown, and up to 60% token savings. Enterprise-grade infrastructure, zero maintenance.

* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
How Vinkius secures
Open Food Facts for Mastra AI
Every tool call from Mastra AI to the Open Food Facts MCP Server is protected by DLP redaction, cryptographic audit chains, V8 sandbox isolation, kill switch, and financial circuit breakers.
Frequently asked questions
What is Nutri-Score?
Nutri-Score is a front-of-pack nutrition label that rates food products from A (healthiest) to E (least healthy). It's widely used across Europe and helps consumers make informed dietary choices at a glance.
What is the NOVA classification?
The NOVA classification assigns a score from 1 to 4 depending on how much a food is processed. 1 means unprocessed/minimally processed foods, while 4 indicates ultra-processed food and drink products.
Is the allergen data reliable?
The allergen data is derived from product labels uploaded by contributors. While extensive, you should always double-check physical packaging for severe allergies as formulations can change.
How does Mastra AI connect to MCP servers?
Create an MCPClient with the server URL and pass it to your agent. Mastra discovers all tools and makes them available with full TypeScript types.
Can Mastra agents use tools from multiple servers?
Yes. Pass multiple MCP clients to the agent constructor. Mastra merges all tool schemas and the agent can call any tool from any server.
Does Mastra support workflow orchestration?
Yes. Mastra has a built-in workflow engine that lets you chain MCP tool calls with branching logic, error handling, and parallel execution.
createMCPClient not exported
Install: npm install @mastra/mcp
Connect Open Food Facts with your favorite client
Step-by-step setup guides for every MCP-compatible client and framework:
Anthropic's native desktop app for Claude with built-in MCP support.
AI-first code editor with integrated LLM-powered coding assistance.
GitHub Copilot in VS Code with Agent mode and MCP support.
Purpose-built IDE for agentic AI coding workflows.
Autonomous AI coding agent that runs inside VS Code.
Anthropic's agentic CLI for terminal-first development.
Python SDK for building production-grade OpenAI agent workflows.
Google's framework for building production AI agents.
Type-safe agent development for Python with first-class MCP support.
TypeScript toolkit for building AI-powered web applications.
Python framework for orchestrating collaborative AI agent crews.
Leading Python framework for composable LLM applications.
Data-aware AI agent framework for structured and unstructured sources.
Microsoft's framework for multi-agent collaborative conversations.
Give your AI agents the power of Open Food Facts MCP Server
Production-grade Open Food Facts MCP Server. Verified, monitored, and maintained by Vinkius. Ready for your AI agents — connect and start using immediately.
