nutrients_for_food

Pack: usda-fdc · Endpoint: https://gateway.pipeworx.io/usda-fdc/mcp

Convenience: nutrient values only for a food.

Parameters

NameTypeRequiredDescription
fdc_idnumberyes
nutrient_numbersstringnoComma-sep nutrient numbers (e.g. “208,205”)

Example call

Arguments

{
  "fdc_id": 1102704,
  "nutrient_numbers": "208,205,291"
}

curl

curl -X POST https://gateway.pipeworx.io/usda-fdc/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"nutrients_for_food","arguments":{"fdc_id":1102704,"nutrient_numbers":"208,205,291"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('nutrients_for_food', {
  "fdc_id": 1102704,
  "nutrient_numbers": "208,205,291"
});

Response shape

FieldTypeDescription
fdc_idnumberFDC food identifier
descriptionstringFood description
nutrientsarrayArray of nutrient values
Full JSON Schema
{
  "type": "object",
  "description": "Nutrient values for a specific food",
  "properties": {
    "fdc_id": {
      "type": "number",
      "description": "FDC food identifier"
    },
    "description": {
      "type": "string",
      "description": "Food description"
    },
    "nutrients": {
      "type": "array",
      "description": "Array of nutrient values",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Nutrient name"
          },
          "number": {
            "type": "string",
            "description": "Nutrient identifier number"
          },
          "amount": {
            "type": "number",
            "description": "Nutrient amount"
          },
          "unit": {
            "type": "string",
            "description": "Unit of measurement"
          }
        }
      }
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "usda-fdc": {
      "url": "https://gateway.pipeworx.io/usda-fdc/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026