Nutritionix_mcp
About
Nutritionixmcp 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. It uses FastAPI for backend with WebSocket and chat…
Details
- Author
- GuptaPurujit
- Downloads
- 126
- Categories
- Other
Jump to
- Natural-language meal logging
- Automatic tool-calling to Nutritionix natural nutrients API
- Regional unit conversion via alt_measures
- Macro tracking: calories, protein, carbs, fats
- Modular LLM orchestration (swappable Ollama models)
- Lightweight Python UI using Mesop’s mel.chat
Users interact with the chat UI by typing natural language meal descriptions (e.g., “I had 1 katori dahi and 2 chapatis”). The system automatically calls Nutritionix tools to parse the food items and returns a breakdown of calories, protein, carbs, and fats. The LLM orchestrator can be swapped by modifying llm_provider.py to use different Ollama models.
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

Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



