Skip to main content
Glama
ToxMCP

Dietary Exposure MCP

by ToxMCP

Dietary Exposure MCP

Supply-chain security Scientific invariants License Release Status Python

Part of the ToxMCP suite

MCP server for food-mediated oral exposure screening, governed contaminant and pesticide review, and version-pinned dietary evidence handoffs. It turns commodity residue assumptions, governed food-consumption profiles, survey-derived distributions, and monitoring-review evidence into auditable dietary intake summaries, legal-enforcement signals, and PBPK-ready oral dose exports without taking over PBPK execution, final regulatory decisions, or proprietary adapter execution.

Architecture

flowchart LR
    subgraph Clients["Clients and Orchestrators"]
        Codex["Codex CLI / Desktop"]
        Scripts["Scripts / notebooks"]
        Other["Other MCP-aware agents"]
    end

    subgraph MCP["FastMCP Service"]
        Server["Tool and resource surface"]
        Contracts["Schemas, examples,\ncontract manifest"]
        Docs["Operator and\nboundary docs"]
    end

    subgraph Engine["Dietary Engine"]
        Runtime["Deterministic runtime"]
        Survey["Governed raw survey\nand distribution workflows"]
        Monitoring["Contaminant / metals\nmonitoring review"]
        Enforcement["MRL / tolerance\nand trade checks"]
    end

    subgraph Governance["Scientific Control Layer"]
        Defaults["Versioned defaults packs"]
        Provenance["Assumption ledger,\nquality flags, provenance"]
        Validation["Validation dossier,\nrelease metadata, dry runs"]
    end

    subgraph Downstream["Suite Handoffs"]
        PBPK["PBPK MCP oral handoff"]
        Review["Version-pinned review dossiers"]
        FollowUp["Scientific follow-up routing"]
    end

    Clients --> Server
    Server --> Contracts
    Server --> Docs
    Server --> Runtime
    Runtime --> Survey
    Runtime --> Monitoring
    Runtime --> Enforcement
    Runtime --> Defaults
    Runtime --> Provenance
    Server --> Validation
    Server --> PBPK
    Server --> Review
    Server --> FollowUp

The released server is broader than a simple dietary calculator, but the boundary is still strict:

  • Dietary Exposure MCP owns food-mediated oral intake, commodity residue inputs, consumption mappings, dietary survey distribution support, contaminant monitoring review, and oral PBPK handoffs.

  • Direct-Use Exposure MCP owns direct-use oral regimens, tablets, capsules, tinctures, label-driven serving semantics, and administered-use product scenarios.

  • PBPK MCP owns internal dose / toxicokinetic simulation after an external dose is already defined.

  • The server is deterministic-first, with a governed survey distribution lane and cohort-bootstrap probabilistic support; it is not a general-purpose probabilistic or final-decision engine.

For the suite-level routing view, see docs/suite_integration.md.

Related MCP server: Wellness Nourish

What's in v0.1.0

  • Deterministic point-estimate dietary intake scenarios with acute, chronic, and bounded summary support

  • Governed raw-survey ingestion plus survey distribution summaries and cohort-bootstrap probabilistic intake support

  • Maximum residue limit / tolerance enforcement records and cross-jurisdiction trade-risk screening

  • Governed source, method, legal-authority, reporting-profile, occurrence-evidence, and analytical-method-evidence registries

  • Contaminant and metals monitoring import checks, interpretation bundles, signoff packets, and version-pinned review dossiers

  • Scientific follow-up queue, review-board, owner handoff, remediation, signoff, and owner-signoff dossier workflows

  • PBPK-ready oral dose export and ToxClaw dietary evidence bundle support

  • Published JSON schemas, examples, defaults manifests, release metadata, validation dossiers, and packaged mirrors

Release snapshot

The release ships schemas, examples, governed defaults, source records, reference values, consumption profiles, legal and method registries, benchmark fixtures, and validation dossiers. Counts are intentionally not duplicated in this README: the machine-readable source of truth is release metadata, with readiness and validation evidence under docs/releases/.

