npm nutrients-mcpstdioMITupdated 1mo ago
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).
What can you do with nutrients mcp?
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
- Node.js 18+
- A TastyAPI API key โ get one at tastyapi.com/pricing
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.
| Parameter | Type | Required | Description |
|---|---|---|---|
image_url |
string | yes | Public 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
food_name |
string | yes | Name 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
Install
Add nutrients mcp to your client. Pick the one you use.
claude mcp add nutrients-mcp -- npx -y nutrients-mcpcodex mcp add nutrients-mcp -- npx -y nutrients-mcpamp mcp add nutrients-mcp -- npx -y nutrients-mcp{
"mcpServers": {
"nutrients-mcp": {
"command": "npx",
"args": [
"-y",
"nutrients-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"nutrients-mcp": {
"command": "npx",
"args": [
"-y",
"nutrients-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"nutrients-mcp","command":"npx","args":["-y","nutrients-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"nutrients-mcp": {
"command": "npx",
"args": [
"-y",
"nutrients-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"nutrients-mcp": {
"command": "npx",
"args": [
"-y",
"nutrients-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"nutrients-mcp": {
"command": "npx",
"args": [
"-y",
"nutrients-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"nutrients-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"nutrients-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"nutrients-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"nutrients-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y nutrients-mcpRun `goose configure`, choose **Add Extension โ Command-line Extension**, and paste this command.
Score
39 / 100
Incomplete
- Documentation22/25
- Maintenance19/25
- Trust13/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 23 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint โ no local install
Version history
| Versions | Published |
|---|---|
| 1.0.3Latest | Jul 25, 2026 |