[Integrations](https://spiral.ai/integrations) › [Hermes](https://spiral.ai/integrations/hermes) › [USDA nutrient reference](https://spiral.ai/integrations/hermes/usda-nutrient-reference)

# How to Use USDA nutrient reference in Hermes

Returns nutrient reference entries with names, identifiers, numbers, and units. Use it to identify the exact nutrient you want before requesting food rankings or building a comparison table.

|  |  |
| --- | --- |
| Model | USDA nutrient reference |
| Available through | Alexandria |
| Category | Maps & Reviews |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with USDA nutrient reference in Hermes

- Each quarter, use USDA nutrient reference to check the biotin entry and report changes to its name, identifier, number, or unit.
- Every Monday at 9am: use USDA nutrient reference to look this up and give me the result as a table.
- Pull the latest numbers from USDA nutrient reference and tell me what changed since last week.
- Check USDA nutrient reference and summarize what you find in three bullet points.
- Pull the newest data from USDA nutrient reference and give me the result as a table.

## How to set up USDA nutrient reference in Hermes

Pick the way that suits you. Each takes about two minutes.

### Use the Spiral skill

1. **Send Hermes this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use Spiral's MCP server

1. **Add the server and sign in**: Hermes opens your browser: sign in to Spiral and click Authorize. No API key. When Hermes asks Enable all tools? \[Y/n/select], answer Y: n cancels without saving the server, and select hides the tools you leave out.

```bash
hermes mcp add spiral \
  --url https://api.spiral.ai/mcp \
  --auth oauth \
  --connect-timeout 300
```

2. **Check it**: In a chat that was already open, run `/reload-mcp`.

```bash
hermes mcp list
hermes mcp test spiral
```

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run USDA nutrient reference**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "fdc-nal-usda-gov/foods/list_nutrients",
    "input": {
      "query": "<query>"
    }
  }'
```

Then paste one of the prompts above: Hermes finds USDA nutrient reference on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/hermes

## USDA nutrient reference tools and prices

- [USDA FoodData Central (fdc.nal.usda.gov) · List nutrients](https://spiral.ai/tools/alexandria/fdc-nal-usda-gov/foods/list_nutrients) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| query |  | — | Case-insensitive substring of the nutrient name, short name or number. Omitted returns all nutrients. |

## What can you do with USDA nutrient reference in Hermes?

Produce a recurring USDA reference report for food buyers or menu researchers. Scheduled agents can compare successive food records, category references, nutrient definitions, and ranking results while respecting the source's update cadence.

### Cafeteria ingredient substitution research

Find candidate foods by sodium content, match their descriptions, and inspect complete records. Use nutrient definitions and food categories to organize a comparison of substitutes within the same type of food.

### Plant protein ingredient comparison

Discover foods ranked by reported protein, locate lentil, bean, tofu, and grain records, and compare their nutrient details. Resolve nutrient units and category labels before preparing a purchasing research table.

### Fortified staple food research

Build a reference comparison of enriched and unenriched flour or rice. Resolve the iron definition, discover candidate foods by iron content, verify descriptions, and organize detailed records by USDA category.

### Food comparison teaching tool

Build a classroom explorer with food search, category navigation, nutrient definitions, nutrient rankings, and individual food records. Let students investigate how the chosen food and nutrient change a comparison.

### Nutrient terminology reference

Create a lookup table of USDA nutrient names, identifiers, numbers, and units for editors or application developers preparing food comparison tables.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Hermes guides](https://spiral.ai/integrations/hermes)

## USDA nutrient reference in other agents

- [Amp](https://spiral.ai/integrations/amp/usda-nutrient-reference)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/usda-nutrient-reference)
- [Claude](https://spiral.ai/integrations/claude-desktop/usda-nutrient-reference)
- [Claude Code](https://spiral.ai/integrations/claude-code/usda-nutrient-reference)
- [Cline](https://spiral.ai/integrations/cline/usda-nutrient-reference)
- [Codex](https://spiral.ai/integrations/codex/usda-nutrient-reference)
- [Cursor](https://spiral.ai/integrations/cursor/usda-nutrient-reference)
- [Devin](https://spiral.ai/integrations/devin/usda-nutrient-reference)
- [dots](https://spiral.ai/integrations/dots/usda-nutrient-reference)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/usda-nutrient-reference)
- [Gemini](https://spiral.ai/integrations/gemini/usda-nutrient-reference)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/usda-nutrient-reference)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/usda-nutrient-reference)
- [goose](https://spiral.ai/integrations/goose/usda-nutrient-reference)
- [Grok](https://spiral.ai/integrations/grok/usda-nutrient-reference)
- [Grok Build](https://spiral.ai/integrations/grok-build/usda-nutrient-reference)
- [Instinct](https://spiral.ai/integrations/instinct/usda-nutrient-reference)
- [Manus](https://spiral.ai/integrations/manus/usda-nutrient-reference)
- [Muse](https://spiral.ai/integrations/muse/usda-nutrient-reference)
- [Muse Code](https://spiral.ai/integrations/muse-code/usda-nutrient-reference)
- [n8n](https://spiral.ai/integrations/n8n/usda-nutrient-reference)
- [Notion](https://spiral.ai/integrations/notion/usda-nutrient-reference)
- [OpenClaw](https://spiral.ai/integrations/openclaw/usda-nutrient-reference)
- [opencode](https://spiral.ai/integrations/opencode/usda-nutrient-reference)
- [Perplexity](https://spiral.ai/integrations/perplexity/usda-nutrient-reference)
- [Raycast](https://spiral.ai/integrations/raycast/usda-nutrient-reference)
- [VS Code](https://spiral.ai/integrations/vscode/usda-nutrient-reference)
- [Windsurf](https://spiral.ai/integrations/windsurf/usda-nutrient-reference)
- [Zapier](https://spiral.ai/integrations/zapier/usda-nutrient-reference)

## More Hermes guides

- [USDA foods ranked by nutrient](https://spiral.ai/integrations/hermes/usda-foods-ranked-by-nutrient)
- [Vrbo destination lookup](https://spiral.ai/integrations/hermes/vrbo-destination-lookup)
- [USDA food search](https://spiral.ai/integrations/hermes/usda-food-search)
- [Vrbo property details](https://spiral.ai/integrations/hermes/vrbo-property-details)
- [USDA food nutrition details](https://spiral.ai/integrations/hermes/usda-food-nutrition-details)
- [Vrbo rental search](https://spiral.ai/integrations/hermes/vrbo-rental-search)

## Questions about USDA nutrient reference in Hermes

**Can Hermes use USDA nutrient reference?**

Yes. Add Spiral to Hermes as an MCP server, and Hermes can find and run USDA nutrient reference like any built-in tool.

**How much does USDA nutrient reference cost in Hermes?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Hermes plan is separate.

**Do I need an Alexandria account to use USDA nutrient reference in Hermes?**

No. Spiral runs USDA nutrient reference on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up USDA nutrient reference in Hermes?**

About two minutes: add the server and sign in, then check it.

**Does Hermes wait while USDA nutrient reference runs?**

USDA nutrient reference runs in the background. Hermes starts the run, checks on it and gives you the json when it's ready.

**How often does USDA update FoodData Central?**

Branded Foods data updates monthly through the API. SR Legacy is a fixed historical reference whose final release was April 2018.

**What does Foundation Foods cover?**

Foundation Foods covers commodity and minimally processed food samples. Its metadata helps explain variation between analyzed samples.

**Does USDA use one category system for every food?**

No. Each FoodData Central data type uses a categorization system developed for its own purpose, so category labels should be interpreted within that data type.

**Can I find a packaged food by its barcode?**

FoodData Central supports searching by GTIN as well as food name. It also supports NDB numbers and FNDDS food codes for the relevant data types.

**What information can I inspect behind a nutrient value?**

A food record can include data points, minimum, maximum, median, derivation details, and portions. Which details are available depends on the selected record.

