Automated Food Data Retrieval via Chomp API and MCP Server

somdn_product_page

This workflow is designed to facilitate seamless integration of the Chomp Food Database API with AI agents through an MCP (Multi-Channel Platform) server setup. Its primary goal is to enable automated retrieval of food and ingredient information based on user queries or barcode scans. The workflow begins with an MCP trigger that acts as the webhook endpoint, listening for incoming requests from AI agents. Upon activation, it offers four key operations: ‘Get Branded Food by Barcode’, ‘Get Food by Name’, ‘Search Branded Food Items’, and ‘Search Food Ingredients’.

Each operation involves an HTTP request node configured with specific API endpoints, authenticated via API keys. Parameters for each API call are dynamically populated using AI expressions, allowing users or systems to specify search criteria such as food name, barcode, category, allergen, or nutrient content. These nodes query the Chomp API, which responds with detailed food data.

The workflow is highly customizable, enabling data transformation, error handling, and logging enhancements. It is suitable for nutrition apps, diet tracking tools, or food product verification systems where real-time food information is essential. Users can easily integrate this setup into their existing ecosystem, empowering AI agents to provide accurate nutritional data on demand.

Node Count

6 – 10 Nodes

Nodes Used

@n8n/n8n-nodes-langchain.mcpTrigger, httpRequestTool, stickyNote

Reviews

There are no reviews yet.

Be the first to review “Automated Food Data Retrieval via Chomp API and MCP Server”

Your email address will not be published. Required fields are marked *