Food Tracker MCP
About
A simple Model Context Protocol (MCP) server that connects Claude AI with the OpenFoodFacts database to create an intelligent nutritional assistant.
Details
- Author
- nagarjun226
- Downloads
- 285
- Categories
- AI
Jump to
- 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:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Food Tracker MCPCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Install Python 3.8 or higher, create a virtual environment, install dependencies (httpx, fastmcp, pydantic), and run python food_tracker.py. The server exposes tools that can be invoked via Claude after registering the MCP with the Claude platform. Example prompts include scanning barcodes, adding restrictions, logging food, and viewing logs.
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"
]
}
}
Food Tracker MCP
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
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.
