dietly-mcp
MCP server for DietlyAPI — nutrition lookup over 4.7M+ foods, with a source link for every record.
Works in Claude Desktop, Claude Code, Cursor, and anything else that speaks MCP.
Tools
| Tool | Purpose |
|---|---|
search_foods(query, limit) |
Fuzzy search by name or brand. Searches localized names, so havermout finds the Dutch product. |
lookup_barcode(code) |
Exact lookup by EAN-13 / UPC-A. |
get_food(food_id) |
Re-fetch a food by its stable Dietly ID. |
Every response states values per 100 g, pre-computes the per-serving figure where the record has a serving size, and links the public food page.
Install
uvx dietly-mcp # once published
# or, from this repo:
pip install -e mcp-server
Configure
Claude Desktop — claude_desktop_config.json:
{
"mcpServers": {
"dietly": {
"command": "uvx",
"args": ["dietly-mcp"],
"env": { "DIETLY_API_KEY": "sk_your_key_here" }
}
}
}
Claude Code:
claude mcp add dietly --env DIETLY_API_KEY=sk_your_key_here -- uvx dietly-mcp
DIETLY_API_KEY is optional — the read endpoints are public. Without a key
you share an anonymous 30 req/min per-IP bucket and get a small fairness delay;
with one you get your plan's account-level limit and no delay. Free keys at
https://www.getdietly.com/account.
DIETLY_API_BASE can override the host for testing.
Notes
- All nutrient values are per 100 g, never per serving.
serving_size_gis descriptive and is null on roughly a third of records. - Data is Open Food Facts (ODbL) plus USDA FoodData Central. Applications displaying it must carry the Open Food Facts attribution.
- Rate limits surface as a clear error with the retry delay rather than a raw 429 body.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dietly_mcp-0.1.0.tar.gz.
File metadata
- Download URL: dietly_mcp-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
587104f7e4ec86a444aef1e211d6d4ded89a8377bf7fbc857cf795a571c07d8b
|
|
| MD5 |
7638ecb2af6e022d34214b64b2c27843
|
|
| BLAKE2b-256 |
672dd74f4c1d8ccbd75229e46e3c6a95fa1dc5e61767d77c4f7933165fb2ada9
|
File details
Details for the file dietly_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dietly_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e52cbfebe3ec59090851d83e12152322ed505e952f440f36ed2db3cbc1fa7420
|
|
| MD5 |
261e3115503c511f09267e077d3d87eb
|
|
| BLAKE2b-256 |
538a74914fe115f50a85b2f70f100d209080efaa16cf2deb554a7bc7b9f8aeda
|