USDA Food Data Central
liveHealthFoodComprehensive nutrient database for US foods (~600k items). Branded, Foundation, SR Legacy, Survey, Experimental data types.
5tools
0msauth
free tier50 calls/day
Authentication
Platform key handled by Pipeworx. Or BYO: ?_apiKey=<key>.
Config with credentials
{
"mcpServers": {
"pipeworx-usda-fdc": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://gateway.pipeworx.io/usda-fdc/mcp?_apiKey=your_key"
]
}
}
}Tools
search_foodsrequired: querySearch FDC foods.
Parameters
NameTypeDescription
queryreqstring—data_typeoptstring—brand_owneroptstring—page_sizeoptnumber—page_numberoptnumber—sort_byoptstring—sort_orderoptstring—Try it
Response
get_foodrequired: fdc_idFull food record by FDC id.
Parameters
NameTypeDescription
fdc_idreqnumber—formatoptstring—nutrientsoptstring—Try it
Response
list_foodsPaginated browse.
Parameters
NameTypeDescription
data_typeoptstring—page_sizeoptnumber—page_numberoptnumber—sort_byoptstring—sort_orderoptstring—Try it
Response
list_food_groupsUSDA food group reference.
No parameters required.
Try it
Response
nutrients_for_foodrequired: fdc_idJust the nutrient values for a food.
Parameters
NameTypeDescription
fdc_idreqnumber—nutrient_numbersoptstring—Try it
Response
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
List available tools
bash
curl -X POST https://gateway.pipeworx.io/usda-fdc/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Call a tool
bash
curl -X POST https://gateway.pipeworx.io/usda-fdc/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search_foods","arguments":{"query": "hello"}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("search_foods", {"query":"example"});ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("comprehensive nutrient database for us foods (~600k items)");