Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI โ†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE โ†— (opens in a new tab)
  • llms.txt โ†— (opens in a new tab)
  • Catalog JSON โ†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub โ†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
ยฉ 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. ๐Ÿ“Š Data Platforms
  3. Nutriref API
Nutriref API logo
Health: ActiveRecent health check succeeded.Last checked 9/11/2026, 5:32:19 PM

Nutriref API

User RatingsBe the first to rate and review this MCP server!
View Repository1 GitHub StarsTotal stargazers on GitHub for the source repository (1 stars).Visit Website
nutritionusdamicropaymentsx402mcp

Pay-per-call USDA FoodData Central nutrition data via x402 micropayments with four API tools and no signup or API keys.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
We couldnโ€™t automatically confirm this listing starts correctly

The install command below didn't complete successfully in our automated test.

uvx nutriref-mcp

Downloading aiohttp (1.7MiB) Downloading cytoolz (2.7MiB) Downloading cryptography (4.5MiB) Downloading pycryptodome (2.2MiB) Downloading pydantic-core (2.0MiB) Downloading web3 (1.3MiB) Downloading x402 (2.1MiB) Downloaded pydantic-core Downloaded aiohttp Downloaded cytoolz Downloaded cryptography Downloaded web3 Downloaded x402 Downloaded pycryptodome Installed 65 packages in 30ms Traceback (most recent call last): File "/home/user/.cache/uv/archive-v0/At8isy_Z6QmtL6t2/bin/nutriref-mc

This is an experimental automated check and can have false negatives โ€” missing environment variables, a slow cold install, etc. It doesnโ€™t necessarily mean somethingโ€™s wrong. Last checked 1mo ago.

Manual Client & Custom JSON ConfigExpand JSON โ–พ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "younghef-nutriref-api": {
      "command": "uvx",
      "args": [
        "nutriref-mcp"
      ]
    }
  }
}

๐Ÿ’ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Directory Badge Claim listing Alternatives๐Ÿ“Š More in Data Platforms

Overview

This server provides structured USDA FoodData Central nutrition data accessible through four endpoints: search, detail, compare, and recipe. It uses the x402 micropayment protocol on Base network, charging $0.001 to $0.005 USDC per request without requiring signup or API keys. It caches responses to reduce USDA API calls and supports direct use by MCP agents or any HTTP client with x402 payment integration. Self-hosting is possible with a USDA API key and configuration for payment reception.

Use cases

โ€ขSearch USDA nutrition data for foods by name
โ€ขRetrieve detailed nutrition facts for a specific food item
โ€ขCompare multiple foods by nutrient values
โ€ขCalculate nutrition for custom recipes scaled by grams
โ€ขIntegrate nutrition data into AI agents with automatic micropayments

Key features

โ€ขFour endpoints: search, detail, compare, recipe
โ€ขUses x402 micropayment protocol with USDC on Base
โ€ขNo signup or API keys required for usage
โ€ขCaching of USDA responses to reduce latency and cost
โ€ขOpen source with option for self-hosting
โ€ขMCP server packaged for easy integration with AI agents

Capabilities & Tool Schemas

Inspect callable tools, capabilities, and parameters exposed to AI agents by Nutriref API.

Extracted Tool Capabilities
Four endpoints: search, detail, compare, recipe
Uses x402 micropayment protocol with USDC on Base
No signup or API keys required for usage
Caching of USDA responses to reduce latency and cost
Open source with option for self-hosting
MCP server packaged for easy integration with AI agents

Documentation Overview

NutriRef

NutriRef MCP server

Pay-per-call USDA nutrition data for AI agents. Structured FoodData Central via the x402 micropayment protocol โ€” agents pay $0.001โ€“$0.005 in USDC per request, no signup, no API keys, no human auth flows.

Live at https://nutriref.xyz. Spec at /openapi.json ยท Swagger at /docs ยท Bazaar discovery at /.well-known/x402.

Endpoints

MethodPathPriceCache
GET/v1/nutrition/search?q=&limit=$0.00124h
GET/v1/nutrition/detail/{fdc_id}$0.0027d
POST/v1/nutrition/compare$0.003derived
POST/v1/nutrition/recipe$0.005derived

All values per 100g. Missing nutrients are null, not 0. compare returns per-nutrient winners (highest protein, lowest sodium, etc.). recipe scales by grams and sums.

Use it from Claude (or any MCP agent)

NutriRef ships an MCP server that exposes the four endpoints as native tools. Install it from PyPI:

Terminal
pip install nutriref-mcp

