营养日志聊天应用

Nutritionix-MCP Chat 是一个允许用户通过自然语言记录餐食的原型聊天应用,通过Nutritionix API解析食物条目并提供详细的卡路里和宏量营养素分析。

  • by GuptaPurujit
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 guptapurujit/nutritionix_mcp

使用说明

Project Overview

Nutritionix-MCP Chat is a prototype chat application that lets users log meals in natural language. It parses food items via an MCP server backed by the Nutritionix API and returns detailed calorie and macronutrient breakdowns. Core technologies:

  • FastAPI backend with WebSocket/chat endpoints
  • FastMCP server exposing Nutritionix tools
  • LangChain-Ollama orchestrator for tool‐calling and reasoning
  • Google Mesop frontend for a lightweight chat UI

Features

  • Natural-language meal logging (“I had 1 katori dahi and 2 chapatis”)
  • Automatic tool-calling to Nutritionix’s natural nutrients API
  • Regional unit conversion (e.g. ounces vs. litres via alt_measures)
  • Macro tracking: calories, protein, carbs, fats
  • Modular LLM orchestration: swap Ollama models via llm_provider.py
  • Lightweight Python UI using Mesop’s mel.chat

UI Preview