Integrates with Apple Health to retrieve fitness metrics, activity data, and weight measurements for health tracking
Provides persistent storage for user meal logging and nutrition tracking data through Google Sheets integration
Uses GPT-4o Vision to process food photos and text descriptions for automatic meal identification and logging
Healthy Pokes
A calorie tracking MCP (Model Context Protocol) server that integrates meal logging with nutrition data and health metrics.
Features
- 📸 Process food photos and text descriptions using GPT-4o Vision
- 🥗 Automatic nutrition estimation via OpenNutrition MCP
- 📊 Google Sheets integration for personalized tracking
- 🏃 Apple Health integration for activity and weight data
- 📱 SMS interface via Poke platform
Architecture
This MCP server acts as a bridge between multiple services:
- OpenAI GPT-4o: Extracts food items from photos/text
- OpenNutrition MCP: Provides nutrition data
- Google Sheets: Stores user data persistently
- Apple Health MCP: Retrieves fitness metrics
- Poke Platform: Handles messaging interface
Setup
Prerequisites
- Python 3.9+
- Google Cloud Project with Sheets & Drive APIs enabled
- OpenAI API key
- Poke API key
Installation
Environment Variables
Create a .env
file with:
Usage
Running Locally
The MCP server will be available at http://localhost:8000/mcp
Deploying to Render
This project includes a render.yaml
for easy deployment to Render.
MCP Tools
connect_user(email)
- Set up Google Sheet for useringest_image(image_url)
- Process food photoparse_text(text)
- Process text descriptionestimate_from_items(items)
- Get nutrition datalog_rows(rows)
- Save to Google Sheettoday_total()
- Calculate daily intakehealth_summary()
- Get Apple Health metricssend_message(text)
- Reply via Poke
Development
Project Structure
Testing
Contributing
Pull requests are welcome! Please ensure all tests pass and follow the existing code style.
License
MIT
Acknowledgments
Built for the HackMIT Poke Challenge
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A calorie tracking MCP server that processes food photos and text descriptions to automatically log nutrition data to Google Sheets. Integrates with Apple Health for fitness metrics and provides SMS interface for convenient meal logging.