Modelowy protokół kontekstowy (MCP) | Diets Premium Skip to main content
Model Context Protocol 2024.11 • Silnik Semantyczny JSON-RPC 2.0 npm: dietspremium-mcp

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.

MCP Tools
12 Tools
Semantic Search
Semantic Search
Supported Clients
Claude / Cursor
Standard
MCP 2024.11
1

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.

Pakiet Darmowy MCP

Darmowy pakiet 10 000 tokenów/dzień na testowanie z zewnętrznymi integracjami. Zalogowane konta otrzymują bonus +10 000 tokenów/dzień.

Uwierzytelnianie MCP Secret

W panelu konta wygenerujesz unikalny MCP Secret do konfiguracji w plikach konfiguracyjnych Twojego klienta MCP.

Połączenie Bezpośrednie i Szybkość

Serwer MCP przetwarza zapytania JSON-RPC 2.0 bezpośrednio przez silnik semantyczny Diets Premium z minimalnym opóźnieniem.

2

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
dietspremium-mcp
Official npm package: npm i dietspremium-mcp or npx -y dietspremium-mcp
View on npmjs.com
MCP Protocol Endpoint
https://www.dietspremium.com/_mcp
Authentication Format
Authorization: Bearer YOUR_MCP_SECRET
Content-Type: application/json
Protocol: JSON-RPC 2.0
MCP Client Configuration Files
Claude Desktop Config (claude_desktop_config.json) macOS / Windows / Linux
{
  "mcpServers": {
    "dietspremium": {
      "command": "npx",
      "args": [
        "-y",
        "dietspremium-mcp",
        "--auth",
        "Bearer YOUR_MCP_SECRET"
      ]
    }
  }
}
Cursor IDE (.cursor/mcp.json) Cursor Settings → Features → MCP
{
  "mcpServers": {
    "dietspremium": {
      "command": "npx",
      "args": [
        "-y",
        "dietspremium-mcp",
        "--auth",
        "Bearer YOUR_MCP_SECRET"
      ]
    }
  }
}
Raw JSON-RPC 2.0 HTTP POST Call Terminal / curl
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
      }
    }
  }'
3

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.

TOOL allergen

Allergen Risk & Intolerance Registry

Allergology & Safety Protocol

Dietary allergens, cross-contamination risks, EU 1169/2011 allergen standards, and ingredient intolerance profiles.

Tool Argument Schema
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
JSON-RPC 2.0 tools/call Payload
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "allergen",
    "arguments": {
  "query": "lactose dairy whey",
  "locale": "en",
  "max_results": 5
}
  }
}
TOOL article

Clinical Nutrition Guides & RAG Grounding

Publications & Knowledge Base

Search 6,000+ peer-reviewed nutrition articles, clinical guidelines, and wellness guides for agent grounding and citations.

Tool Argument Schema
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
JSON-RPC 2.0 tools/call Payload
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "article",
    "arguments": {
  "query": "ketogenic diet epilepsy neuroprotection",
  "locale": "en",
  "max_results": 3,
  "ai": true
}
  }
}
TOOL company

Dietetic Catering & Clinic Directory

B2B & Directory

Search 173,000+ health clinics, dietetic catering providers, gyms, and wellness brands with geo-location metadata.

Tool Argument Schema
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
JSON-RPC 2.0 tools/call Payload
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "company",
    "arguments": {
  "query": "catering dietetyczny bezglutenowy Warszawa",
  "locale": "pl",
  "max_results": 5
}
  }
}
TOOL exercise

Exercise Biomechanics & Calorie Burn

Fitness & Biomechanics

Search 2,000+ workout exercises with targeted anatomical muscle groups, required equipment, and execution guidelines.

Tool Argument Schema
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
JSON-RPC 2.0 tools/call Payload
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "exercise",
    "arguments": {
  "query": "dumbbell Romanian deadlift hamstrings",
  "locale": "en",
  "max_results": 5,
  "ai": true
}
  }
}
TOOL food

Nutritional Database & Macro Search

Nutrition & Macros

Search 1,900+ verified foods with complete macronutrients, calorie filters, micronutrients, and allergen exclusions.

Tool Argument Schema
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
JSON-RPC 2.0 tools/call Payload
{
  "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
}
  }
}
TOOL medication

Pharmacology & Food-Drug Interactions

Pharmacology & Safety

Database of 53,000+ active substances evaluating critical food-drug interactions, absorption interference, and nutrient depletion.

Tool Argument Schema
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
JSON-RPC 2.0 tools/call Payload
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "medication",
    "arguments": {
  "query": "Levothyroxine calcium coffee interaction",
  "locale": "en",
  "max_results": 5
}
  }
}
TOOL recipe

Culinary Recipes & Macro Balancing

Culinary & Meal Prep

Search 780+ chef-curated recipes with preparation steps, ingredients with gram weights, portion macronutrients, and difficulty levels.

Tool Argument Schema
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
JSON-RPC 2.0 tools/call Payload
{
  "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
}
  }
}
TOOL user

Specialists & Certified Dietitians

Specialists & Trainers

Search verified clinical dietitians, sports nutritionists, and certified personal trainers for client assignment.

Tool Argument Schema
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
JSON-RPC 2.0 tools/call Payload
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "user",
    "arguments": {
  "query": "clinical sports dietitian keto specialist",
  "locale": "en",
  "max_results": 5
}
  }
}
TOOL supplement

Supplements & Active Dosages

Nutrition & Supplements

Dietary supplements catalog with active compound dosages, vitamin forms, and safety guidance.

Tool Argument Schema
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
JSON-RPC 2.0 tools/call Payload
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "supplement",
    "arguments": {
  "query": "Vitamin D3 K2 MK7 high absorption",
  "locale": "en",
  "max_results": 5
}
  }
}
TOOL diet

Clinical & Lifestyle Diet Templates (158 Types)

Odżywianie & Diety

Official nutritionist-designed diet templates with multi-currency pricing, day duration (3-28 days), macro splits, and allergen avoidance.

Tool Argument Schema
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
JSON-RPC 2.0 tools/call Payload
{
  "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"
}
  }
}
TOOL food-world

Global Food Products & Barcodes (Open Food Facts + USDA)

Global Products & Barcodes

Search 3.5M+ global branded products, EAN/UPC barcodes, brands, Nutri-Score, Eco-Score, and international ingredients.

Tool Argument Schema
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
JSON-RPC 2.0 tools/call Payload
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "food-world",
    "arguments": {
  "query": "barilla spaghetti",
  "brand": "Barilla",
  "locale": "pl",
  "currency": "ALL"
}
  }
}
TOOL knowledge

Clinical Knowledge & Dietetic Grounding

Publications & Knowledge Base

Clinical nutrition guidelines, scientific dietary facts, medical definitions, and evidence-based grounding.

Tool Argument Schema
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
JSON-RPC 2.0 tools/call Payload
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "knowledge",
    "arguments": {
  "query": "insulinooporność mechanizm",
  "locale": "pl",
  "max_results": 3
}
  }
}
Interactive MCP Tools Explorer

Pełna Specyfikacja Narzędzi MCP

Zobacz pełny interaktywny katalog narzędzi MCP z podglądem parametrów i dynamicznym generatorem zapytań.

Udostępnij