Nutrition and meal tracking data
## MyFitnessPal MCP Server: Nutrition Tracking Platform The **MyFitnessPal MCP Server** integrates MyFitnessPal nutrition tracking into Google Antigravity, enabling AI-assisted food logging, calorie tracking, and nutritional analysis for health goals. ### Why MyFitnessPal MCP? - **Food Database**: Access to millions of foods with nutritional information - **Barcode Scanning**: Quick food logging through barcode scanning - **Macro Tracking**: Track calories, protein, carbs, fat, and micronutrients - **Goal Setting**: Set personalized calorie and macro goals - **Meal Planning**: Plan meals and track recipes with nutritional breakdowns ### Key Features #### 1. Food Logging ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Log my breakfast: 2 eggs, whole wheat toast, and orange juice" }] ) ``` #### 2. Nutrition Analysis ```python # Analyze nutrition response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Show my macro breakdown for today and remaining calories" }] ) ``` #### 3. Goal Tracking ```python # Track goals response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Show my weekly calorie trends and protein intake vs goals" }] ) ``` #### 4. Recipe Management ```python # Manage recipes response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Create a recipe for chicken stir fry and calculate nutritional info" }] ) ``` ### Configuration ```json { "mcpServers": { "myfitnesspal": { "command": "npx", "args": ["-y", "@anthropic/mcp-server-myfitnesspal"], "env": { "MFP_USERNAME": "your-username", "MFP_PASSWORD": "your-password" } } } } ``` ### Use Cases **Weight Management**: Track calories for weight loss or gain goals. **Macro Tracking**: Monitor macronutrient intake for fitness goals. **Meal Planning**: Plan balanced meals with nutritional awareness. **Health Improvement**: Make informed dietary choices with data. The MyFitnessPal MCP Server brings comprehensive nutrition tracking into your workflow.
{
"mcpServers": {
"myfitnesspal": {
"mcpServers": {
"myfitnesspal": {
"args": [
"-y",
"myfitnesspal-mcp"
],
"command": "npx"
}
}
}
}
}