Then add this to your MCP client config (Claude Desktop's claude_desktop_config.json, Claude Code's MCP settings, etc.):

config.json
{
  "mcpServers": {
    "nutriref": {
      "command": "nutriref-mcp",
      "env": {
        "PAYER_PRIVATE_KEY": "0x...your-funded-wallet-key...",
        "NUTRIREF_BASE_URL": "https://nutriref.xyz"
      }
    }
  }
}

Prefer not to install? Use uvx nutriref-mcp as the command to run it on demand. To work from a clone instead, pip install -e ".[mcp]" and set command to python with args: ["-m", "mcp_server"].

The wallet needs USDC on Base mainnet โ€” gas is sponsored by the facilitator, so you only need stablecoin balance. The agent now has nutrition_search, nutrition_detail, nutrition_compare, nutrition_recipe and auto-pays per call.

Use it from any HTTP client

Unpaid requests get 402 Payment Required with x402 payment instructions. Any x402-aware client signs a gasless USDC authorization (EIP-3009) and retries automatically:

server.ts
import asyncio
from eth_account import Account
from x402.client import x402Client
from x402.http.clients.httpx import wrapHttpxWithPayment
from x402.mechanisms.evm.exact import register_exact_evm_client

account = Account.from_key("0x...funded-wallet-key...")
client = x402Client(); register_exact_evm_client(client, account)

async def main():
    async with wrapHttpxWithPayment(client, base_url="https://nutriref.xyz") as http:
        r = await http.get("/v1/nutrition/detail/2012128")
        print(r.json())

asyncio.run(main())

Response example

GET /v1/nutrition/detail/173944:

config.json
{
  "fdc_id": 173944,
  "description": "Banana, raw",
  "data_type": "Foundation",
  "serving_size": 100, "serving_size_unit": "g",
  "calories": 89.0,  "protein": 1.1,    "fat": 0.3,
  "carbs": 22.8,     "fiber": 2.6,      "sugar": 12.2,
  "sodium": 1.0,     "cholesterol": null, "saturated_fat": 0.1,
  "vitamin_c": 8.7,  "calcium": 5.0,    "iron": 0.3,  "potassium": 358.0
}

Self-hosting

NutriRef is open source; the live instance at nutriref.xyz is one deployment among many possible. To run your own:

bash
cp .env.example .env
# fill in USDA_API_KEY (free at https://fdc.nal.usda.gov/api-key-signup.html)
# and X402_RECEIVER_ADDRESS (an EVM address that should receive payments)
docker compose up --build
curl http://localhost:8000/health

Configuration

VarRequiredDefaultPurpose
USDA_API_KEYyesโ€”Free key from fdc.nal.usda.gov
USDA_BASE_URLnohttps://api.nal.usda.gov/fdc/v1
REDIS_URLnoredis://redis:6379/0Response cache
X402_NETWORKnobase-sepoliabase for mainnet
X402_RECEIVER_ADDRESSyesโ€”EVM address that receives USDC
X402_FACILITATOR_URLnohttps://x402.org/facilitatorhttps://api.cdp.coinbase.com for mainnet
CDP_API_KEY_IDmainnet onlyโ€”Coinbase Developer Platform key ID
CDP_API_KEY_SECRETmainnet onlyโ€”Coinbase Developer Platform key secret
LOG_LEVELnoINFO

For mainnet you need a Coinbase CDP account and the public x402 facilitator at https://api.cdp.coinbase.com. Testnet works for free with the community facilitator at https://x402.org/facilitator.

Architecture

Code
agent โ†’ x402 middleware โ†’ route handler โ†’ cache (Redis) โ†’ USDA FDC API

search and detail cache USDA responses directly. compare and recipe compose from the cached detail data โ€” no extra USDA calls when warm. The cache is a meaningful cost lever: warm requests return in <50ms and never hit USDA.

Tests

Terminal
pip install -e ".[dev]"
pytest

Example: Claude agent that uses NutriRef

examples/meal-planner/ is a complete, ~150-line agent that gives Claude the four NutriRef endpoints as tools and asks it to plan a day of meals hitting a calorie/protein goal. Worth reading if you're wiring NutriRef into your own agent โ€” the tool schemas and the payment loop are all there. See examples/meal-planner/README.md.

Repo layout

server.ts
app/                # FastAPI service
  main.py             # app factory + x402 init
  routes/             # search, detail, compare, recipe
  landing.py          # / (public landing page)
  discovery.py        # /.well-known/x402, /llms.txt, /.well-known/ai-plugin.json, /logo.svg
  usda.py             # async USDA client
  cache.py            # Redis wrapper
  normalize.py        # USDA โ†’ flat 13-nutrient schema
