io.github.ericblair1903/nutrients-mcp

السجل الرسمي المالية والمدفوعات

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

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

NPM package nutrients-mcp
Claude Code
claude mcp add nutrients-mcp -e 'TASTYAPI_KEY=<your tastyapi_key>' -- npx -y nutrients-mcp@1.0.3
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "nutrients-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "nutrients-mcp@1.0.3"
            ],
            "env": {
                "TASTYAPI_KEY": "<your tastyapi_key>"
            }
        }
    }
}

متغيرات البيئة

  • TASTYAPI_KEY إلزامي سري Your TastyAPI API key. Get one at https://tastyapi.com/pricing

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. nutrients-mcp
  2. Requirements
  3. Quick Start
  4. Tools
  5. Pricing
  6. License

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
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:

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

Add to your mcp.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:

{
  "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:

{
  "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

الأسئلة الشائعة

ما هو io.github.ericblair1903/nutrients-mcp؟

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

كيف أثبّت io.github.ericblair1903/nutrients-mcp؟

يعمل على جهازك. في Claude Code: claude mcp add nutrients-mcp -e 'TASTYAPI_KEY=<your tastyapi_key>' -- npx -y nutrients-mcp@1.0.3. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج io.github.ericblair1903/nutrients-mcp إلى مفتاح API؟

نعم. يتطلب TASTYAPI_KEY، وتضبطها في إعداداته.

هل io.github.ericblair1903/nutrients-mcp مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون io.github.ericblair1903/nutrients-mcp؟

ينشره ericblair1903. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.