Food Tracker MCP

by nagarjun226

285 downloads Not rated yet
GitHub

About

A simple Model Context Protocol (MCP) server that connects Claude AI with the OpenFoodFacts database to create an intelligent nutritional assistant.

Explore

- Search food products by barcode or keyword
- Analyze nutritional content of food products
- Create meal plans based on 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

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Food Tracker MCP
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

- Python 3.8 or higher
- pip (Python package manager)

Run the server using:

python food_tracker.py

The server will start and be ready to receive commands.

This MCP provides the following tools that Claude can access:

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "food tracker mcp": {
            "food-tracker-mcp": {
                "command": "python",
                "args": [
                    "-m",
                    "venv",
                    "venv"
                ]
            }
        }
    }
}

McpServers

{
    "food-tracker-mcp": {
        "command": "python",
        "args": [
            "-m",
            "venv",
            "venv"
        ]
    }
}

A Model Context Protocol (MCP) server for tracking food consumption, analyzing nutrition, and managing dietary restrictions.

Overview

Food Tracker MCP integrates with the OpenFoodFacts database to provide a comprehensive food tracking system with 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

Prerequisites

- Python 3.8 or higher
- pip (Python package manager)

Setup

1. Clone the repository or download the food_tracker.py file:

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.