nutriref-mcp
MCP server for NutriRef — pay-per-call USDA FoodData Central nutrition for AI agents, gated by x402 micropayments in USDC on Base. No signup, no API keys.
It exposes four tools:
| Tool | What it does | Price |
|---|---|---|
nutrition_search |
Find foods by name, get fdc_id + macros |
$0.001 |
nutrition_detail |
Full per-100g profile (13 nutrients) for one food | $0.002 |
nutrition_compare |
Compare 2–5 foods with per-nutrient winners | $0.003 |
nutrition_recipe |
Scale and sum nutrition across weighted ingredients | $0.005 |
Install
pip install nutriref-mcp
Or run without installing:
uvx nutriref-mcp
Configure your MCP client
Add this to your client config (Claude Desktop's claude_desktop_config.json, Claude Code's MCP settings, etc.):
{
"mcpServers": {
"nutriref": {
"command": "nutriref-mcp",
"env": {
"PAYER_PRIVATE_KEY": "0x...your-funded-wallet-key...",
"NUTRIREF_BASE_URL": "https://nutriref.xyz"
}
}
}
}
PAYER_PRIVATE_KEY is the private key of a Base mainnet wallet holding USDC — the wallet pays for each tool call. Use a dedicated wallet funded only with what you're willing to spend. NUTRIREF_BASE_URL is optional and defaults to https://nutriref.xyz.
License
MIT
Metadata
Release files for nutriref-mcp 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nutriref_mcp-0.2.3.tar.gz | 5.2 kB | Without provenance | Details for nutriref_mcp-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nutriref_mcp-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for nutriref_mcp-0.2.3-py3-none-any.whl |
Total release size: 11.0 kB
Release files / nutriref_mcp-0.2.3.tar.gz
| Download URL | nutriref_mcp-0.2.3.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1290cbd43f3d861326b16360e0da104c0bb9903cb6b4b180b58f26adc4bb36b9
|
|
BLAKE2b-256 checksum How to use checksums |
2036fe5490421919e29fa4f601d419c6cd1d5cd0b476ddbf20555152833fe11c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.1
|
Release files / nutriref_mcp-0.2.3-py3-none-any.whl
| Download URL | nutriref_mcp-0.2.3-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f9335357192b87a9d8b58af440ee9cbfddcf11ea0c595443eaf0c214e93bf704
|
|
BLAKE2b-256 checksum How to use checksums |
9dc1bd3b67728e39664c7a4ad5802389bbaf364346ea055d8c2bbaeeaefde25d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.1
|
Security for nutriref-mcp 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.