The Japanese Standard Tables of Food Composition (2023) as a REST API and an MCP server.
2,541 foods x 353 nutrients โ the official government data, structured, and searchable in English.
Japanese food data, usable from anywhere โ and from any language.
Speaks the Model Context Protocol. Connect Claude, Cursor or any agent with uvx fooddb-jp โ the tools are described in English, so the agent knows when to reach for them.
All 2,541 foods answer to an English name โ common words (tofu, natto, soy sauce), romanized Japanese (konnyaku, ayu, kashiwamochi) and loanwords (artichoke). Japanese works too, of course.
Nutrients carry FAO/INFOODS identifiers (ENERC_KCAL, PROT-, VITC) โ the same ones USDA FoodData Central uses, so results line up with other databases.
86 ยตs per food lookup, 11,600 QPS. A read-only SQLite architecture โ nothing to warm up.
Pass a whole meal as food:grams pairs and get the totals. Photo โ the model names the foods โ the API adds them up.
The full 2023 edition published by Japan's MEXT: the main table plus amino acids, fatty acids and carbohydrates โ all 11 tables.
Start on the free tier. No key, no signup.
Install uv, paste the MCP config. That is the whole thing.
curl -LsSf https://astral.sh/uv/install.sh | sh
{
"fooddb-jp": {
"command": "uvx",
"args": ["fooddb-jp"],
"env": {
"FOODDB_API_KEY": "fdb_your_key_here"
}
}
}
# search for a food (English or Japanese)
curl "https://fooddb.navii.online/foods/search/tofu"
# nutrients for one food, per 100 g
curl "https://fooddb.navii.online/foods/1004"
# add up a meal (100 g oatmeal + a 60 g egg)
curl "https://fooddb.navii.online/calculate?foods=1004:100,12004:60"
# foods richest in vitamin C
curl "https://fooddb.navii.online/ranking/VITC?limit=5"
Frequently asked questions
The Standard Tables of Food Composition in Japan, 2023 edition, published by MEXT (the Ministry of Education, Culture, Sports, Science and Technology). The source is public at the MEXT food composition database and may be reused under Japan's standard terms of use (equivalent to CC BY 4.0).
Every endpoint, 100 requests a day, no API key. Commercial use is fine within that.
A monthly subscription through Stripe; credit and debit cards. Your API key is issued the moment the payment goes through. The daily counter resets at 00:00 UTC.
Yes. Cancel whenever; you keep access until the period you paid for ends. Use /billing/portal?email=your@email to reach the Stripe portal. The API key is deactivated when the subscription ends.
Retrieve it with the email you paid with: /billing/key?email=your@email. It is also shown on the payment page โ that page only, so copy it somewhere safe.
The Model Context Protocol โ the standard by which an agent (Claude, Cursor, and others) reaches an external tool. uvx fooddb-jp hands your agent the whole composition table.
Not at the moment. The service runs behind systemd and a Cloudflare Tunnel and stays up, but nothing is contractually promised. Get in touch if you need one.
This API is for looking up food composition data. Do not use it to make medical decisions. Accuracy follows the MEXT original, but conversion and structuring can introduce errors. Abuse of the API (flooding, reverse engineering) is not allowed. Fuller terms are being written.