food-tracker-mcp

food-tracker-mcp

1

Food Tracker MCP is a server application designed to help users track their food consumption, analyze nutritional content, manage dietary restrictions, and create meal plans. It integrates seamlessly with the OpenFoodFacts database to provide detailed food product information and dietary management tools.

Food Tracker MCP

A Model Context Protocol (MCP) server designed for tracking food consumption, analyzing nutrition, and managing dietary restrictions. It integrates with the OpenFoodFacts database, offering the following features:

  • Search for food products by barcode or keyword
  • Analyze nutritional content of food products
  • Create meal plans based on specific nutrition goals and dietary restrictions
  • Track food consumption with meal logging
  • Manage dietary restrictions and allergies
  • Check product compatibility with user restrictions
  • View food logs and nutrition summaries

Installation

  1. Ensure Python 3.8 or higher is installed. Use pip to install dependencies such as httpx, fastmcp, and pydantic.
  2. Clone the repository or download the necessary files and set up a virtual environment.
  3. Run the server to start receiving commands.

Using with Claude

To use with Claude, register the MCP with the Claude platform via Anthropic's documentation and interact using defined prompts.

Available Tools

The MCP provides tools like get_product_by_barcode, search_products, manage_user_restrictions, check_product_compatibility, analyze_nutrition, log_food_consumption, and get_user_food_log for comprehensive food tracking and analysis.