@pipeworx/clinicaltrials
Connect: https://gateway.pipeworx.io/clinicaltrials/mcp · Install: one-click buttons
Tools: 5
The NIH-operated public registry of clinical trials worldwide. Every interventional study (and most observational ones) registered with the FDA must be filed here. ~470,000 studies covering Phase 1–4, conditions across the medical spectrum, and post-market safety surveillance. Free, no auth.
Why this matters for AI agents
If your agent is answering anything about drug development, clinical research, or medical product safety, ClinicalTrials.gov is the source of truth for what’s being studied. The data is structured: NCT IDs, phases, statuses, sponsors, conditions, interventions, primary/secondary outcomes, results.
Three core flows:
1. Search. “What’s being studied for Alzheimer’s?” → ct_search({query: "Alzheimer's disease"}) → studies matching, with NCT IDs, phase, status.
2. Specific study. “Tell me about this trial.” → ct_get_study({nct_id: "NCT04280705"}) → full structured record including protocol, results, references.
3. Sponsor / volume. “How many trials does Pfizer run?” → ct_sponsor_trials({sponsor: "Pfizer"}) → enumerated by phase and status.
For drug-level synthesis (combining trials with FDA approvals and adverse events), use pharma_drug_profile compound or [compare_entities({type: "drug", values: [...]})].
Citable URI
pipeworx://clinicaltrials/study/{nct_id}
NCT IDs are stable forever. Once issued, never reused. Embed in agent output as the canonical study reference.
Status filtering
When users ask about “active” trials, they usually mean one of two things:
- Currently recruiting:
status=Recruiting— open to new participants - In progress:
status=Recruiting OR Active, not recruiting OR Enrolling by invitation
The default ct_search returns all statuses; filter on status field of results for the meaning you want. Common confusion: “Completed” trials are studies that finished collecting data, not necessarily ones with published results.
Update cadence
- Sponsors are required to update studies at least once per year, more often for material changes (status transitions, completion).
- Primary results must be posted within 12 months of primary completion date.
- Pipeworx caches per-study responses with a 24-hour TTL. Most studies don’t change daily; this is fine for almost all use cases.
Common pitfalls
- Results vs. results. “Has results” means primary outcome data is posted on ClinicalTrials.gov. Many completed trials publish papers in peer-reviewed journals but never post here. For literature, cross-reference with
semantic-scholarorcrossref. - Phase confusion. A “Phase 2/3” trial counts as both phases. Filtering by phase requires careful boolean logic.
- Sponsor name normalization. “Pfizer Inc.” and “Pfizer” return different result counts in
ct_sponsor_trials. Try the more permissive form first. - Geographic scope. ClinicalTrials.gov is US-based but registers studies worldwide if any US site is involved. For purely-foreign studies, use the WHO ICTRP — not currently in Pipeworx.
- Recently terminated trials. “Terminated” means the study stopped before completion. Look at
whyStoppedin the full study record for context (safety signal vs. enrollment problems vs. funding).
Tools
- ct_search — Search clinical trials by keyword, condition, status (e.g., ‘Recruiting’), or phase (e.g., ‘Phase 2’). Returns NCT IDs, titles, status, enrollment, and sponsor info.
- ct_get_study — Get full trial details by NCT ID (e.g., ‘NCT04567890’). Returns protocol, eligibility criteria, primary outcomes, sponsor, locations, and results.
- ct_count_by_condition — Count trials for a condition (e.g., ‘diabetes’). Returns breakdown by status and phase for landscape analysis.
- ct_sponsor_trials — List all trials by sponsor or organization name. Returns status, phase, and conditions to map research pipelines.
- ct_recent_updates — Get recently posted or updated trials sorted by date. Returns NCT IDs, titles, status changes, and conditions.
Tools
-
ct_count_by_condition— Count trials for a condition (e.g., 'diabetes'). Returns breakdown by status and phase for landscape analysis. -
ct_get_study— Get full trial details by NCT ID (e.g., 'NCT04567890'). Returns protocol, eligibility criteria, primary outcomes, sponsor, locations, and results. -
ct_recent_updates— Get recently posted or updated trials sorted by date. Returns NCT IDs, titles, status changes, and conditions. -
ct_search— Search clinical trials by keyword, condition, status (e.g., 'Recruiting'), or phase (e.g., 'Phase 2'). Returns NCT IDs, titles, status, enrollment, and sponsor info. -
ct_sponsor_trials— List all trials by sponsor or organization name. Returns status, phase, and conditions to map research pipelines.