MCP Server • JSON-RPC 2.0

AI-Powered Nutrition Tracking Tool

Food recognition with AI analysis. Helps detect potentially harmful ingredients, track nutrition, and provide health insights through MCP APIs.

200+
Harmful Additives in Database
5 AI
Analysis Agents
<2s
Response Time

Live Food Analysis

Food Analysis
382
Calories
14g
Protein
0
Warnings
Healthy
Status
Core Features

Core Features

Nutrition tracking tools powered by AI and computer vision

Multi-Source Recognition

Google Vision API with OpenAI GPT-4 Vision fallback for improved accuracy. Process images, barcodes, and natural language.

Computer Vision

Barcode Scanner

ZXing + Sharp for Indian products

OpenFoodFacts

Toxin Detection

Database of 200+ potentially harmful additives with health risk information

Health Safety

Behavioral Engine

4 personality types with predictive nudges and engagement tracking

AI Insights

Gamification

ScanlyfCoins rewards system

Engagement

Data Export

CSV, PDF, Excel formats

Analytics

Webhook Events

Event notifications

Integration

Analytics & Health Monitoring

Health alerts, allergy warnings, and medication interaction checks. Weekly AI-powered analysis with insights from 5 agents.

Health Monitoring
Available MCP Commands

Available Tools via JSON-RPC

Nutrition tracking and analysis commands

validate

Authenticate bearer token and retrieve user phone number for secure access

Authentication

setup_profile

Create user profile with health data, dietary restrictions, and goals

User Setup

scan_food

Analyze food via image or barcode with nutrition and ingredient detection

Core Function

add_food

Log food to daily intake with quick-add support for previously scanned items

Tracking

get_progress

Track daily nutrition progress against health targets

Analytics

get_weekly_analysis

AI-powered analysis from 5 agents with health insights

AI Analysis

export_data

Export in CSV, PDF, Excel

Export
SC

check_balance

ScanlyfCoins balance

Rewards

generate_meal_plan

AI meal planning

Planning

view_rewards

Available rewards

Gamification
#1

get_leaderboard

Competition rankings

Social

configure_webhook

Setup notifications

Webhooks
Developer Tools

MCP Protocol Integration

JSON-RPC 2.0 compliant API with JWT authentication

JavaScript
// Example: Initialize Scanlyf MCP Client
// NOTE: This uses localhost for development. In production, use your secure API endpoint
// IMPORTANT: Never expose JWT tokens in client-side code

const scanFood = async (base64Image, token) => {
  // Replace with your production API endpoint
  const API_ENDPOINT = process.env.NODE_ENV === 'production' 
    ? 'https://your-api.com/mcp' 
    : 'http://localhost:3000/mcp';
    
  const response = await fetch(API_ENDPOINT, {
    method: 'POST',
    headers: {
      'Authorization': `Bearer ${token}`,
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      jsonrpc: '2.0',
      method: 'tools/call',
      params: {
        name: 'scan_food',
        arguments: {
          bearer_token: token,
          input: base64Image,
          type: 'image'
        }
      }
    })
  });
  
  if (!response.ok) {
    throw new Error(`API request failed: ${response.status}`);
  }

  return response.json();
};

// Response includes nutrition data, harmful ingredients, and health warnings
// Token should be obtained through secure authentication flow
Quick Start Guide

Get Started with Scanlyf on Puch AI

Connect and start tracking nutrition in just 3 simple steps

1

Connect to Puch AI WhatsApp

Click the link below to add Scanlyf MCP server to your Puch AI WhatsApp assistant

This will open Puch AI and automatically configure Scanlyf
2

Set Up Your Profile

Send a message to Puch AI to create your nutrition profile

You: "Setup my nutrition profile"
Puch AI: "Great! Let me help you set up your profile. What's your age?"

Provide your age, weight, height, dietary restrictions, and health goals

3

Start Tracking Your Food

Send food images or text to track nutrition

Send a photo of your meal
Scan product barcodes
Type food name: "I ate 2 rotis with dal"

Essential Commands to Try

"Scan this food"

+ Send image

"Show my progress"

Daily nutrition stats

"Weekly analysis"

AI health insights

"Check ingredients"

Detect harmful additives

Pro Tips for Best Results

01

Take clear photos with good lighting for accurate food recognition

02

Log meals immediately after eating for better tracking habits

03

Use barcode scanning for packaged products to detect hidden toxins

04

Check weekly analysis every Sunday for health insights

Technology Stack

Technology Stack

Firebase
Google Vision
OpenAI GPT-4
Nutritionix
Redis Cache
JWT Auth
ZXing Scanner
Express.js
AI Intelligence

Multi-Agent Analysis System

5 AI agents providing health analysis and insights

Dr. Nutrition
Dietary Pattern Analysis
BehaviorBot
Psychological Patterns
Coach Wellness
Action Strategies
DataMind
Hidden Correlations
Dr. CleanEats
Toxin Analysis

Ready to Track Your Nutrition?

Start using AI-powered nutrition tracking today