Data, API and MCP
Everything on Matdata is open. Download the whole database, fetch single foods through the API or connect your AI assistant. Version 2026-07-01, updated weekly.
Download
Values per 100 g edible part. Carbohydrate means available carbohydrate (excluding fibre).
API
Static JSON files over HTTPS. No key, no sign-up, CORS enabled. Base URL: https://matdata.se
| Path | Contents |
|---|---|
/api/v1/foods.json | All foods in summary (name, category, energy, protein, fat, carbohydrate, fibre). |
/api/v1/foods/{id}.json | One food with all nutrient values, portions, density, international comparison, ingredients and similar foods. |
/api/v1/nutrients.json | Nutrients: code, unit, group and names. |
/api/v1/categories.json | Categories and groups. |
/api/v1/references.json | Reference values (NNR 2023 and EU) per group. |
/api/v1/changes.json | Changes between database versions. |
curl https://matdata.se/api/v1/foods/553.json MCP for AI assistants
Matdata runs an MCP server (Model Context Protocol) so Claude, ChatGPT and other assistants can look up nutrient values straight from the database instead of guessing.
- URL
https://matdata.se/mcp- Transport
- Streamable HTTP
- Authentication
- None
Claude Code:
claude mcp add --transport http matdata https://matdata.se/mcp In the Claude app: Settings → Connectors → Add custom connector, and paste the URL.
search_foods– Search foods in Swedish or English.get_food– All nutrient values for a food, per 100 g or any amount.top_foods– Foods highest or lowest in a nutrient.compare_foods– Compare several foods side by side.get_reference_values– Recommended intake under NNR 2023 for a group.
Licence and attribution
The nutrient values come from the Swedish Food Agency food composition database and may be used freely under CC BY 4.0. Credit the source, for example:
Livsmedelsverket (2026). Livsmedelsdatabasen, version 2026-07-01. Retrieved via Matdata.se, https://matdata.se/ BibTeX
@misc{livsmedelsverket_20260701,
author = {{Livsmedelsverket}},
title = {Livsmedelsdatabasen, version 2026-07-01},
year = {2026},
howpublished = {\url{https://matdata.se/}},
note = {CC BY 4.0}
} Portion weights and density come from USDA FoodData Central (public domain). International comparisons from USDA and Ciqual (ANSES, Etalab licence).