Oleafly is a live collaborative LaTeX, Typst and Markdown editor for research that offers a local MCP server and an oleafly mcp stdio command so outside AI clients can use its project tools.

Food Tracker MCP server
An MCP server that connects to OpenFoodFacts to search food products, analyze nutrition, manage dietary restrictions, and log meals.
WHAT IT DOES
- •Looks up food products by barcode and searches for products by name or keyword.
- •Analyzes a product's nutritional content and checks it against a user's dietary restrictions.
- •Manages user dietary restrictions covering allergens, diets, ingredients, medical needs, and preferences.
- •Logs food consumption by meal type and retrieves a user's food log for a given date, storing data locally in JSON files.
BEST FOR
- •People who want to log meals and review daily food intake through an assistant.
- •Users who need to track allergies or dietary restrictions and check whether products are compatible.
- •Anyone analyzing a packaged food's nutrition by barcode or search.
ABOUT FOOD-TRACKER-MCP
Food Tracker MCP server is cataloged as an MCP server attributed to nagarjun226. An MCP server that connects to OpenFoodFacts to search food products, analyze nutrition, manage dietary restrictions, and log meals. It is categorized under productivity work. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
HOW TO INSTALL
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
LICENSE
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力检查器
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
Tools (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Resources (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Prompts (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Newsletter subscriptions are not open yet
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Community Reviews
Reviews for Food Tracker MCP server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
FREQUENTLY ASKED QUESTIONS
Where does Food Tracker MCP store user profiles and food logs?
It stores data locally in JSON files, with user profiles in ./data/users/{user_id}.json and food logs in ./data/logs/{user_id}_{date}.json.
What external database does Food Tracker MCP use?
It integrates with the OpenFoodFacts database for product and nutrition information.
上游原版 README
README.md · 4033774bba39 · 采集于 2026-11-13 12:34:13 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
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
- Clone the repository or download the
food_tracker.pyfile:
# Option 1: Clone the repository (if available)
git clone https://github.com/yourusername/food-tracker-mcp.git
cd food-tracker-mcp
# Option 2: Create a new directory and save the file there
mkdir food-tracker-mcp
cd food-tracker-mcp
# Copy food_tracker.py into this directory
- Create a virtual environment (recommended):
python -m venv venv
- Activate the virtual environment:
# On Windows
venv\Scripts\activate
# On macOS/Linux
source venv/bin/activate
- Install the required dependencies:
pip install httpx fastmcp pydantic
- Ensure the data directories are created (the script will do this automatically on first run):
mkdir -p data/users data/logs
Running the MCP Server
Run the server using:
python food_tracker.py
The server will start and be ready to receive commands.
Using with Claude
To use this MCP with Claude, you'll need to register it with the Claude platform. Here's how to do it:
-
Follow Anthropic's documentation to register your MCP:
- Visit https://console.anthropic.com/mcps or the relevant section in your Anthropic account
- Register the food-tracker MCP by providing the necessary information and endpoint
-
Once registered, you can interact with the Food Tracker through Claude by invoking the MCP's tools.
Example prompts to use with Claude:
- "Scan this barcode to see nutrition information: 3270190119357"
- "Add a peanut allergy to my dietary restrictions"
- "Log that I had a granola bar for breakfast"
- "Search for products containing 'oatmeal'"
- "Check if this product is compatible with my dietary restrictions"
- "Show me my food log for today"
Available Tools
This MCP provides the following tools that Claude can access:
1. get_product_by_barcode
Get detailed information about a food product using its barcode.
Parameters:
barcode: The product barcode (EAN, UPC, etc.)
2. search_products
Search for food products by name or description.
Parameters:
query: The search querypage: Page number for pagination (default: 1)page_size: Number of results per page (default: 10)
3. manage_user_restrictions
Manage a user's dietary restrictions.
Parameters:
user_id: The user's unique identifieraction: The action to perform (get, add, remove, update)restriction_type: Type of restriction (allergen, diet, ingredient, medical, preference)restriction_value: The specific restriction value (e.g., "peanuts", "vegetarian")severity: How severe the restriction is (avoid, limit, fatal)notes: Additional notes about the restriction
4. check_product_compatibility
Check if a product is compatible with a user's dietary restrictions.
Parameters:
user_id: The user's unique identifierbarcode: The product barcode to check
5. analyze_nutrition
Analyze the nutritional content of a food product.
Parameters:
barcode: The product barcode
6. log_food_consumption
Log food consumption for a user.
Parameters:
user_id: The user's unique identifierbarcode: The product barcodequantity: Amount consumed (default: 1 serving)meal_type: Type of meal (breakfast, lunch, dinner, snack)
7. get_user_food_log
Get a user's food log for a specific date.
Parameters:
user_id: The user's unique identifierdate: Date in YYYY-MM-DD format (defaults to today)
Example Usage Scenarios
Setting Up a New User with Restrictions
- Add a gluten allergy:
manage_user_restrictions(
user_id="user123",
action="add",
restriction_type="allergen",
restriction_value="gluten",
severity="avoid",
notes="Avoid all wheat products"
)
- Add a vegetarian diet:
manage_user_restrictions(
user_id="user123",
action="add",
restriction_type="diet",
restriction_value="vegetarian"
)
Tracking Food Consumption
- Scan a product and log it:
# First get product info
product = get_product_by_barcode(barcode="3270190119357")
# Then log consumption
log_food_consumption(
user_id="user123",
barcode="3270190119357",
quantity=1,
meal_type="breakfast"
)
- Check compatibility with restrictions:
check_product_compatibility(
user_id="user123",
barcode="3270190119357"
)
Analyzing Nutritional Information
- Get detailed nutrition analysis:
analyze_nutrition(barcode="3270190119357")
- View food log and nutrition totals:
get_user_food_log(user_id="user123")
Data Storage
The Food Tracker MCP stores data locally in JSON files:
- User profiles:
./data/users/{user_id}.json - Food logs:
./data/logs/{user_id}_{date}.json
Extending the MCP
You can extend the MCP by:
- Adding new nutritional analysis features
- Implementing more detailed diet plans and goals
- Adding recipe suggestions based on available ingredients
- Creating reports and visualizations of nutrition data
- Implementing social features for sharing progress
Troubleshooting
- If you encounter connection issues, ensure you have internet access as the MCP connects to the OpenFoodFacts API
- If product information is incomplete, this may be due to limitations in the OpenFoodFacts database
- For any data persistence issues, check the permissions on the data directory
Install configuration
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Food Tracker MCP server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/food-tracker-mcp)REPOSITORY STATS
Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
下载与拉取统计
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Related productivity work MCP Servers
Alternative and complementary servers in the same category
Buddy is an Android app that offers its phone tools through a local MCP server to Claude Code, Codex, OpenCode, Antigravity, and Grok sessions.

Tuqui is a hosted MCP server that connects Odoo with Claude and ChatGPT so users can ask about sales, stock, customers and overdue invoices in plain language.