Why this project exists

Dietary exposure is often still handled through opaque spreadsheets, partial MRL checks, and scattered reference-value notes. That makes internal review slow and makes regulatory challenge harder to answer.

Dietary Exposure MCP gives the suite a dedicated dietary layer that is:

  • deterministic-first for auditable Tier 1 and review workflows

  • governed through versioned defaults, source registries, quality flags, and explicit limitations

  • MCP-native with typed tools, resources, schemas, examples, and packaged validation assets

  • bounded so it complements direct-use exposure, PBPK, and review-orchestration services instead of claiming their responsibilities

Feature snapshot

Capability

Description

🧮 Dietary screening summaries

Builds deterministic point-estimate and bounded dietary intake summaries from residue profiles and governed consumption profiles.

📚 Survey distribution support

Parses governed raw survey records, summarizes empirical intake distributions, and runs a bounded bootstrap-style probabilistic support lane with explicit limitations.

⚖️ Enforcement and trade checks

Applies governed MRL / tolerance records and cross-jurisdiction trade screening before or alongside exposure interpretation.

🧪 Contaminant monitoring review

Checks monitoring imports, resolves reporting profiles, and exports interpretation, signoff, and review-dossier artifacts for contaminants and metals.

🧾 Provenance and quality flags

Preserves source references, assumption records, quality flags, and limitation notes as first-class outputs rather than hidden runtime state.

🧭 Readiness and follow-up routing

Publishes governance-oriented readiness plus machine-readable scientific follow-up queues, owner handoffs, remediation packets, signoff packets, and owner-signoff dossiers with explicit scientific-integrity gates.

🔗 PBPK and evidence handoffs

Exports PBPK-ready oral input bundles and structured dietary evidence payloads for downstream suite components.

✅ Release and validation surface

Ships schemas, examples, defaults manifests, release metadata, validation dossiers, dry-run summaries, and packaged parity assets.

Release verification

Current validation artifacts report:

  • draft_ready scientific-review dossier status

  • all generated validation suites passing

  • scientific-invariant, MCP-conformance, schema-drift, packaging, and security gates

  • population coverage for adolescent_11_17, adult_general, child_1_6, older_adult_65_plus, and pregnant_adult

See:

Quick start

Download the complete GitHub release, verify it, and install the wheel:

mkdir dietary-mcp-v0.1.0
cd dietary-mcp-v0.1.0
gh release download v0.1.0 --repo ToxMCP/dietary-exposure-mcp
shasum -a 256 -c SHA256SUMS
uv tool install ./dietary_mcp-0.1.0-py3-none-any.whl
dietary-mcp

The wheel reports package version 0.1.0 and is distributed through this GitHub release. It is not published to PyPI.

Or run from a source checkout:

uv sync --extra dev
uv run dietary-mcp-generate-artifacts
uv run dietary-mcp-validate
uv run dietary-mcp-write-release-reports
uv run pytest
uv run dietary-mcp

Artifact generation is an explicit release-maintenance step; MCP server startup validates and serves the packaged/runtime assets without regenerating checkout files. The HTTP entrypoint remains loopback-only and fail-closed unless an operator deliberately configures an authenticated gateway. v0.1.0 support is centered on local stdio operation.

Optional public-seed generation:

uv run --with xlrd dietary-mcp-generate-public-seeds --workbook /path/to/gems_food_cluster_diets.xls

Repository layout

  • src/dietary_mcp/: package code and MCP server surface

  • defaults/v1/: curated defaults, taxonomy, legal packs, recipes, reporting profiles, and source databases

  • validation/v1/: benchmark fixtures, reference cases, monitoring checks, and governed validation packs

  • docs/contracts/schemas/: generated JSON Schema files

  • schemas/examples/: generated example payloads

  • docs/releases/: generated release metadata, validation dossiers, and dry-run reports

  • docs/adr/: architecture decisions

  • tests/: runtime, defaults, validation, benchmark, and release regression coverage

