MCP, MCP server
io.github.Younghef/nutriref
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.
Compatibility: Not stated.
Grade B
Minor issues only, no Medium or High. Worth a quick look at the findings below before installing.
Not a guarantee. A hygiene check of the source at the commit shown, not a security audit.
Rescanned at commit 248421f1577f, unchanged since the check below.
INSTALL_UNPINNED NETWORK_NO_FIXED_HOST SECRETS_PATH_DOTENV SECRETS_ENV_READ
Why this grade
- INSTALL_UNPINNED Low
Dependencies use a range or git URL with no lockfile.
requirements.txt, line 1
fastapi>=0.115.0 - NETWORK_NO_FIXED_HOST Low
Makes a network call whose host is not written as a fixed address.
app/errors.py, line 6
behind a payment-shaped error and makes the MCP client (and curl probes) think - SECRETS_PATH_DOTENV Low
Mentions a .env file.
app/config.py, line 6
# Allow relocating .env outside the project tree. The repo lives in a - SECRETS_ENV_READ Note
Reads an environment variable whose name contains KEY, SECRET, TOKEN, PASSWORD or CREDENTIAL.
examples/meal-planner/plan_meal.py, line 107
key = os.environ.get("PAYER_PRIVATE_KEY")
Any High, or two or more Medium findings, give D. One Medium gives C. Low findings or a security Note give B. Each code names a finding behind the letter.
Grades are a hygiene check of the source at the commit shown, on the date checked, not a security audit or a guarantee. The free directory grades are automated. Before release, a PlugVet engineer reviews every paid report and any grade we hold back, including all F grades, against the source code and the evidence we quote.
What was checked
Plain notes from the hygiene checks.
Permissions
Pass
No shell or command execution found, and no extra permission was declared.
Install and update
Concern
dependencies are not pinned.
INSTALL_UNPINNED
requirements.txt, line 1
fastapi>=0.115.0
Network
Concern
can reach a host that is not written as a fixed address.
NETWORK_NO_FIXED_HOST
app/errors.py, line 6
behind a payment-shaped error and makes the MCP client (and curl probes) think
app/landing.py, line 119
r = await http.get("/v1/nutrition/detail/2012128")
examples/meal-planner/plan_meal.py, line 118
r = await http.get("/v1/nutrition/search", params=args)
Show more
examples/meal-planner/plan_meal.py, line 120
r = await http.get(f"/v1/nutrition/detail/{args['fdc_id']}")
scripts/pay_and_call.py, line 105
resp = await http.get(path)
Secrets
Concern
reads a credential or environment file.
SECRETS_ENV_READ SECRETS_PATH_DOTENV
app/config.py, line 6
# Allow relocating .env outside the project tree. The repo lives in a
app/config.py, line 8
# reverts .env mid-session (see CLAUDE memory env-file-instability). Setting
examples/meal-planner/plan_meal.py, line 107
key = os.environ.get("PAYER_PRIVATE_KEY")
Show more
app/config.py, line 9
# NUTRIREF_ENV_FILE=%USERPROFILE%\.nutriref\.env (or any other path) keeps
mcp_server/server.py, line 27
key = os.environ.get("PAYER_PRIVATE_KEY")
scripts/get_cdp_address.py, line 3
Reads CDP_API_KEY_ID / CDP_API_KEY_SECRET / CDP_WALLET_SECRET from .env.
scripts/get_cdp_address.py, line 19
sys.exit(f"No .env found at {path}")
scripts/get_cdp_address.py, line 35
env = load_env(Path(__file__).resolve().parent.parent / ".env")
scripts/get_cdp_address.py, line 39
sys.exit(f"Missing in .env: {', '.join(missing)}")
scripts/pay_and_call.py, line 10
# add PAYER_PRIVATE_KEY=0x... to .env (a funded Base Sepolia test wallet)
Agent instructions
Pass
No instruction to ignore earlier instructions or to hide a step.
Obfuscation
Pass
No encoded or minified payload found.
Licence
Pass
A licence file is present (LICENSE).
Maintainer activity
Pass
The latest commit is within the last 365 days.
Note
Hygiene check of commit 248421f1577f. dependencies are not pinned. can reach a host that is not written as a fixed address. reads a credential or environment file.
Date and source
Date checked:
github.com
Commit graded: 248421f1577faadd2e08f0884195b12e3f4a1db7
This link goes to the original host. PlugVet does not host or check what you download from there, and installing it is your own decision and risk.