Nutrients Mcp

io.github.ericblair1903由 GitHub 帳號 ericblair1903 發布v1.0.3更新於 Oct 27, 2026

Analyze food photos or text for calories, macros, vitamins, minerals, and allergens.

已驗證STDIO僅桌面位置與生活媒體與設計

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理透過 TastyAPI 分析食物照片或食物名稱,取得熱量、三大營養素、維生素、礦物質與過敏原資訊。

可以做什麼
  • 分析公開網址的食物圖片,回傳完整營養成分
  • 依名稱或描述查詢食物營養資料,不需圖片
  • 回傳熱量、三大營養素、維生素、礦物質、過敏原,以及純素、無麩質等飲食標記
適用情境
適合需要讓助理估算餐點、食譜或單一食材營養價值的場合,可用圖片連結或文字描述,並辨識過敏原與飲食適用性。
執行需求
以 npm 套件形式在本機執行(npx nutrients-mcp),需要 Node.js 18 以上版本。需要 TastyAPI API 金鑰,透過環境變數 TASTYAPI_KEY 提供,金鑰須在服務商定價頁面取得。呼叫 API 與抓取圖片網址需要網路連線。
安裝前請注意
此服務需付費:依請求計費並加收每月基本費用,或選擇固定月費方案,每次呼叫都會產生費用。須在伺服器環境中設定 TASTYAPI_KEY 金鑰。圖片網址與食物描述會傳送給 TastyAPI,交給助理的圖片連結也會由第三方抓取。營養數值為估算結果,不構成醫療或飲食建議。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Nutrients Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

nutrients-mcp

Give your AI assistant the ability to analyze food images and look up nutrition data for any food — calories, macros, vitamins, minerals, allergens, and dietary flags in under 1 second — powered by TastyAPI. Much faster and more accurate than Gemini and GPT-4 Vision (4-10 seconds).

Requirements

Quick Start

Claude Code

bash
claude mcp add nutrients -- npx -y nutrients-mcp

Then set your API key in the server's environment config:

TASTYAPI_KEY=YOUR_API_KEY

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

json
{  "mcpServers": {    "nutrients": {      "command": "npx",      "args": ["-y", "nutrients-mcp"],      "env": { "TASTYAPI_KEY": "YOUR_API_KEY" }    }  }}

Cursor / Windsurf

Add to your mcp.json:

json
{  "mcpServers": {    "nutrients": {      "command": "npx",      "args": ["-y", "nutrients-mcp"],      "env": { "TASTYAPI_KEY": "YOUR_API_KEY" }    }  }}

Tools

analyze_food_image

Fetches a food image from a public URL and returns a full nutritional breakdown.

ParameterTypeRequiredDescription
image_urlstringyesPublic URL of a food image to analyze

Example prompt:

"What are the macros in this meal? https://example.com/pasta.jpg"

Example output:

json
{  "food_name": "Pasta Bolognese",  "calories": 520,  "macros": {    "protein_g": 24,    "carbohydrates_g": 68,    "fat_g": 16,    "fiber_g": 4  },  "vitamins": { "vitamin_c_mg": 8, "vitamin_b12_mcg": 1.4 },  "minerals": { "iron_mg": 3.2, "calcium_mg": 60 },  "allergens": ["gluten", "dairy"],  "dietary": { "vegan": false, "vegetarian": false, "gluten_free": false }}

analyze_food

Returns a full nutritional breakdown for a food item by name or description. No image required.

ParameterTypeRequiredDescription
food_namestringyesName or description of the food (e.g. "oatmeal with banana, 1 cup")

Example prompt:

"How many calories are in a large avocado?"

Example output:

json
{  "food_name": "Large Avocado",  "calories": 322,  "macros": {    "protein_g": 4,    "carbohydrates_g": 17,    "fat_g": 29,    "fiber_g": 13  },  "vitamins": { "vitamin_k_mcg": 42, "folate_mcg": 163 },  "minerals": { "potassium_mg": 975, "magnesium_mg": 58 },  "allergens": [],  "dietary": { "vegan": true, "vegetarian": true, "gluten_free": true }}

Pricing

  • $0.015 per request + $5/month base fee (usage-based)
  • Or choose a flat-rate plan: Monthly ($29/mo · 5k calls) or Professional ($69/mo · 15k calls)

See tastyapi.com/pricing for full details.

License

MIT — © EB Tech LLC

來源:README.md,提交 1a4331f

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.3最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分