takakix2/fooddb-jp
๐ฏ๐ต๐ฑ Japanese Food Composition Database โ 2,541 foods ร 353 INFOODS-tagged nutrients as SQLite + REST API + MCP Server
Platform-specific configuration:
{
"mcpServers": {
"fooddb-jp": {
"command": "npx",
"args": [
"-y",
"fooddb-jp"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
The complete Japanese Standard Tables of Food Composition (8th ed. 2023) as a structured SQLite database + REST API + MCP Server.
Japan's Ministry of Education (MEXT) provides food composition data only as Excel files. This project converts 2,541 foods ร 353 nutrients (440,441 records) into an INFOODS Tagname-compliant SQLite database, queryable via API or AI agents (MCP).
> ๐ฏ๐ต ๆฅๆฌ่ช README ใฏใใกใ
# Install dependencies
uv sync
# Start REST API (Swagger UI at http://localhost:8800/docs)
uv run uvicorn api:app --port 8800
# Start MCP Server (stdio mode)
uv run python mcp_server.pyA public API is available โ no setup required:
# Search for chicken breast
curl "https://fooddb.navii.online/foods/search/chicken%20breast"
# Get vitamin C ranking (top 10)
curl "https://fooddb.navii.online/ranking/VITC?limit=10"
# Calculate nutrition (100g oatmeal + 200g milk)
curl "https://fooddb.navii.online/calculate?foods=1004:100,13003:200"Base URL: https://fooddb.navii.online Swagger UI: https://fooddb.navii.online/docs
| Plan | Rate Limit | Price | |------|-----------|-------| | Free | 100 req/day | $0 | | Developer | 10,000 req/day | $9.99/mo | | Pro | 100,000 req/day | $29.99/mo |
Free tier requires no API key. For higher limits, visit /billing/checkout.
| Metric | Value | |--------|-------| | Foods | 2,541 | | Nutrient tags | 353 (INFOODS-compliant) | | Nutrient records | 440,441 | | Tables | 11 (Main + Amino acids ร4 + Fatty acids ร3 + Carbohydrates ร3) | | JP/EN label coverage | 100% | | Search aliases | 31,504 | | Food name parsing | 27 categories + 44 subcategories | | SQLite size | ~65 MB |
| Feature | fooddb-jp | USDA FoodData Central | MEXT Official Site |
Loading reviews...