io.github.cyanheads/usda-mcp-server
NPM · @CYANHEADS/USDA-MCP-SERVER · SCANNED AUG 7
Search foods, compare nutrients, and look up the full USDA FoodData Central database.
Available components
How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score →
Supply Chain Security86
- No malware found by supply-chain analysis.Pass
- Known CVEs were checked across the 125 of 132 dependencies we could resolve, so this covers what we could see, not the whole tree.Partial
- No install/post-install scripts declared.Pass
- Dependency health was assessed across the 125 of 132 dependencies we could resolve, so this covers what we could see, not the whole tree. View diagnostics → Partial
Provenance & Transparency45
- Source repository is publicly reachable at the declared URL. View diagnostics → Pass
- Provenance check failed: no build-provenance attestation is published. See how to fix → View diagnostics → Fail
- Clear OSI-approved license (Apache-2.0).Pass
- Actively maintained (last published 47 days ago).Pass
- Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
Schema Quality & AI Usability79
- 100% of prompts and resources have a non-trivial description (not blank, and not just the item's name).Pass
- AI-judged instruction clarity (excellent).Pass
- Context-footprint check failed: tool/resource definitions use about 1441 tokens (~240/item across 6 items; 5 tools + 1 resources), over budget; trim descriptions and params. See how to fix → Fail
- Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management0
- Stability not yet verified: not enough scan history yet (needs a 30-day window).Unverified
Tool Coverage100
- 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
- 100% of tool parameters carry a description.Pass
- Structured output schemas are declared (100% of tools); any adoption earns full credit.Pass
Capabilities100
- Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Unverified: 1 category
A category scored 0 because we could not verify it: a data source with nothing on this package, evidence we could not reach, or a check we could not run. We only credit what we can confirm.
Add this component to your MCP client. Where a client-specific snippet is available, pick your client below and copy it straight into your config; otherwise use the connection detail shown.
npm · @cyanheads/usda-mcp-server
claude mcp add cyanheads-usda-mcp-server -- npx -y @cyanheads/usda-mcp-server
codex mcp add cyanheads-usda-mcp-server -- npx -y @cyanheads/usda-mcp-server
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"cyanheads-usda-mcp-server": {
"type": "local",
"command": [
"npx",
"-y",
"@cyanheads/usda-mcp-server"
],
"enabled": true
}
}
} openclaw mcp add cyanheads-usda-mcp-server --command npx --arg -y --arg @cyanheads/usda-mcp-server
mcp_servers:
cyanheads-usda-mcp-server:
command: "npx"
args: ["-y", "@cyanheads/usda-mcp-server"] {
"mcpServers": {
"cyanheads-usda-mcp-server": {
"command": "npx",
"args": [
"-y",
"@cyanheads/usda-mcp-server"
]
}
}
} Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.
- 6 Aug 26 +31
- Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window). security
- Schema quality: unverified → 100 ▲ functional
- MCP protocol: unverified → pass ▲ functional
- Tool coverage: unverified → 100 ▲ functional
- First check of Tool coverage: 100 functional
- First check of Tool coverage: 100 functional
- First check of Schema quality: fail functional
- First check of Schema quality: excellent functional
- First check of Schema quality: fail functional
- 2 Aug 26 +14
- Provenance: unverified → fail ▼ security
- Known CVEs: unverified → partial ▲ security
- Install scripts: unverified → pass ▲ security
- Stability: Stability not yet verified: our sandbox run of this package did not complete, so we have no schema to compare. security
- Dependency health: partial → unverified ▼ functional
- Maintenance: unverified → pass ▲ functional
- License: unverified → pass ▲ functional
- Capabilities: Protocol version not yet verified: our sandbox run of this package did not complete, so we never saw its MCP handshake. functional
- Tool coverage: Tool coverage not yet verified: our sandbox run of this package did not complete, so we have no tool definitions to assess. functional
- Schema quality: Schema quality not yet verified: our sandbox run of this package did not complete, so we have no schema to assess. functional
- Licence: Apache-2.0 functional
- 1 Aug 26 +16
- Malware scan: unverified → pass ▲ security
- Stability: Stability not yet verified: we do not have a sandbox capture of the MCP schema this version of the package serves yet. security
- Dependency health: unverified → partial ▲ functional
- Tool coverage: Tool coverage not yet verified: we do not have a sandbox capture of the tool definitions this version of the package serves yet. functional
- Capabilities: Protocol version not yet verified: we do not have a sandbox capture of the MCP handshake this version of the package performs yet. functional
- Schema quality: Schema quality not yet verified: we do not have a sandbox capture of the MCP schema this version of the package serves yet. functional
- 31 Jul 26 −1
- We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
- 30 Jul 26 −40
- Install scripts: pass → unverified ▼ security
- Provenance: fail → unverified ▼ security
- Known CVEs: partial → unverified ▼ security
- Malware scan: pass → unverified ▼ security
- Maintenance: pass → unverified ▼ functional
- Dependency health: partial → unverified ▼ functional
- License: pass → unverified ▼ functional
- Schema quality: Schema quality not yet verified: we do not have a sandbox capture of the MCP schema this version of the package serves yet. functional
- Tool coverage: Tool coverage not yet verified: we do not have a sandbox capture of the tool definitions this version of the package serves yet. functional
- Licence: Apache-2.0 functional
- 28 Jul 26 +21
- Provenance: unverified → fail ▼ security
- Known CVEs: unverified → partial ▲ security
- Install scripts: unverified → pass ▲ security
- Maintenance: unverified → pass ▲ functional
- License: unverified → pass ▲ functional
- Tool coverage: Tool coverage not yet verified: our sandbox run of this package did not complete, so we have no tool definitions to assess. functional
- Schema quality: Schema quality not yet verified: our sandbox run of this package did not complete, so we have no schema to assess. functional
- Licence: Apache-2.0 functional
- 27 Jul 26 25
First indexed and scored.
Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.
Captured 7 Aug 2026 · Analysed npm/@cyanheads/[email protected]
Provenance No attestation
The registry publishes no build provenance for this version, so there is nothing to verify.
| Result | No attestation |
|---|---|
| Ecosystem | npm |
Dependencies 125 packages
| Packages resolved | 125 |
|---|---|
| Deprecated | 125 |
| Stale | 39 |
| Tree resolution | Partial |
The dependency tree was only partially resolved, so these counts may be incomplete.
The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability.
usda_compare_foods Compare USDA Foods ~348
Compare nutrients side-by-side for 2–5 foods. Returns a structured table — one row per nutrient, one column per food — formatted as markdown. Best for "spinach vs kale iron" or "which has more protein?" questions. Omit nutrients[] to use the 12 most common defaults (energy, protein, fat, saturated fat, carbs, fiber, sugars, sodium, potassium, calcium, iron, vitamin C); provide nutrients[] with specific FDC IDs to compare different nutrients. All values are scaled to the same gram basis (default 100g). If one or more FDC IDs are not found, the comparison proceeds with the valid foods — only throws too_few_foods when fewer than 2 IDs return data.
| Name | Type | Req | Description |
|---|---|---|---|
| fdcIds | array | yes | FDC IDs to compare — 2 to 5 foods. Use usda_search_foods to discover IDs. |
| nutrients | array | – | Nutrient IDs to include in the comparison. Defaults to the 12 most common: energy (1008), protein (1003), total fat (1004), saturated fat (1258), carbohydrate (1005), fiber (1079), sugars (1063), sod… |
| quantity | number | – | Gram basis for comparison. All values scaled to this amount. Must be positive. Default 100. |
| unit | string | – | Unit for quantity. Default "g". Does not support "serving" (use a fixed gram basis for consistent comparison). |
| Name | Type | Req | Description |
|---|---|---|---|
| basis | object | yes | The common scaling basis applied to all nutrient values. |
| foods | array | yes | The compared foods, in the same order as the values arrays below. |
| missingData | array | – | Foods or food+nutrient pairs where data was unavailable. Absent when all data was present. |
| nutrients | array | yes | Nutrient rows — one entry per requested nutrient, with per-food values in the values[] array. |
No examples provided.
usda_get_food Get USDA Food ~279
Get the full nutrient profile for one food by FDC ID. Returns all available nutrients (or a filtered subset via the nutrients[] param) with optional per-portion scaling. Use usda_search_foods to discover FDC IDs. Provide quantity + unit to scale all nutrient values from per-100g to the specified portion (e.g. quantity=200, unit="g" → per-200g values). Use unit="serving" to scale to the food's first defined portion weight. Narrow nutrients[] to specific IDs to reduce response size for focused queries.
| Name | Type | Req | Description |
|---|---|---|---|
| fdcId | integer | yes | FDC ID of the food. Use usda_search_foods to discover IDs. |
| nutrients | array | – | Filter to specific nutrient IDs (e.g. [1003, 1004, 1005, 1008] for protein, fat, carbs, energy). Use usda_list_nutrients to look up IDs. Omit to return all available nutrients. |
| quantity | number | – | Amount of food to scale nutrient values to. Must be positive. When provided, unit is required. Omit for per-100g values (FDC database native basis). |
| unit | string | – | Unit for quantity. "serving" uses the food's first defined portion weight. Required when quantity is provided. |
| Name | Type | Req | Description |
|---|---|---|---|
| allPortions | array | – | All named portions for this food. |
| brandName | string | – | Brand name. Branded items only. |
| brandOwner | string | – | Brand owner. Branded items only. |
| dataType | string | yes | FDC data source: SR Legacy, Foundation, Survey (FNDDS), or Branded. |
| description | string | yes | Full USDA food name (e.g. "Chicken, broilers or fryers, breast, meat only, raw"). |
| fdcId | number | yes | FDC ID of the food. |
| foodCategory | string | – | USDA food category (e.g. "Poultry Products"). Absent for some branded items. |
| ingredients | string | – | Ingredient list from label. Branded items only. |
| nutrients | array | yes | Nutrient values for this food, per 100g or scaled to the requested quantity. |
| publicationDate | string | – | Date this food entry was published in FDC. |
| scaledTo | object | – | Scaling basis when quantity+unit were provided. Absent when returning per-100g values. |
| servingInfo | object | – | First available portion definition, if present. |
No examples provided.
usda_get_foods Get USDA Foods (Batch) ~198
Fetch nutrient profiles for 2–20 foods in a single API call. More efficient than calling usda_get_food N times when you already have multiple FDC IDs. All values are per 100g (no portion scaling). Use the nutrients[] filter to limit response size — strongly recommended for batch calls. For side-by-side comparison with a formatted table, use usda_compare_foods instead. Failed IDs (not found or no data) are reported in the failed[] array rather than aborting the entire batch.
| Name | Type | Req | Description |
|---|---|---|---|
| fdcIds | array | yes | FDC IDs to fetch — 2 to 20 IDs. Use usda_search_foods to discover IDs. |
| nutrients | array | – | Filter to specific nutrient IDs (e.g. [1003, 1004, 1005, 1008]). Strongly recommended — full profiles can be large. Use usda_list_nutrients to look up IDs. |
| Name | Type | Req | Description |
|---|---|---|---|
| failed | array | yes | IDs that returned no data. Check these with usda_search_foods to verify they exist. |
| foods | array | yes | Successfully fetched foods. |
No examples provided.
usda_list_nutrients List USDA Nutrients ~154
Look up the FDC nutrient reference table — all tracked nutrients with their numeric IDs, names, SR reference numbers, units, and categories. Use to resolve a nutrient name (e.g. "vitamin C") to its FDC ID (1162) before passing it to the nutrients[] filter on other tools. Filter by category (macronutrients, vitamins, minerals, lipids, amino_acids, or other) to narrow results. The data is static — call once and reuse the IDs.
| Name | Type | Req | Description |
|---|---|---|---|
| category | string | – | Filter to a nutrient category. Omit to return all ~150 tracked nutrients. Options: macronutrients, vitamins, minerals, lipids, amino_acids, other. |
| Name | Type | Req | Description |
|---|---|---|---|
| nutrients | array | yes | Nutrient reference entries matching the requested category, or all if category is omitted. |
No examples provided.
usda_search_foods Search USDA Foods ~319
Search USDA FoodData Central foods by keyword. Returns matching foods with FDC IDs and a preview of key nutrients (energy, protein, fat, carbs — not guaranteed complete). Use the returned fdcId with usda_get_food for the full nutrient profile, or usda_compare_foods for side-by-side comparisons. Defaults to SR Legacy (common whole foods with complete profiles); set dataType to ["Branded"] for packaged products, or include a UPC/GTIN code as the query. Pass brandOwner (e.g. "General Mills") to narrow branded results.
| Name | Type | Req | Description |
|---|---|---|---|
| brandOwner | string | – | Filter branded results by brand owner name (e.g. "General Mills", "Kraft"). Only meaningful when Branded is in dataType. |
| dataType | array | – | FDC data sources to search. Defaults to ["SR Legacy"] (common whole foods, complete nutrient profiles). Include "Branded" for packaged products. Multiple values allowed. |
| foodCategory | string | – | Filter by USDA food category (e.g. "Poultry Products", "Vegetables and Vegetable Products"). Case-sensitive. |
| pageNumber | integer | – | Page number (1-based). Use with totalPages to paginate. |
| pageSize | integer | – | Number of results per page. Default 10, maximum 50. |
| query | string | yes | Search terms — food name, ingredient, or UPC/GTIN code for branded products. Examples: "chicken breast raw", "banana", "012345678901". |
| Name | Type | Req | Description |
|---|---|---|---|
| currentPage | number | yes | Current page number (1-based). |
| foods | array | yes | Foods matching the search query. |
| totalCount | number | yes | Total foods matching the query across all pages. |
| totalHits | number | yes | Total number of foods matching the query across all pages. |
| totalPages | number | yes | Total number of pages available. |
No examples provided.