Release status and intended use

IMPORTANT

Release status: v0.1.0 is the first stable GitHub software release of Dietary Exposure MCP. It is an early 0.x release intended for screening and governed evidence handoff only. All automated release gates pass. The OpenFoodTox 3.0 migration is complete, but its 2,417 bulk records remain review_required. The project owner has accepted the 16-record high-impact report for governed screening, but this is not independent signoff and that scientific promotion gate remains open. The stable version label describes the packaged software baseline; it is not scientific validation, a safety conclusion, regulatory approval, or regulator acceptance.

Use v0.1.0 to build reproducible screening calculations, inspect assumptions, and prepare governed evidence handoffs. Do not use an output by itself to make a legal, clinical, safety, regulatory, or market-access decision. Start with the release notes, limitations and intended use, and release readiness.

Current limitations

Area

What the limitation means

What users should do

Software release status

v0.1.0 is the first stable packaged software baseline and remains an early 0.x release. “Stable” does not mean scientifically validated, regulator-approved, or interface-frozen.

Pin the exact version, preserve its evidence packet, and review release notes before upgrading.

OpenFoodTox bulk review

The OpenFoodTox 3.0 migration is complete, but all 2,417 bulk records remain review_required; successful migration does not make them curated or approved.

Preserve the review state and require qualified review before controlled downstream use.

Scientific promotion

The project-owner attestation accepts the 16-record high-impact report for governed screening. It is not independent signoff, and the scientific promotion gate remains open.

Obtain positive independent signoff for the exact packet and canonical hash before claiming scientific promotion.

Source currency

Reference values, MRLs, legal limits, and guidance can change after the pinned snapshots shipped here.

Confirm decision-relevant values against the current primary authority source.

Decision scope

The server supports screening and evidence handoff; it does not issue legal, clinical, safety, or regulatory decisions.

Have a qualified assessor review inputs, applicability, uncertainty, and conclusions.

Model scope

The runtime is deterministic-first. Its survey, bootstrap, and uncertainty lanes are bounded support workflows, not a universal population model.

Use a validated higher-tier model when the assessment requires one.

External engines

The project does not execute or claim formal equivalence to proprietary PRIMo, DEEM, DietEx, PBPK, or submission-portal software.

Use the relevant external engine and retain its native evidence when equivalence matters.

Input quality

Results are only as sound as residue, consumption, body-weight, processing, mapping, and censoring assumptions supplied or selected.

Review provenance, quality flags, assumptions, and limitation notes in every output.

Deployment

v0.1.0 support is local stdio. Streamable HTTP is loopback-only and fail-closed unless an operator supplies an authenticated gateway.

Do not expose the server directly to an untrusted network.

Data rights

Some third-party source material has separate attribution or redistribution terms.

Review THIRD_PARTY_NOTICES.md before redistribution or commercial packaging.

Workflow states such as signed_off close a configured review packet; they do not confer regulator acceptance. The canonical explanation is Limitations and Intended Use, with route boundaries in the dietary boundary guide.

Contributing

  • CONTRIBUTING.md documents the governed change workflow for collaborators.

  • CODE_OF_CONDUCT.md sets expectations for respectful, scientifically honest collaboration.

  • Use the scientific-correction issue form for source, unit, population, or interpretation concerns.

  • docs/release_checklist.md is the pre-push and pre-release checklist.

Security

Report vulnerabilities through GitHub private vulnerability reporting. Do not put exploit details, credentials, unpublished dossiers, or local paths in a public issue. See SECURITY.md.

Citation

Citation metadata is available in CITATION.cff. Scientific records should also cite the original authority output identified by the record's provenance, because this software is not the primary scientific source.

License

Original project code and documentation are licensed under the Apache License 2.0. Third-party scientific data and vendored materials retain their own terms; see THIRD_PARTY_NOTICES.md.

A
license - permissive license
-
quality - not tested
A
maintenance

Maintenance

Maintainers
Response time
Release cycle
2Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ToxMCP/dietary-exposure-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server