
OpenFoodFacts-MCP 是一个利用 Open Food Facts API 管理、处理和分析食品产品数据的项目。
概览
这是一个基于模型上下文协议(MCP)的开放食品事实服务器实现。它使人工智能助手能够访问食品信息,提供营养分析、产品比较和基于官方模型上下文协议规范的食谱建议。 1. : 获取由AI驱动的食品及其健康影响分析 2.: 比较产品以做出更好的饮食决策 3.: 根据你拥有的产品发现食谱 4.: 了解过敏原、添加剂及饮食兼容性 - :通过名称、品牌、类别或其他关键词搜索Open Food Facts数据库中的产品 - :通过条形码(EAN、UPC等)获取产品的详细信息 - :获取基于AI的食品营养分析 - :比较两款产品并获得AI洞察 - :获取使用产品获得AI驱动的食谱建议 - :在特定食品类别内搜索产品(例如:
概述(AI 翻译)
这是一个基于模型上下文协议(MCP)的开放食品事实服务器实现。它使人工智能助手能够访问食品信息,提供营养分析、产品比较和基于官方模型上下文协议规范的食谱建议。
食品意识消费者的益处
该MCP服务器支持:
- 营养智能:获取由人工智能驱动的食品产品及其健康影响分析
- 明智选择:比较产品以做出更好的饮食决策
- 食谱创意:根据你拥有的产品发现食谱
- 饮食支持:了解过敏原、添加剂及饮食兼容性
可用工具
核心产品工具
- searchProducts:通过名称、品牌、类别或其他关键词搜索Open Food Facts数据库中的产品
- getProductByBarcode:通过条码(EAN、UPC等)获取产品的详细信息
- analyzeProduct:获取由人工智能驱动的食品营养分析
- compareProducts:比较两款基于AI驱动洞察的产品
- suggestRecipes:使用产品获取AI驱动的食谱建议
分类与搜索工具
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Open Food Facts MCP Server
This is a Model Context Protocol (MCP) server implementation for Open Food Facts. It enables AI assistants to access food product information, providing nutritional analysis, product comparisons, and recipe suggestions using the official Model Context Protocol specification.
Benefits for Food-Aware Consumers
This MCP server enables:
- Nutritional Intelligence: Get AI-powered analysis of food products and their health implications
- Informed Choices: Compare products to make better dietary decisions
- Recipe Ideas: Discover recipes based on products you have
- Dietary Support: Understand allergens, additives, and dietary compatibility
Available Tools
Core Product Tools
- searchProducts: Search for products in the Open Food Facts database by name, brand, category, or other keywords
- getProductByBarcode: Get detailed information about a product by its barcode (EAN, UPC, etc.)
- analyzeProduct: Get AI-powered nutritional analysis of a food product
- compareProducts: Compare two products with AI-powered insights
- suggestRecipes: Get AI-powered recipe suggestions using a product
Category & Search Tools
- searchByCategory: Search products within a specific food category (e.g., beverages, snacks, dairy, cereals)
- searchByBrand: Find all products from a specific brand
- advancedSearch: Advanced product search with multiple filters including category, brand, Nutri-Score, Eco-Score, NOVA group, allergen-free options, labels, and country
- autocomplete: Get autocomplete suggestions for categories, brands, labels, ingredients, allergens, or additives
Nutrition & Health Tools
- getNutriScore: Get the Nutri-Score grade (A-E) for a product - quick health assessment at a glance
- getEcoScore: Get the Eco-Score (environmental impact rating A-E) for a product
- getAdditivesInfo: List all additives in a product with their E-numbers and NOVA processing level
- getAllergenCheck: Check if a product contains a specific allergen (gluten, milk, eggs, nuts, peanuts, soy, fish, shellfish, etc.)
- checkMultipleAllergens: Check if a product contains any of multiple allergens at once
AI Insights Tools
- getProductAIQuestions: Get AI-generated questions about a product that need human verification
- getRandomAIQuestions: Get random AI-generated questions from Robotoff that need human verification - great for community contribution
- getProductInsights: Get AI-generated insights about products (detected labels, categories, ingredients issues, etc.)
- getInsightTypes: Get a summary of available AI insight types in Robotoff
Price Tools
- getProductPrices: Get price history and current prices for a product from Open Prices
- searchPrices: Search for prices with filters (currency, country, date range)
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"openfoodfacts": {
"command": "node",
"args": ["/path/to/OpenFoodFacts-MCP/dist/index.js"],
"env": {
"TRANSPORT": "stdio"
}
}
}
}