NutriRef
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| NUTRIREF_BASE_URL | No | Base URL of the NutriRef API server. | https://nutriref.xyz |
| PAYER_PRIVATE_KEY | Yes | Private key of the wallet funding payments via USDC on Base mainnet. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| nutrition_searchA | Find foods in the USDA FoodData Central database by free-text name. Use this FIRST when the user mentions a food by name and you need its Args: q: Free-text food name (e.g. "banana", "greek yogurt", "chicken breast"). limit: Max results to return, 1-50. Default 10. Use a small limit unless you need to browse. |
| nutrition_detailA | Get the full per-100g nutrition profile for one specific food. Use this when you have an Args: fdc_id: USDA FoodData Central ID, obtained from nutrition_search. |
| nutrition_compareA | Compare 2 to 5 foods side by side. Use this when the user asks "which is healthier," "which has more protein," or any cross-food comparison — it's cheaper and clearer than calling nutrition_detail multiple times. Returns each food's full nutrition plus per-nutrient winners (highest protein, lowest sodium, etc.). Charges $0.003 USDC per call. Args: fdc_ids: 2 to 5 USDA FDC IDs to compare. |
| nutrition_recipeA | Sum nutrition across a recipe of weighted ingredients. Use this for meal planning, recipe analysis, or any "what are the totals if I combine X grams of A with Y grams of B" task. Each food's per-100g nutrition is scaled by grams/100 then summed. Charges $0.005 USDC per call. Args: ingredients: List of {"fdc_id": int, "grams": float} pairs. At least one; weights in grams. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Younghef/nutriref-api'
If you have feedback or need assistance with the MCP directory API, please join our Discord server