Nutrients Mcp

io.github.ericblair1903Published by GitHub account ericblair1903v1.0.3Updated Oct 27, 2026

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

VerifiedSTDIODesktop onlyLocation & LifestyleMedia & Design

Overview

AI-generated overview

Local MCP server that lets an assistant analyze food photos or food names for calories, macros, vitamins, minerals and allergens via TastyAPI.

What you can do
  • Analyze a food image from a public URL and get a full nutritional breakdown
  • Look up nutrition data for a food by name or description, no image needed
  • Return calories, macros, vitamins, minerals, allergens and dietary flags such as vegan or gluten-free
When to use it
Useful when you want an assistant to estimate nutrition for meals, recipes or single ingredients, either from a photo link or a text description, and to flag allergens and dietary suitability.
Requirements
Runs locally as an npm package (npx nutrients-mcp) on Node.js 18 or newer. Needs a TastyAPI API key supplied in the TASTYAPI_KEY environment variable; the key is obtained from the provider's pricing page. Network access is required for the API calls and for fetching image URLs.
Before you install
The service is paid: usage-based pricing per request plus a monthly base fee, or flat-rate plans, so calls cost money. The TASTYAPI_KEY secret must be configured in the server's environment. Image URLs and food descriptions are sent to TastyAPI, and any image URL given to the assistant is fetched by the third party. Nutrition values are estimates, not medical or dietary advice.

Installation

In SourceWeft

  1. Open Nutrients Mcp in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

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

Source: README.md at commit 1a4331f

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v1.0.3LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts