Health
Data source: Open Food Facts
MCP Protocol
Endpoint
https://context.gnist.ai/mcp/nutrition/
claude_desktop_config.json
{
"mcpServers": {
"gnist-nutrition": {
"url": "https://context.gnist.ai/mcp/nutrition/",
"headers": {
"Gnist-API-Key": "YOUR_API_KEY"
}
}
}
}
Shell
curl -X POST "https://context.gnist.ai/mcp/nutrition/" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "Gnist-API-Key: YOUR_API_KEY" \
-d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "search_foods", "arguments": {"query": "example"}}}'
REST API
API Root
https://context.gnist.ai/rest/nutrition/
3 endpoints available:
GET /rest/nutrition/search_foodsGET /rest/nutrition/get_productGET /rest/nutrition/report_feedback
Shell
curl "https://context.gnist.ai/rest/nutrition/search_foods?query=example" \ -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx
resp = httpx.get(
"https://context.gnist.ai/rest/nutrition/search_foods",
headers={"Gnist-API-Key": "YOUR_API_KEY"},
params={
"query": "example"
},
)
print(resp.json())
Command Line
Command
gc nutrition
CLI documentation will be available when the GnistAI SDK is published.
Install
pip install gnistai
Available Tools (3)
search_foodsSearch food products by name, brand, or description and get nutritional information.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | required | Search terms for food products (e.g. "granola", "orange juice", "Nutella"). Searches product names, brands, and categories. |
limit | integer | optional | Number of results to return (1–50, default 10). (default: 10) |
get_productLook up a specific food product by its barcode and get full nutritional details.
| Parameter | Type | Required | Description |
|---|---|---|---|
barcode | string | required | Product barcode (EAN/UPC, e.g. "3017620422003" for Nutella, "5449000000996" for Coca-Cola). |
report_feedbackReport a bug, feature request, or general feedback for this data source.
| Parameter | Type | Required | Description |
|---|---|---|---|
feedback | string | required | |
feedback_type | string | optional | (default: "general") |