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.
README
Dietary Exposure MCP
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 MCPowns food-mediated oral intake, commodity residue inputs, consumption mappings, dietary survey distribution support, contaminant monitoring review, and oral PBPK handoffs.Direct-Use Exposure MCPowns direct-use oral regimens, tablets, capsules, tinctures, label-driven serving semantics, and administered-use product scenarios.PBPK MCPowns 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_readyrelease 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, andpregnant_adult
See:
- docs/releases/v0.1.0.release_metadata.json
- docs/releases/v0.1.0.validation_dossier.json
- docs/release_readiness.md
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 surfacedefaults/v1/: curated defaults, taxonomy, legal packs, recipes, reporting profiles, and source databasesvalidation/v1/: benchmark fixtures, reference cases, monitoring checks, and governed validation packsdocs/contracts/schemas/: generated JSON Schema filesschemas/examples/: generated example payloadsdocs/releases/: generated release metadata, validation dossiers, and dry-run reportsdocs/adr/: architecture decisionstests/: 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_offandsigned_off_with_waiversmean 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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。