Matdata – Swedish food composition data

Nutrition facts for 2,600 Swedish foods (Swedish Food Agency), NNR 2023 intakes, climate impact.

我该使用它吗

质量与安全性

A
描述质量
76%
模式完整度
98%
命名质量
92%
投毒风险
100%
权限匹配度
100%
协议合规性
100%

发现(2)

  • LOWTool 'top_foods' description lacks action verb在 top_foods 中
  • LOWTool 'compare_foods' description lacks action verb在 compare_foods 中

基于对工具定义和协议合规性的自动分析。

上下文开销

~1,334token 数(工具定义)
~1.7 KB典型响应大小
对注意力有中等影响(占 128k 上下文窗口的 1.04%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "matdata": {
      "url": "https://matdata.se/mcp"
    }
  }
}

远程端点

https://matdata.se/mcpstreamable-http

它能做什么

工具清单

工具(5)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟢search_foods(query, lang, limit)

Search the Swedish Food Agency food composition database (2,600 foods) by name in Swedish or English. Returns id, name, energy (kcal per 100 g) and URL. Use the id with get_food.

输入模式

{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "description": "Food name or part of it, in Swedish or English, e.g. 'havregryn', 'rolled oats' or 'kycklingfilé'. Several words narrow the search ('ris kokt')."
    },
    "lang": {
      "type": "string",
      "enum": [
        "sv",
        "en"
      ],
      "description": "Language of names in the result (default: sv)"
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 25,
      "description": "Maximum number of results, 1–25 (default 10). Best matches come first."
    }
  },
  "required": [
    "query"
  ]
}
🟢get_food(id, grams)

All nutrient values for one food (energy, macronutrients, fatty acids, vitamins, minerals), per 100 g or scaled to a given amount in grams. Includes portion sizes, density, category, diet, climate impact (kg CO2e, AGRIBALYSE 3.2, for about 610 foods) and source attribution.

输入模式

{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "minimum": 1,
      "description": "Food id (Swedish Food Agency number) as returned by search_foods, top_foods or compare_foods, e.g. 553 for banana."
    },
    "grams": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Amount of the food in grams. All values, including climate impact, are scaled to this amount. Default 100 (values per 100 g). Use the portions in the result to convert pieces or decilitres to grams."
    }
  },
  "required": [
    "id"
  ]
}
🟢top_foods(nutrient, order, per, diet, everyday, ...)

Foods with the most (or least) of a nutrient per 100 g or per 100 kcal. Nutrient codes: ENERC_KCAL, PROT, FAT, FASAT, FAMS, FAPU, N3, CHO, SUGAR, SUGAD, SUGFR, FIBT, WHOLET, NACL, NA, CHORL, VITA, CARTB, VITD, VITE, THIA, RIBF, NIAEQ, VITB6, FOL, VITB12, VITC, CA, P, K, MG, FE, ZN, SE, ID.

输入模式

{
  "type": "object",
  "properties": {
    "nutrient": {
      "type": "string",
      "description": "Nutrient code from the list in the tool description, e.g. PROT (protein), FIBT (fibre), FE (iron), VITD (vitamin D), ENERC_KCAL (energy)."
    },
    "order": {
      "type": "string",
      "enum": [
        "desc",
        "asc"
      ],
      "description": "Sort order: desc lists the foods with the most first (default), asc the least first."
    },
    "per": {
      "type": "string",
      "enum": [
        "100g",
        "100kcal"
      ],
      "description": "Basis for the ranking: 100g compares per 100 g of food (default), 100kcal per 100 kcal, which favours nutrient-dense foods."
    },
    "diet": {
      "type": "string",
      "enum": [
        "vegan",
        "vegetarian",
        "pescetarian"
      ],
      "description": "Only foods that fit this diet. Omit for all foods."
    },
    "everyday": {
      "type": "boolean",
      "description": "true (default) leaves out spices, supplements, baby food, stock, sweeteners and similar that are rarely eaten in 100 g amounts; false includes everything."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50,
      "description": "Maximum number of foods, 1–50 (default 15)."
    },
    "lang": {
      "type": "string",
      "enum": [
        "sv",
        "en"
      ],
      "description": "Language of food names and URLs in the result (default: sv)."
    }
  },
  "required": [
    "nutrient"
  ]
}
🟢compare_foods(ids, lang)

Compare 2–6 foods side by side on the main nutrients per 100 g.

输入模式

{
  "type": "object",
  "properties": {
    "ids": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 1
      },
      "minItems": 2,
      "maxItems": 6,
      "description": "Two to six food ids as returned by search_foods, e.g. [951, 884] for minced beef and lentils."
    },
    "lang": {
      "type": "string",
      "enum": [
        "sv",
        "en"
      ],
      "description": "Language of food names and URLs in the result (default: sv)."
    }
  },
  "required": [
    "ids"
  ]
}
🟢get_reference_values(group)

Recommended daily intakes from the Nordic Nutrition Recommendations 2023 for a population group, or EU labelling reference intakes. Groups: c1-3, c4-6, c7-10, f11-14, m11-14, f15-17, m15-17, f18-24, f25-50, f51-70, f71+, m18-24, m25-50, m51-70, m71+, preg-t1, preg-t2, preg-t3, lact, eu.

输入模式

{
  "type": "object",
  "properties": {
    "group": {
      "type": "string",
      "enum": [
        "c1-3",
        "c4-6",
        "c7-10",
        "f11-14",
        "m11-14",
        "f15-17",
        "m15-17",
        "f18-24",
        "f25-50",
        "f51-70",
        "f71+",
        "m18-24",
        "m25-50",
        "m51-70",
        "m71+",
        "preg-t1",
        "preg-t2",
        "preg-t3",
        "lact",
        "eu"
      ],
      "description": "Population group: c = children (age span), f = women, m = men (age span), preg-t1…t3 = pregnancy by trimester, lact = breastfeeding, eu = EU labelling reference intakes. Default f25-50."
    }
  }
}

社区

评价此服务器

证据

最近观测

已验证未记录版本5 个工具