Nutritionix-MCP Chat logo

Nutritionix-MCP Chat

by GuptaPurujit

Nutritionix-MCP Chat is a prototype chat application that allows users to 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.

View on GitHub

Last updated: N/A

What is Nutritionix-MCP Chat?

Nutritionix-MCP Chat is a chat application prototype that uses natural language processing to log meals and provide nutritional information. It leverages the Nutritionix API through an MCP server, orchestrated by LangChain-Ollama, and features a lightweight Python UI built with Google Mesop.

How to use Nutritionix-MCP Chat?

Users can interact with the chat interface by entering meal descriptions in natural language (e.g., "I had 1 katori dahi and 2 chapatis"). The application automatically calls the Nutritionix API to parse the food items and returns a detailed breakdown of calories and macronutrients.

Key features of Nutritionix-MCP Chat

  • Natural-language meal logging

  • 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

Use cases of Nutritionix-MCP Chat

  • Personal nutrition tracking

  • Dietary monitoring

  • Calorie counting

  • Macronutrient management

FAQ from Nutritionix-MCP Chat

What is the Nutritionix API?

The Nutritionix API is a service that provides nutritional information for food items.

What is LangChain-Ollama?

LangChain-Ollama is used for tool-calling and reasoning within the application.

What is Google Mesop?

Google Mesop is used to create the lightweight chat UI for the application.

Can I change the LLM model being used?

Yes, the application features modular LLM orchestration, allowing you to swap Ollama models via llm_provider.py.

Does the application support unit conversions?

Yes, the application supports regional unit conversions (e.g. ounces vs. litres via alt_measures).