
Wraps the ClinicalTrials.gov API v2 so you can query trial data directly from Claude. No authentication required. Part of the Pipeworx gateway, which means you can either hit this specific endpoint or connect to their full gateway for 673+ data sources. They include an ask_pipeworx tool that lets you query in plain English instead of calling structured endpoints. Useful when you're researching medical trials, checking recruitment status, or pulling study details without leaving your editor. The API is free and publicly accessible, so you can start using it immediately through their hosted gateway at gateway.pipeworx.io.
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.
Part of Pipeworx — an MCP gateway connecting AI agents to 1476+ live data sources.
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.
4. Sponsor comparison. "Who has more recruiting Phase 3 obesity trials, Novo Nordisk or Eli Lilly?" → ct_compare_sponsors({sponsors: ["Novo Nordisk", "Eli Lilly and Company"], condition: "obesity", status: "RECRUITING", phase: "PHASE3"}) → lead-sponsor counts ranked under identical filters with sample NCT records.
For drug-level synthesis (combining trials with FDA approvals and adverse events), use pharma_drug_profile compound or [compare_entities({type: "drug", values: [...]})].
pipeworx://clinicaltrials/study/{nct_id}
NCT IDs are stable forever. Once issued, never reused. Embed in agent output as the canonical study reference.
When users ask about "active" trials, they usually mean one of two things:
status=Recruiting — open to new participantsstatus=Recruiting OR Active, not recruiting OR Enrolling by invitationThe 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.
semantic-scholar or crossref.ct_sponsor_trials. Try the more permissive form first.ct_compare_sponsors deliberately counts the registered lead-sponsor field so collaborator records do not inflate a head-to-head comparison. Registered corporate spellings and subsidiaries can still divide a company portfolio; inspect the returned lead-sponsor names.whyStopped in the full study record for context (safety signal vs. enrollment problems vs. funding).Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
{
"mcpServers": {
"clinicaltrials": {
"url": "https://gateway.pipeworx.io/clinicaltrials/mcp"
}
}
}
tools/list at https://gateway.pipeworx.io/clinicaltrials/mcp returns the tools in the table
above plus the shared Pipeworx meta-tools — ask_pipeworx,
discover_tools, search_within, remember/recall and the rest of the
gateway-wide set. So the tool count you see is larger than this table: a
single-pack endpoint currently lists roughly 30 shared tools alongside the
pack's own. The connection's initialize response states its exact scope, and
is the authoritative answer for a given day.
This is deliberate, not multiplexing by accident. The meta-tools are what let a
scoped connection answer a question this pack does not cover — via
ask_pipeworx, which routes across the whole catalog — without you adding a
second MCP server. There is currently no way to mount a pack endpoint without
them; if the extra schemas cost you more context than the routing is worth,
connect to the full gateway once rather than to several pack endpoints.
Or connect to the full Pipeworx gateway to get every pack's tools listed directly, instead of just this one's:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
Both URLs reach the same gateway and the same 1476+ data sources. The
only difference is which pack's tools are listed directly; ask_pipeworx
reaches all of them from either one.
Instead of calling tools directly, you can ask questions in plain English — this works on the pack endpoint above as well as on the full gateway:
ask_pipeworx({ question: "your question about Clinicaltrials data" })
The gateway picks the right tool and fills the arguments automatically.
MIT