Nutrients MCP Server

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

Local serverstdio

What is the Nutrients MCP server?

If you already use Nutrients, the nutrients mcp server is the piece that lets your assistant work with it directly. Analyze food photos or text for calories, macros, vitamins, minerals, and allergens.

What the server does

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).

Installation

The server ships on npm as nutrients-mcp, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • analyze_food_image — Fetches a food image from a public URL and returns a full nutritional breakdown
  • analyze_food — Returns a full nutritional breakdown for a food item by name or description. No image required

Credentials and setup notes

Configuration is passed through the environment: TASTYAPI_KEY, YOUR_API_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Nutrients's toolset — analyze_food_image, analyze_food — is a fair guide to whether it matches your workflow. It is maintained by ericblair1903; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Nutrients's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available tools

ToolWhat it does
analyze_food_imageFetches a food image from a public URL and returns a full nutritional breakdown.
analyze_foodReturns a full nutritional breakdown for a food item by name or description. No image required.

How to install the Nutrients MCP server

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

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
TASTYAPI_KEYCredential the server authenticates with.Yes
YOUR_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Nutrients to analyze food image.
  • Use Nutrients to analyze food.

Frequently asked questions

It connects Nutrients to MCP-compatible AI assistants such as Claude and Cursor, exposing 2 tools (analyze_food_image, analyze_food) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Nutrients directly.