Skip to content

DDI-Checker: a prototype that lets AI assistants look up drug interactions

An experimental setup through which an AI assistant looks up, in public US data, whether two drugs may affect each other. It only shows the sources and judges nothing.

2026

Experimental prototype, not for clinical use, not for patient care.

Intended purpose: Research and demonstration prototype for studying medication-information workflows over MCP (Model Context Protocol). Not intended for use on real persons’ medications; not provided to third parties; not intended for any medical purpose within the meaning of the MDR (Medical Device Regulation, EU 2017/745). The server is not publicly accessible; requests require credentials.

An interaction (a drug-drug interaction, or DDI) means two drugs affect each other. For a pair of active ingredients, the tool checks whether official sources name such an interaction and which side effects have been co-reported for that pair. Ask about a pair such as ibuprofen and citalopram, and the server looks for whether the US label of one drug mentions the other or its drug class.

MCP stands for Model Context Protocol, a kind of power socket through which an AI assistant plugs in outside tools and data sources. Here, the lookup function is what plugs into that socket.

Throughout, the server follows a cite-only principle: it works like a good librarian. It shows you the passage in the source but does not tell you what to do.

What the server does

Three tools work together:

  • Label check (check_pair, openFDA Drug Label): Does a drug’s official US label name the other ingredient in an interaction or warning section? It checks both directions, and matches both by name and by drug class — the pharmacological group a substance belongs to, such as NSAIDs (non-steroidal anti-inflammatory drugs) or SSRIs (selective serotonin reuptake inhibitors).
  • Co-reported side effects (coreported_adverse_events, FAERS): Which adverse events have been reported together for exactly this pair of ingredients?
  • Multiple ingredients, pairwise (screen_regimen): For a list of ingredients, the server looks up each occurring pair on its own (with n ingredients, n·(n−1)/2 pairs, so with 5 ingredients already 10) — a pairwise reference lookup over the list, not an overall assessment of the ingredient list. Interactions are a multifactorial phenomenon; the pairwise check is a tractable approximation, not a complete picture.

The sources

openFDA and FAERS are public-domain US government data; RxNorm/RxClass are queried via the open RxNav API:

  • openFDA — the open query interface (API, Application Programming Interface: a machine-readable interface through which a program fetches data) of the FDA, the US Food and Drug Administration. It provides the drug labels.
  • FAERS (FDA Adverse Event Reporting System) — a database of spontaneous reports: voluntarily submitted suspected side effects, e.g. from health professionals, patients, or manufacturers. It shows what was reported — not what is proven.
  • RxNorm and RxClass — naming and classification services from the US National Library of Medicine (NLM). They translate any input or brand name into the one standard US ingredient name (for example paracetamol → acetaminophen) and also supply the drug class. Without this normalization the lookup would already fail on differing spellings and names.

Terms of service: “It is not the intention of NLM to provide specific medical advice, but rather to provide users with information to better understand their health and their medications. NLM urges you to consult with a qualified physician for advice about medications” — quoted verbatim from the RxNav/RxClass Terms of Service (NLM = U.S. National Library of Medicine). In short: NLM gives no medical advice and recommends consulting a physician about medications. FDA and NLM have neither reviewed nor endorsed this tool.

Signal or noise: the PRR

Rather than just passing the FAERS reports through, the server computes the PRR (Proportional Reporting Ratio). The PRR is a standard disproportionality measure in pharmacovigilance for signal detection from spontaneous reports — introduced by Evans, Waller & Davis (2001) and commonly used for FAERS analyses. Put simply: does a given side effect occur far more often for this pair than would be expected across all reports? A numerical picture: if, across all reports, 1 in 100 mentions headache, but 5 in 100 for this pair, that stands out. The PRR measures exactly this ratio. If it is clearly raised, this is called a disproportionality signal, a statistical flag that helps tell what stands out from general reporting noise. Crucially, such a signal is a hint, not proof. Being reported together is not the same as a causal link.

Cite, don’t judge

What cite-only means in practice: no severity rating, no therapy recommendation. The computed PRR, too, is a statistical signal, not a severity grade. The result found=false therefore explicitly does not mean “no interaction”, only: “the sources checked do not name one”.

In short: whether software is a medical device depends not on the technology but on what it is offered for. More precisely, it is decided under the MDR (Medical Device Regulation, EU 2017/745) not by the technology but by its intended purpose: the purpose follows from the labelling, the instructions for use and any advertising and sales information (MDR Art. 2 no. 12). Software that matches patient-related data against drug data to detect interactions can be a medical device — as the CJEU held for an interaction checker (judgment C-329/16, “Snitem and Philips France”). This prototype is therefore expressly not intended for real medications. The MDCG 2019-11 guidance provides orientation for the boundary.

Limitations

Methodological and source-related:

  • openFDA provides US prescribing information, FAERS US spontaneous reports. Active ingredients approved in Germany/Europe but not marketed in the US have no label, even when the name resolves. The German prescribing information may also name other interactions and warnings.
  • FAERS is spontaneous reporting, not causality. The PRR filters generic noise but does not separate an interaction signal from the co-reporting already expected from each drug’s individual profile.
  • It checks pair by pair; additive effects (e.g. serotonergic load, QT prolongation, anticholinergic burden) are not pairwise-decomposable and remain outside the model. If three drugs each affect the heart rhythm a little (QT prolongation), it may only become dangerous in combination. A pair-by-pair check does not see that.

The server provides research citations. The findings do not replace professional assessment, and every response from the server carries exactly this note.

Technical setup (for the technically curious)

Data flow of the ddi-checker MCP server: a request from the MCP client runs through RxNorm normalisation, then splits into Branch A (openFDA label scan) and Branch B (FAERS signal with PRR); each tool returns a cite-only JSON dict to the client.

This is how a request flows: the AI client invokes one of the three tools — in the vocabulary of AI systems, an MCP tool call (also tool use). It passes only the raw ingredient names, as they arrive. The first step inside the tool is RxNorm normalisation — deliberately server-side, so the client need not know US ingredient names. Only then come the label check and the FAERS signal. Back to the client goes the result as a structured data record, containing only source findings.

The server follows the MCP standard and returns its results as JSON — a simple, machine-readable text format. The connection to the AI client runs over streamable-http (the transport between client and server), built with the FastMCP component. It runs on own infrastructure (Hetzner, Coolify) as a working prototype for demonstration and research.