# MCP server on n8n for product lookup by barcode and ingredients via Chomp API
This automation template transforms the external Chomp Food Database API into an MCP-compatible interface for AI agents. It enables agents to perform precise queries—by barcode, name, brand, or ingredients—with automatic parameter extraction from natural language input.
## Who it´s for
- AI agent developers integrating third-party food databases.
- Nutrition tech companies using AI for dietary analysis.
- Allergen tracking and diet management applications.
- Automated shopping assistants based on personal dietary preferences.
## What the automation does
- Receives requests from AI agents via an MCP server using $fromAI() expressions.
- Extracts parameters such as barcode, name, brand, ingredients, keywords, and filters (e.g., no tree nuts).
- Makes HTTP calls to the Chomp API at chompthis.com.
- Returns structured product data back to the AI agent for user-facing responses.
- Supports four operations: barcode lookup, name search, branded food filtering, and ingredient search.
## What´s included
- Ready-to-use n8n workflow with request handling logic.
- Trigger logic for mcp_server_request and ai_tool_call events.
- Integrations with Chomp Food Database API and external AI agents (e.g., Claude, ChatGPT).
- Basic text instructions for deployment and adaptation.
## Requirements for setup
- Active n8n instance with workflow execution capabilities.
- LangChain-compatible MCP server access.
- Valid API key for Chomp Food Database.
- Configured AI agent capable of tool calling via MCP.
## Benefits and outcomes
- Accelerates integration of AI agents with external food databases.
- Enables smart nutrition assistants without manual label parsing.
- Lowers entry barrier for AI-powered food-tech applications.
- Ensures data accuracy through authoritative Chomp database.
- Extends AI functionality with real-time external lookups.
## Important: template only
Important: you are purchasing a ready-made automation workflow template only. Rollout into your infrastructure, connecting specific accounts and services, 1:1 setup help, custom adjustments for non-standard stacks and any consulting support are provided as a separate paid service at an individual rate. To discuss custom work or 1:1 help, contact via chat
food database API
barcode product lookup
search by food name
ingredient search API
branded food search
Chomp Food Database
AI agent integration
n8n MCP server
MCP for AI agents
HTTP API gateway
AI tool call
structured food data
nutrient filtering
allergen detection
dietary assistant bot
external API integration
automated food lookup
LangChain MCP server
No feedback yet