get_food
Pack: usda-fdc · Endpoint: https://gateway.pipeworx.io/usda-fdc/mcp
Full food record by FDC id.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
fdc_id | number | yes | FDC id (e.g. 1102704) |
format | string | no | abridged | full (default full) |
nutrients | string | no | Comma-sep nutrient numbers to restrict response |
Example call
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":"get_food","arguments":{}}}'
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.