Skip to main content

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_g is 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.

Metadata

Release files for dietly-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dietly-mcp 0.1.0
File Size Uploaded Provenance Actions
dietly_mcp-0.1.0.tar.gz 4.7 kB Without provenance Details for dietly_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dietly-mcp 0.1.0
File Interpreter ABI Platform Actions
dietly_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for dietly_mcp-0.1.0-py3-none-any.whl

Total release size: 10.4 kB

Release files / dietly_mcp-0.1.0.tar.gz

Download URL dietly_mcp-0.1.0.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
587104f7e4ec86a444aef1e211d6d4ded89a8377bf7fbc857cf795a571c07d8b
BLAKE2b-256 checksum
How to use checksums
672dd74f4c1d8ccbd75229e46e3c6a95fa1dc5e61767d77c4f7933165fb2ada9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / dietly_mcp-0.1.0-py3-none-any.whl

Download URL dietly_mcp-0.1.0-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e52cbfebe3ec59090851d83e12152322ed505e952f440f36ed2db3cbc1fa7420
BLAKE2b-256 checksum
How to use checksums
538a74914fe115f50a85b2f70f100d209080efaa16cf2deb554a7bc7b9f8aeda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for dietly-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page