EU MDR, IVDR & Pharma Serialization
MDR 22 Rules Classifier, EUDAMED Basic UDI-DI & FMD 2D DataMatrix Auditor
This vertical exposes a dedicated Model Context Protocol (MCP) Streamable HTTP endpoint featuring 4 mathematically deterministic compliance tools. Specifically engineered for autonomous AI agents, enterprise ERPs, and compliance pipelines to ensure exact statutory verification without probabilistic hallucination.
Quick AI Agent Setup (Cursor / Claude Desktop / n8n)
https://mdr-mcp.novapixel.it/{
"mcpServers": {
"lexgrid-pharma-medical-mdr": {
"url": "https://mdr-mcp.novapixel.it/"
}
}
}
{
"mcpServers": {
"lexgrid-pharma-medical-mdr": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mdr-mcp.novapixel.it/"]
}
}
}
01. Statutory Architecture & Mathematical Precision
European medical device and pharmaceutical compliance is anchored in Regulation (EU) 2017/745 (MDR), Regulation (EU) 2017/746 (IVDR), and Directive 2011/62/EU (Falsified Medicines Directive - FMD). Manufacturers and legal representatives must navigate Annex VIII's 22 classification rules, EUDAMED Basic UDI-DI Modulo-10 checksums, Article 61 Clinical Evaluation Reports (CER), statutory vigilance timelines (2, 10, 15 days), and GS1 2D DataMatrix packaging serialization. LexGrid provides pure deterministic execution with zero drift.
Unlike probabilistic LLM inference which may hallucinate tax percentages, distort statutory thresholds, or produce subtle rounding discrepancies, this engine isolates all math, validation logic, and regulatory constraints into pure, auditable TypeScript routines operating with exact precision (via decimal.js and official XSD/XML schemas).
02. Included Deterministic Tools
mdr_device_classification_engine
Reg. (UE) 2017/745 (MDR) Allegato VIII (Regole 1-22)Determines medical device risk class (Class I, Is, Im, Ir, IIa, IIb, III) under Regulation (EU) 2017/745 Annex VIII 22 rules and Notified Body routes.
Statutory Anchor: Reg. (UE) 2017/745 (MDR) Allegato VIII (Regole 1-22)
eudamed_udi_di_validator
Reg. (UE) 2017/745 Art. 27 & Reg. di Esecuzione (UE) 2021/1239Audits Basic UDI-DI and UDI-DI (GTIN-14) check digits and production identifiers (LOT, SN, EXP) under MDR Article 27 for EUDAMED registration.
Statutory Anchor: Reg. (UE) 2017/745 Art. 27 & Reg. di Esecuzione (UE) 2021/1239
mdr_clinical_evaluation_screener
Reg. (UE) 2017/745 Art. 61, Allegato XIV & MDCG 2020-5Scores clinical data sufficiency and literature search protocols under MDR Article 61 and Annex XIV, auditing Article 61(5) competitor access contracts.
Statutory Anchor: Reg. (UE) 2017/745 Art. 61, Allegato XIV & MDCG 2020-5
mdr_vigilance_reporting_timeline_calculator
Reg. (UE) 2017/745 (MDR) Artt. 87 & 89Calculates statutory notification deadlines under MDR Article 87 (public health threat: 2 days; death: 10 days; serious incident: 15 days) and formats MIR payloads.
Statutory Anchor: Reg. (UE) 2017/745 (MDR) Artt. 87 & 89
fmd_pharma_serialization_matrix_auditor
Direttiva 2011/62/UE & Reg. Delegato (UE) 2016/161Audits medicinal product safety features under Directive 2011/62/EU and Delegated Regulation (EU) 2016/161, checking GTIN-14, randomized serials, and anti-tampering seals.
Statutory Anchor: Direttiva 2011/62/UE & Reg. Delegato (UE) 2016/161
03. Enterprise & AI Agent Workflows
MDR Annex VIII 22 Rules Device Classification
Determines medical device risk class (Class I, Is, Im, Ir, IIa, IIb, III) based on invasiveness, duration, active function, and software decision support.
EUDAMED Basic UDI-DI & GTIN-14 Checksum Validator
Audits Basic UDI-DI model keys and verifies GS1 GTIN-14 modulo-10 check digits and production identifiers (LOT, SN, EXP) for EUDAMED registration.
MDR Article 87 Vigilance Reporting Deadlines Calculator
Calculates exact statutory notification deadlines for serious public health threats (2 days), deaths (10 days), and serious incidents (15 days) and formats initial MIR reports.
04. Live Payload Specification (Tool: mdr_device_classification_engine)
JSON-RPC / REST 200 OK
{
"dateOfIncidentAwarenessIso": "2025-06-15",
"incidentSeverityType": "SERIOUS_PUBLIC_HEALTH_THREAT",
"deviceName": "CardioVent Pulse"
}
{
"status": "success",
"deterministic_execution": true,
"suite": "pharma-medical-mdr",
"tool": "mdr_vigilance_reporting_timeline_calculator",
"data": {
"incidentSeverityType": "Serious Public Health Threat (Article 87(3))",
"statutoryDeadlineDays": 2,
"statutoryDeadlineDateIso": "2025-06-17",
"eudamedReportingFormType": "Manufacturer Incident Report (MIR) v7.2 XML Format"
}
}
05. Regulatory Framework & Statutory Basis
All algorithms operate under official formulas enacted by statutory regulations, without approximations or probabilistic inferences:
- ⚖️ Regolamento (UE) 2017/745 (MDR Dispositivi Medici Artt. 51-52, 61, 87 & All. VIII)
- ⚖️ Regolamento (UE) 2017/746 (IVDR Dispositivi Medico-Diagnostici in Vitro)
- ⚖️ Direttiva 2011/62/UE (FMD Falsified Medicines Directive per medicinali ad uso umano)
- ⚖️ Regolamento Delegato (UE) 2016/161 (Caratteristiche di sicurezza e codice a barre 2D DataMatrix)
- ⚖️ Regolamento di Esecuzione (UE) 2021/1239 (Banca Dati EUDAMED e Sistema UDI)
06. Frequently Asked Questions & Regulatory Details
What is a Basic UDI-DI in EUDAMED? ↓
The Basic UDI-DI is the main primary key in the EUDAMED database for a medical device model. It is referenced in technical documentation, certificates, and EU Declarations of Conformity, but does not appear on trade packaging barcodes.
What are the statutory deadlines for vigilance incident reporting under MDR? ↓
Under MDR Article 87, serious public health threats must be reported immediately and not later than 2 calendar days; incidents resulting in death or unanticipated serious health deterioration within 10 calendar days; and all other serious incidents within 15 calendar days.
What safety features are required on pharmaceutical packaging under the FMD? ↓
Directive 2011/62/EU and Delegated Regulation (EU) 2016/161 mandate an Anti-Tampering Device (ATD) and a 2D DataMatrix encoding a Product Code (GTIN-14), randomized Serial Number (<1:10,000 entropy), Batch Number, and Expiration Date.