MCP.so
登录

Nutritionix_mcp

@GuptaPurujit

关于 Nutritionix_mcp

MCP Server and Client for Nutritionix API v2

基本信息

分类

其他

运行时

python

传输方式

stdio

发布者

GuptaPurujit

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Nutritionix_mcp?

Nutritionix_mcp 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 endpoints, FastMCP to expose Nutritionix tools, LangChain-Ollama for tool‐calling and reasoning, and Google Mesop for the frontend.

How to use Nutritionix_mcp?

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.

Key features of Nutritionix_mcp

  • 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

Use cases of Nutritionix_mcp

  • Logging meals by describing them in everyday language
  • Getting instant calorie and macronutrient breakdowns for food items
  • Converting regional units (e.g., ounces to litres) automatically
  • Experimenting with different LLM models for meal parsing and reasoning

FAQ from Nutritionix_mcp

What data sources does Nutritionix_mcp use?

It uses the Nutritionix natural nutrients API to parse food items and retrieve nutritional information.

What runtime dependencies does Nutritionix_mcp require?

It requires FastAPI, FastMCP, LangChain-Ollama, Google Mesop, and the Nutritionix API credentials.

How does the chat communicate with the backend?

The backend exposes WebSocket and chat endpoints (FastAPI) that the Mesop frontend connects to.

Can I use a different LLM model?

Yes, the LLM orchestrator is modular; you can swap Ollama models by editing llm_provider.py.

Does Nutritionix_mcp support regional units?

Yes, it uses alt_measures from the Nutritionix API to handle units like ounces and litres.

评论

其他 分类下的更多 MCP 服务器