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 分析食物照片或食物名称,获取热量、宏量营养素、维生素、矿物质和过敏原信息。

可以做什么
  • 分析公开 URL 的食物图片,返回完整营养分解
  • 按名称或描述查询食物营养数据,无需图片
  • 返回热量、宏量营养素、维生素、矿物质、过敏原以及纯素、无麸质等饮食标记
适用场景
适合需要让助手估算餐食、食谱或单一食材营养价值的场景,可用图片链接或文字描述,并识别过敏原与饮食适用性。
运行要求
以 npm 包形式在本地运行(npx nutrients-mcp),需要 Node.js 18 或更高版本。需要 TastyAPI API 密钥,通过环境变量 TASTYAPI_KEY 提供,密钥需在服务商定价页面获取。调用 API 和抓取图片 URL 需要网络访问。
安装前请注意
该服务为付费服务:按请求计费并加收月度基础费用,或选择包月套餐,每次调用都会产生费用。需在服务器环境中配置 TASTYAPI_KEY 密钥。图片 URL 和食物描述会发送给 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 分