Dietary Exposure MCP

Dietary Exposure MCP

A server for food-mediated oral exposure screening, governed contaminant and pesticide review, and version-pinned dietary evidence handoffs, converting commodity residues and consumption profiles into auditable intake summaries and PBPK-ready exports.

Category
Visit Server

README

Dietary Exposure MCP

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.

The current v0.1.0-rc1 candidate is prepared for transparent engineering and scientific review. It is not a final regulatory decision system or a claim of regulator acceptance. See the RC release notes.

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.

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 candidate 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 release 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

Install the wheel downloaded from the GitHub pre-release:

uv tool install ./dietary_mcp-0.1.0-py3-none-any.whl
dietary-mcp

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 pre-release 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. Public RC 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

Current limitations

  • Not a direct-use oral product engine
  • Not a PBPK execution engine
  • Not a proprietary PRIMo or DEEM execution engine
  • Not a general-purpose probabilistic survey engine outside the governed survey workflow
  • Not a final regulatory decision engine or a claim of formal equivalence to submission portals

Governed review states are explicit on purpose:

  • signed_off and signed_off_with_waivers mean the configured review workflow has been closed for the current packet; they do not mean automatic regulatory acceptance.
  • readiness assessments include scientific-integrity checks, but they still do not replace jurisdiction-specific expert review or grant submission acceptance by themselves.

The detailed limitation and boundary notes are in docs/applicability_limits.md and docs/dietary_boundary_guide.md.

Contributing

  • CONTRIBUTING.md documents the governed change workflow for collaborators.
  • 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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured