Use this n8n workflow to expose the Chomp Food Database API to AI agents using the powerful MCP trigger. Enable food data lookups via barcode, name, or search parameters using a dedicated n8n node.
Download this n8n workflow template and start using it instantly.
This comprehensive n8n workflow is designed to bridge the gap between AI agents and specific external APIs, turning the Chomp Food Database API into a reliable toolset for LLMs. This specialized n8n templates solution utilizes the Multi-Component Processor (MCP) functionality, enabling developers to expose four distinct food data operations (lookup by barcode, name, search parameters, or ingredient search) via a single, secure server endpoint. The primary benefit of this n8n automation is transforming complex API documentation into structured, AI-consumable functions, allowing agents to execute precise data queries and return raw results efficiently. This setup maximizes the utility of your n8n workflow by ensuring AI agents have real-time, accurate data access.
The operational flow begins with the specialized MCP n8n trigger, which acts as the server endpoint. This n8n node is configured to listen for requests from external AI agents (like LangChain or similar frameworks). The MCP trigger analyzes the incoming query and delegates the task to the appropriate connected tool—in this case, one of the four HTTP Request nodes. Each HTTP Request n8n node is pre-configured to handle a specific food database function (e.g., searching by barcode or ingredient). Crucially, the parameters required for these API calls (like code, name, or limit) are dynamically populated using the $fromAI() expression. This ensures the AI agent intelligently supplies the necessary arguments without manual intervention. Once the correct node executes the request to the Chomp API, the raw data response is captured and returned directly by the MCP trigger to the initiating AI agent, completing the request cycle seamlessly within the n8n workflow.
api_key Chomp Food Database API Documentation MCP Server (MCP Trigger n8n node): Serves as the central server endpoint for the AI agent. It receives the AI's intent and directs the request to the appropriate tool, ensuring the entire n8n workflow functions as a cohesive service.
Get Branded Food by Barcode (HTTP Request Tool n8n node): Fetches detailed branded food information using a UPC/EAN barcode. Key Configuration: Uses ={{ $fromAI('code', ...) }} to extract the required barcode from the AI request.
Get Branded Food by Name (HTTP Request Tool n8n node): Allows searching for branded food items using a general name keyword. Key Configuration: Uses $fromAI() for name, limit, and page parameters, making pagination and search terms AI-driven.
Search Branded Food Items (HTTP Request Tool n8n node): Provides advanced search capabilities, allowing filtering by numerous parameters like allergen, brand, category, ingredient, and vitamin. Key Configuration: This n8n node exposes a wide range of optional $fromAI() parameters, providing maximum flexibility to the AI agent.
find parameter and an optional limit via $fromAI() expressions.Deploy a Google Cloud Natural Language Tool MCP server using this powerful n8n workflow. Expose sentiment analysis as an endpoint for AI agents. Quickly integrate this n8n templates solution for sophisticated AI tooling.

Deploy this n8n workflow to create an MCP Server exposing 27 Amazon CloudWatch Application Insights API operations as tools for your AI agents. Integrate AWS monitoring directly into LLMs using this powerful n8n template.

Expose 23 AWS Budgets API operations as dynamic tools for your AI agents using the n8n workflow Managed Chat Protocol (MCP) server. Simplify cloud cost automation with this comprehensive n8n template.

Use this powerful n8n workflow to expose KoBoToolbox file, form, submission, and webhook operations to an AI Agent. A complete n8n template for AI-driven data management and orchestration.

A hacker by nature, programmer by trade ⚒️ I'm looking to collaborate on things that save human labor 📫 How to reach me Github👇 -> Discord







