mcp_server/         # MCP server wrapper for agent use
examples/           # worked agent examples (meal planner)
scripts/            # CDP wallet bootstrap + payer-side test
tests/              # pytest + respx + fakeredis

Acknowledgments

  • USDA FoodData Central for the data.
  • x402 for the payment protocol.
  • fastapi-x402 for the server middleware (with a small EIP-712 patch we apply at startup for Base mainnet USDC).

Read the full README โ†’View source on GitHub โ†’

Related MCP Servers

View all in Data Platforms View all alternatives
  • HelpMyAgent logoHelpMyAgent
    Verified

    HelpMyAgent is a remote MCP server for AI agents that need structured, agent-ready data and services on demand. Agents can discover available capabilities, inspect input/output schemas, pricing, provenance, coverage and limitations, then execute the appropriate tool over Streamable HTTP. Paid calls use x402 v2 with supported digital payment rails, without subscriptions or API keys.

    ๐Ÿ“Š Data Platforms2 views
    Compare vs HelpMyAgent โ†’
  • C
    CorpusIQ
    Verified

    65+ MCP tools for business operations: ecommerce, finance, marketing, and analytics data through one streamable-HTTP endpoint. Built for operators.

    ๐Ÿ“Š Data Platforms5 views
    Compare vs CorpusIQ โ†’
  • MCP Databricks Server logoMCP Databricks Server

    Connect to Databricks API, allowing LLMs to run SQL queries, list jobs, and get job status.

    ๐Ÿ“Š Data Platforms3 views
    Compare vs MCP Databricks Server โ†’
  • Capsulemcp logoCapsulemcp

    MCP server for Capsule CRM. 81 tools (49 in read-only mode) covering contacts, opportunities, projects, tasks, timeline activity, structured + saved filters, workflow tracks, and file attachments. Two transports โ€” stdio (npx capsulemcp) and HTTP+OAuth for hosted Custom Connectors. Read-only-mode env flag for safer defaults. Apache 2.0.

    ๐Ÿ“Š Data Platforms3 views
    Compare vs Capsulemcp โ†’

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks โ€” not a rating.

GitHub stars
1
Stargazers on the source repository.
Last commit
2mo ago
Most recent push to the default branch.
Install check
Inconclusive
Install command did not finish in our automated test.
Directory activity
2 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet โ€” be the first to share how this listing worked for you.

Frequently Asked Questions about Nutriref API

Each request requires a micropayment in USDC via the x402 protocol, with prices from $0.001 to $0.005 per call. Gas fees are sponsored by the facilitator.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewNutriref API AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/younghef-nutriref-api?style=directory)](https://allmcps.com/mcp/younghef-nutriref-api)
HTML Embed
<a href="https://allmcps.com/mcp/younghef-nutriref-api"><img src="https://allmcps.com/api/badge/younghef-nutriref-api?style=directory" alt="Nutriref API on AllMCPs" /></a>

Technical Specs & Signals

Category๐Ÿ“ŠData Platforms
PricingBring your own API key (usage-based cost)
More technical detailsExpand โ–พ
TransportSTDIO
RuntimePython
AuthAPI key
ClientsClaude Desktop
Last updatedAug 9, 2026
Views2
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars1
GitHub Star CountTotal stargazers on GitHub representing community popularity (1 stars).
Last commit2mo ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Jun 15, 2026
49Quality signal: Fair ยท 49/100How this signal is calculated โ–พ
Server availabilityNot measured

Not scored for repo-hosted servers โ€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools24/30
Adoption & activity3/15
Community engagement0/10

A guidance signal from public completeness & health data โ€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 22d ago via OSV.dev ยท nutriref-mcp (PyPI)

โ˜… FeaturedAllMCPs Server logo

AllMCPs Server

The official MCP server for AllMCPs.com - submit and manage tools directly from your AI. The open directory for MCP servers. Connect Claude, Cursor, Windsurf, and AI agents to databases, tools, files, and APIs. Explore 10,000+ servers. AllMCPs is the premier, open directory for discovering, evaluating, and installing Model Context Protocol (MCP) servers to equip AI agents and LLMs with real-world superpowers.

Explore Server โ†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge โ€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it โ€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in ๐Ÿ“Š Data Platforms โ†’Best MCP servers for Data Platforms โ†’Alternatives to Nutriref API โ†’Install in Claude DesktopInstall in CursorInstall in VS Code