Skip to main content
Glama
TrialWatch MCP Server

TrialWatch MCP Server

Official

TrialWatch

A free, self-hosted watcher for clinical-trial changes.

You give it a list of drugs. Once a day it checks the official registries, keeps its own snapshots, and tells you what changed since the last run: a trial's status flipped, results were posted, a phase or primary completion date moved, an endpoint was rewritten, enrollment jumped — or an FDA label record was revised.

Why this exists

ClinicalTrials.gov will tell you that a record changed — each study has a "last update posted" date. It will not tell you what changed: there is no endpoint that lists a study's earlier versions or shows the previous value of a field. The only way to know what changed is to have kept yesterday's state yourself and compare. That is all TrialWatch does: it keeps the state, so the diff is possible.

Related MCP server: OpenFDA FastMCP Server

Quick start

pip install -r requirements.txt   # the only dependency is `requests`
python -m trialwatch              # first run: records the baseline
python -m trialwatch              # later runs: prints what changed
  • First run polls your watchlist and saves a baseline snapshot. There is nothing to compare against yet, so it reports "baseline recorded".

  • Every later run polls again, diffs against the previous snapshot, prints the change report to your terminal, and saves the full report as a dated markdown file in data/reports/.

Run it once a day (cron, Task Scheduler, or by hand). Change detection only ever compares your two most recent snapshots, so a daily rhythm gives you daily changes.

Configure your watchlist

Edit watchlist.json. It ships with 10 well-known drugs as a sample. Each entry is one drug, by its generic (INN) name — that is what the registries index by:

{ "drug": "Semaglutide", "note": "GLP-1 — Ozempic / Wegovy (Novo Nordisk)" }

The note field is optional and only for your own reference. Lines starting with // in the file are comments and are ignored.

How it works

  1. Poll — for each drug, fetch up to 100 trials from the ClinicalTrials.gov API v2 and the latest label record from openFDA. Both are official and keyless; no account or API key is needed.

  2. Snapshot — the extracted fields (status, phase, dates, enrollment, primary outcomes, has-results flag, sponsor, label id + effective date) are saved as JSON in data/snapshots/. Your data never leaves your machine.

  3. Diff — the new snapshot is compared field-by-field with the previous one using fixed, deterministic rules (no AI, no guessing).

  4. Report — changes are printed to the terminal and saved as markdown, grouped by severity.

Severity rules

Severity

What triggers it

critical

Trial status change · results newly posted · FDA label record changed

notable

Phase change · primary completion date change · primary endpoint change · enrollment change ≥ 10%

minor

Enrollment change < 10% · trial appeared / disappeared from the captured results

Appeared/disappeared trials are classed as minor on purpose: at the capture boundary they are usually registry indexing churn, not real-world events.

Limits (read this before relying on it)

  • 100-trial cap per drug. Only the first page of results is captured. Popular drugs match several hundred trials; the rest are not watched.

  • FDA label detection covers marketed drugs only. Investigational drugs with no approved product have no openFDA label record, so there is no label to diff — this is expected, not an error.

  • A change is detected on the run after it happens, whenever you run the tool. It is a daily watcher, not a real-time alert system.

  • Your history is your snapshots. Delete data/snapshots/ and the tool starts over from a fresh baseline.

Hosted feed and paid tier

A hosted version already runs: the free Yesterday's Changes feed covers 50 high-profile drugs and is updated daily — https://trialwatch-api.github.io/trialwatch/ — and this same data is available to AI agents through the TrialWatch MCP server, listed on the official MCP Registry as io.github.trialwatch-api/trialwatch.

A paid tier is planned on top of it:

  • Full feed + API access (all changes, updated daily)

  • Custom watchlists (your drugs / your competitors' drugs)

  • $49/mo (feed) · $89/mo (feed + API)

Register interest: open an issue titled "Paid interest" and tell us which drugs or therapeutic areas you track. The first 3 subscribers get pilot pricing locked for 6 months.

This self-hosted tool will remain free and open source (MIT).

License

MIT — see LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers