USDA FoodData Central: food search, nutrition data, and a quality-first find_food tool
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"io-github-trellislabs-hq-fooddata-central-mcp": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
USDA FoodData Central: food search, nutrition data, and a quality-first find_food tool
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationBe the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in health
MCP server for the ClinicalTrials.gov v2 API. Search trials, retrieve study details and results, and match patients to eligible trials.
Search and contribute to the Open Food Facts database.
MCP server for Withings health data — sleep, activity, heart, and body metrics.
Indian-accurate nutrition logging for your AI: IFCT 2017 + USDA, by text or photo.
MCP Security Weekly
Get CVE alerts and security updates for io.github.trellislabs-hq/fooddata-central-mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
An MCP server that exposes the USDA FoodData Central database — search foods, look up nutrient data by FDC ID, and find the canonical version of a food name without wading through thousands of near-duplicate manufacturer entries.
Not affiliated with the USDA. Food composition data is public domain (U.S. Government work); see Attribution below.
Add this to your MCP client config (Claude Desktop, Claude Code, etc.):
{
"mcpServers": {
"fooddata-central": {
"command": "npx",
"args": ["-y", "@trellis-labs/fooddata-central-mcp"],
"env": {
"FDC_API_KEY": "YOUR_KEY_HERE"
}
}
}
}
For Claude Desktop, this goes in claude_desktop_config.json
(~/Library/Application Support/Claude/claude_desktop_config.json on macOS,
%APPDATA%\Claude\claude_desktop_config.json on Windows).
Sign up for a free key at fdc.nal.usda.gov/api-guide — takes about a minute, no credit card. A registered key gets you 1,000 requests/hour.
Don't want to sign up right now? Use FDC_API_KEY=DEMO_KEY — USDA's
shared demo key works immediately with no signup, limited to 30 requests/hour.
Fine for trying the server out; get a real key before relying on it for
regular use.
Search "cheddar cheese" directly against FDC's full catalog and you get 64,784 hits. Page 1 is ten near-identical Branded entries — different grocery chains' private-label cheddar, none of them the food you actually meant:
CHEDDAR CHEESE | Grafton Village Cheese Co, LLC
CHEDDAR CHEESE | Three Square Inc. (Crystal Farms)
CHEDDAR CHEESE | Weis Markets, Inc.
CHEDDAR CHEESE | Weis Markets, Inc.
CHEDDAR CHEESE | Weis Markets, Inc.
... (5 more brands, same product)
The canonical, lab-analyzed answer — Cheese, cheddar (FDC 328637,
Foundation) — is nowhere on that page.
find_food("cheddar cheese") returns it first:
Best match for "cheddar cheese":
FDC ID: 328637 | Name: Cheese, cheddar | Type: Foundation
Nutrient summary: Carbohydrate: 2.44 G | Energy: 408 KCAL | Protein: 23.3 G | ...
Use get_food(fdcId: 328637) for the full nutrient breakdown.
Alternates:
FDC ID: 746767 | Name: Cheese, swiss | Type: Foundation
...
It does this by preferring Foundation (USDA lab-analyzed) and SR Legacy
(classic reference) data over Branded (manufacturer-submitted) noise, and
only falling back to Branded results if nothing else matches or you
explicitly ask for it (includeBranded: true).
find_foodFind the best canonical match for a food name. This is the tool to reach for first when you just want "the" answer for a food, not a list to sift through.
name (string, required), includeBranded (boolean, optional,
default false)search_foods for more control.search_foodsSearch FDC by keyword. Full control over data type, brand owner, and pagination — use this when you want to see the raw candidate list rather than a single resolved answer.
query (required), dataType, pageSize (1-50, default 10),
pageNumber, brandOwner.Foundation and SR Legacy over Branded
unless you specifically need manufacturer nutrition-label data. `Surv