/usda-mcp-server:usda-guidefrom usda-mcp-server
Use usda_* tools for food comparisons, portion-based nutrition, and packaged-food lookups when preparation, serving weights, or missing nutrients affect the answer. Establish matching food records and measurement bases before drawing conclusions.
Ships in usda-mcp-server. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use USDA FoodData Central for a specified food's composition or a bounded comparison. It does not provide nutrient-ranked search: a few keyword matches cannot establish which foods have the most of a nutrient across the database.
Food fdcId, nutrient id, and legacy nutrient number identify different things. Use the nutrient id from usda_list_nutrients (its query finds an ID by name) or a returned food profile for nutrient filtering; never substitute its legacy number or a food ID. If a nutrient filter unexpectedly returns nothing, check the food's missingNutrients and inspect the unfiltered profile before concluding the nutrient is unavailable: related nutrient names can have distinct IDs.
basisUnit, even when the result also shows a product-label serving: g, or ml for a Branded label in ml. An absent basisUnit means the label unit (IU, MG, or none) fixes neither, so the values are per 100 label units with the basis unverified; do not report them as per 100 g. A mass-unit request on an ml or label-unit basis is applied unconverted, and the returned notice says so. A preview omitting a nutrient does not establish its absence; use usda_get_food for the full profile.missingNutrients lists the requested nutrient IDs a food's profile does not report. Treat them as unreported for that ID, not as zero, and not as proof the nutrient is absent from the food.provenance: true on usda_get_food or usda_get_foods and read each nutrient's derivation. Code Z is an assumed zero, not a measurement. Survey (FNDDS) foods carry no derivation at all, so their values cannot be classed as measured or assumed. SR Legacy sends a derivation on only some values: without one, dataPoints above 0 means the value was measured in that many samples, and dataPoints 0 means it was calculated or assumed, with no way to tell which.Fiber, total dietary) and 2033 (Total dietary fiber (AOAC 2011.25), which also counts resistant starch and reads higher, more than ten times as high on some starchy foods). Some Foundation records report only 2033. Compare fiber only between values with the same ID, and say which measure a value is.gtinUpc is the stored form and can differ from the query in leading zeros or a missing check digit. Any other code, 8–11 digits or a failed check digit included, matches only the exact stored string. The same digits can instead match an 8-digit Survey (FNDDS) food code, so confirm the returned gtinUpc and description before using the record. When a barcode finds nothing, search the product's name with dataType: ["Branded"]. A multi-word query matches foods holding any one word unless requireAllWords is set, so check each result's description against the whole request.result_window_exceeded; narrow the query or filters rather than concluding the rest does not exist.servingInfo before treating a serving as the user's household measure. unit: "serving" uses the first of allPortions, the portion FDC displays first (lowest sequenceNumber), which is not automatically the requested cup, piece, or package. For another listed portion, use its gram weight explicitly. Do not infer a gram weight from a volume label without a known conversion.missingData, failed, and substitutions before reporting a complete comparison or meal total. Missing values are unavailable, never zero; a nutrient row can be absent when no compared food reports it. A substitutions entry means a default energy or total-sugars cell came from an equivalent nutrient (used), not the one requested. While deferredIds remain from usda_get_foods or usda_compare_foods, those foods are not in the result, so any total or comparison is incomplete. IDs can be deferred for the 20-ID cap of usda_get_foods (call it again with them and the same nutrients and provenance), for the 5-food cap of usda_compare_foods (call usda_compare_foods with the IDs in deferredIds and the same nutrients, quantity, and unit; pair a single leftover ID with one already compared), or because FDC did not answer them in time (slow Foundation records, most often): fetch an unanswered ID with usda_get_food, which waits longer for one record, or repeat the call. A retry_deadline_exceeded error means too few IDs answered in time (none for usda_get_foods, fewer than 2 for usda_compare_foods); retry once, then request fewer foods or fetch them one at a time.Comparable foods: Select records matching each requested preparation, then compare the requested nutrients on a common mass basis. Report missing coverage alongside the comparison.
Packaged product or household portion: Confirm the product identity, inspect its serving description and gram weight, then scale to the requested amount. If the available serving does not match the user's measure and no gram weight is known, ask for the weight before giving a portion total.
Meal with unequal portions: Establish each ingredient's record and gram amount, retrieve its scaled nutrients, then sum matching nutrient IDs and units. If any ingredient lacks a requested nutrient, fails retrieval, or is left in deferredIds, identify the incomplete coverage rather than presenting the sum as a complete meal total.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
usda-mcp-server@cyanheads is listed by cyanheads/cyanheads — review the source before installing
npx claudepluginhub cyanheads/cyanheads --plugin usda-mcp-server