list_foods
Pack: usda-fdc · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/list_foods for the schema, then POST the same URL with its arguments for the data.
Paginated browse of FDC foods.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
data_type | string | no | Filter to data type(s). Options: ${DATA_TYPES} |
page_size | number | no | 1-200 (default 50) |
page_number | number | no | 1-based page |
sort_by | string | no | |
sort_order | string | no |
Example call
Arguments
{
"data_type": "Survey (FNDDS)",
"page_number": 1,
"page_size": 50
}
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":"list_foods","arguments":{"data_type":"Survey (FNDDS)","page_number":1,"page_size":50}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('list_foods', {
"data_type": "Survey (FNDDS)",
"page_number": 1,
"page_size": 50
});
More examples
{
"page_number": 2,
"page_size": 100,
"sort_by": "publishedDate",
"sort_order": "desc"
}
Response shape
| Field | Type | Description |
|---|---|---|
items | array | |
count | number |
Full JSON Schema
{
"type": "object",
"properties": {
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"fdcId": {
"type": "number"
},
"description": {
"type": "string"
},
"dataType": {
"type": "string"
},
"publicationDate": {
"type": "string"
},
"foodCode": {
"type": "string"
},
"foodNutrients": {
"type": "array",
"items": {
"type": "object",
"properties": {
"number": {
"type": "string"
},
"name": {
"type": "string"
},
"amount": {
"type": "number"
},
"unitName": {
"type": "string"
},
"derivationCode": {
"type": "string"
},
"derivationDescription": {
"type": "string"
}
}
}
},
"brandOwner": {
"type": "string"
},
"gtinUpc": {
"type": "string"
}
}
}
},
"count": {
"type": "number"
}
},
"description": "Paginated list of FDC foods"
}
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the usda-fdc pack
{
"mcpServers": {
"usda-fdc": {
"url": "https://gateway.pipeworx.io/usda-fdc/mcp"
}
}
}
See Getting Started for client-specific install steps.