Integracja Model Context Protocol (MCP)
Połącz Claude Desktop, Cursor IDE, LM Studio lub własne aplikacje z bazą wiedzy żywieniowej i silnikiem semantycznym Diets Premium przez protokół MCP.
Krok 1: Wdrożenie i Zasada Działania MCP
Model Context Protocol pozwala modelom LLM bezpiecznie wywoływać narzędzia katalogowe Diets Premium z automatycznym dopasowywaniem parametrów.
Darmowy pakiet 10 000 tokenów/dzień na testowanie z zewnętrznymi integracjami. Zalogowane konta otrzymują bonus +10 000 tokenów/dzień.
W panelu konta wygenerujesz unikalny MCP Secret do konfiguracji w plikach konfiguracyjnych Twojego klienta MCP.
Serwer MCP przetwarza zapytania JSON-RPC 2.0 bezpośrednio przez silnik semantyczny Diets Premium z minimalnym opóźnieniem.
Krok 2: Konfiguracja Klientów MCP (Claude, Cursor, LM Studio, Python)
Skonfiguruj połączenie z serwerem MCP Diets Premium w Twoim środowisku programistycznym lub zewnętrznym asystencie.
npm i dietspremium-mcp or npx -y dietspremium-mcphttps://www.dietspremium.com/_mcp
{
"mcpServers": {
"dietspremium": {
"command": "npx",
"args": [
"-y",
"dietspremium-mcp",
"--auth",
"Bearer YOUR_MCP_SECRET"
]
}
}
}
{
"mcpServers": {
"dietspremium": {
"command": "npx",
"args": [
"-y",
"dietspremium-mcp",
"--auth",
"Bearer YOUR_MCP_SECRET"
]
}
}
}
curl -X POST "https://www.dietspremium.com/_mcp" \
-H "Authorization: Bearer YOUR_MCP_SECRET" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "food",
"arguments": {
"query": "grilled chicken breast",
"locale": "en",
"proteins_min": 25,
"ai": true
}
}
}'
Krok 3: Katalog Narzędzi MCP (Alfabetycznie)
Przegląd wszystkich 9 narzędzi MCP dostępnych dla zewnętrznych asystentów wraz ze schematami argumentów i przykładowymi wywołaniami JSON-RPC 2.0.
allergen
Allergen Risk & Intolerance Registry
Allergology & Safety ProtocolDietary allergens, cross-contamination risks, EU 1169/2011 allergen standards, and ingredient intolerance profiles.
| Argument | Type | Status | Default | Description |
|---|---|---|---|---|
| query | string | required | — | Allergen name or food derivative (e.g. "casein", "peanut", "gluten") |
| locale | string | optional | en | Language locale (en, pl, de, fr, nl, cz, at, ch, lu) |
| max_results | integer | optional | 10 | Maximum results to return |
| ai | boolean | optional | true | Semantic AI query matching |
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "allergen",
"arguments": {
"query": "lactose dairy whey",
"locale": "en",
"max_results": 5
}
}
}
article
Clinical Nutrition Guides & RAG Grounding
Publications & Knowledge BaseSearch 6,000+ peer-reviewed nutrition articles, clinical guidelines, and wellness guides for agent grounding and citations.
| Argument | Type | Status | Default | Description |
|---|---|---|---|---|
| query | string | required | — | Clinical inquiry or dietetics topic (e.g. "intermittent fasting autophagy") |
| locale | string | optional | en | Language locale |
| max_results | integer | optional | 10 | Max results to return |
| ai | boolean | optional | true | Semantic AI vector search |
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "article",
"arguments": {
"query": "ketogenic diet epilepsy neuroprotection",
"locale": "en",
"max_results": 3,
"ai": true
}
}
}
company
Dietetic Catering & Clinic Directory
B2B & DirectorySearch 173,000+ health clinics, dietetic catering providers, gyms, and wellness brands with geo-location metadata.
| Argument | Type | Status | Default | Description |
|---|---|---|---|---|
| query | string | required | — | Company name, specialty, or city (e.g. "low FODMAP catering Berlin") |
| locale | string | optional | en | Language locale |
| max_results | integer | optional | 10 | Number of results |
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "company",
"arguments": {
"query": "catering dietetyczny bezglutenowy Warszawa",
"locale": "pl",
"max_results": 5
}
}
}
exercise
Exercise Biomechanics & Calorie Burn
Fitness & BiomechanicsSearch 2,000+ workout exercises with targeted anatomical muscle groups, required equipment, and execution guidelines.
| Argument | Type | Status | Default | Description |
|---|---|---|---|---|
| query | string | required | — | Exercise name, equipment, or muscle group (e.g. "incline dumbbell press") |
| locale | string | optional | en | Language locale |
| max_results | integer | optional | 10 | Number of results |
| ai | boolean | optional | true | AI semantic search |
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "exercise",
"arguments": {
"query": "dumbbell Romanian deadlift hamstrings",
"locale": "en",
"max_results": 5,
"ai": true
}
}
}
food
Nutritional Database & Macro Search
Nutrition & MacrosSearch 1,900+ verified foods with complete macronutrients, calorie filters, micronutrients, and allergen exclusions.
| Argument | Type | Status | Default | Description |
|---|---|---|---|---|
| query | string | required | — | Food item (e.g. "grilled chicken breast", "avocado") |
| locale | string | optional | en | Language locale |
| proteins_min / proteins_max | integer | optional | 0 | Protein range in grams |
| kcal_min / kcal_max | integer | optional | 0 | Calorie range per 100g |
| allergen_exclude | string | optional | — | Comma-separated allergens to exclude |
| food_nutrient_include | string | optional | — | Required nutrient (e.g. "iron", "calcium") |
| ai | boolean | optional | true | AI semantic vector search |
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "food",
"arguments": {
"query": "chicken breast",
"locale": "en",
"proteins_min": 25,
"kcal_max": 250,
"allergen_exclude": "gluten,lactose",
"max_results": 5,
"ai": true
}
}
}
medication
Pharmacology & Food-Drug Interactions
Pharmacology & SafetyDatabase of 53,000+ active substances evaluating critical food-drug interactions, absorption interference, and nutrient depletion.
| Argument | Type | Status | Default | Description |
|---|---|---|---|---|
| query | string | required | — | Pharmaceutical compound or trade name (e.g. "Levothyroxine", "Metformin") |
| locale | string | optional | en | Language locale |
| max_results | integer | optional | 10 | Number of results |
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "medication",
"arguments": {
"query": "Levothyroxine calcium coffee interaction",
"locale": "en",
"max_results": 5
}
}
}
recipe
Culinary Recipes & Macro Balancing
Culinary & Meal PrepSearch 780+ chef-curated recipes with preparation steps, ingredients with gram weights, portion macronutrients, and difficulty levels.
| Argument | Type | Status | Default | Description |
|---|---|---|---|---|
| query | string | required | — | Search phrase (e.g. "quick keto salmon salad", "vegan high-protein pasta") |
| locale | string | optional | en | Language locale |
| max_results | integer | optional | 10 | Number of results |
| ai | boolean | optional | true | Semantic AI search |
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "recipe",
"arguments": {
"query": "quick keto Mediterranean avocado salmon salad",
"locale": "en",
"max_results": 5,
"ai": true
}
}
}
user
Specialists & Certified Dietitians
Specialists & TrainersSearch verified clinical dietitians, sports nutritionists, and certified personal trainers for client assignment.
| Argument | Type | Status | Default | Description |
|---|---|---|---|---|
| query | string | required | — | Specialist specialty, qualification, or city (e.g. "clinical dietitian diabetes") |
| locale | string | optional | en | Language locale |
| max_results | integer | optional | 10 | Number of results |
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "user",
"arguments": {
"query": "clinical sports dietitian keto specialist",
"locale": "en",
"max_results": 5
}
}
}
supplement
Supplements & Active Dosages
Nutrition & SupplementsDietary supplements catalog with active compound dosages, vitamin forms, and safety guidance.
| Argument | Type | Status | Default | Description |
|---|---|---|---|---|
| query | string | required | — | Supplement or vitamin name (e.g. "Vitamin D3 K2 MK7", "Creatine Monohydrate") |
| locale | string | optional | en | Language locale |
| max_results | integer | optional | 10 | Number of results |
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "supplement",
"arguments": {
"query": "Vitamin D3 K2 MK7 high absorption",
"locale": "en",
"max_results": 5
}
}
}
diet
Clinical & Lifestyle Diet Templates (158 Types)
Odżywianie & DietyOfficial nutritionist-designed diet templates with multi-currency pricing, day duration (3-28 days), macro splits, and allergen avoidance.
| Argument | Type | Status | Default | Description |
|---|---|---|---|---|
| query | string | optional | — | Search keyword or medical condition (e.g. "keto", "cukrzyca") |
| diet_template_type | string|int | optional | — | Diet template type ID, find code, or localized name (e.g. "keto", "hashimoto", 4) |
| days | integer | optional | — | Duration in days (e.g. 7, 14, 21, 28) |
| avoid_allergens | array | optional | [] | Allergen find codes to strictly exclude (e.g. ["milk", "nuts"]) |
| kcal_min / kcal_max | integer | optional | 0 | Daily calorie bounds |
| currency | string | optional | locale default | Currency for pricing (PLN, EUR, USD, ALL) |
| locale | string | optional | en | Language locale (en, pl, de, etc.) |
| max_results | integer | optional | 10 | Max items to return |
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "diet",
"arguments": {
"diet_template_type": "keto",
"days": 28,
"avoid_allergens": ["milk"],
"currency": "ALL",
"locale": "pl"
}
}
}
food-world
Global Food Products & Barcodes (Open Food Facts + USDA)
Global Products & BarcodesSearch 3.5M+ global branded products, EAN/UPC barcodes, brands, Nutri-Score, Eco-Score, and international ingredients.
| Argument | Type | Status | Default | Description |
|---|---|---|---|---|
| query | string | optional | — | Product name or keywords (e.g. "Coca-Cola Zero", "Nutella") |
| barcode | string | optional | — | EAN-13 or UPC barcode string (e.g. "5449000000996") |
| brand | string | optional | — | Manufacturer / brand name (e.g. "Barilla", "Nestle") |
| locale | string | optional | en | Target language locale |
| currency | string | optional | locale default | Currency for pricing (EUR, PLN, USD, ALL) |
| max_results | integer | optional | 10 | Maximum results |
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "food-world",
"arguments": {
"query": "barilla spaghetti",
"brand": "Barilla",
"locale": "pl",
"currency": "ALL"
}
}
}
knowledge
Clinical Knowledge & Dietetic Grounding
Publications & Knowledge BaseClinical nutrition guidelines, scientific dietary facts, medical definitions, and evidence-based grounding.
| Argument | Type | Status | Default | Description |
|---|---|---|---|---|
| query | string | required | — | Scientific inquiry or term (e.g. "insulin resistance", "glycemic index") |
| locale | string | optional | en | Language locale |
| max_results | integer | optional | 10 | Number of results |
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "knowledge",
"arguments": {
"query": "insulinooporność mechanizm",
"locale": "pl",
"max_results": 3
}
}
}
Pełna Specyfikacja Narzędzi MCP
Zobacz pełny interaktywny katalog narzędzi MCP z podglądem parametrów i dynamicznym generatorem zapytań.