Skip to main content
Glama
pipeworx-io

mcp-clinicaltrials

by pipeworx-io

ClinicalTrials.gov — Clinical Trial Registry

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 1394+ live data sources.

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: [...]})].

Related MCP server: ClinicalTrials.gov MCP Server

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-scholar or crossref.

  • 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 whyStopped in the full study record for context (safety signal vs. enrollment problems vs. funding).

Quick Start

Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):

{
  "mcpServers": {
    "clinicaltrials": {
      "url": "https://gateway.pipeworx.io/clinicaltrials/mcp"
    }
  }
}

Or connect to the full Pipeworx gateway for access to all 1394+ data sources:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://gateway.pipeworx.io/mcp"
    }
  }
}

Using with ask_pipeworx

Instead of calling tools directly, you can ask questions in plain English:

ask_pipeworx({ question: "your question about Clinicaltrials data" })

The gateway picks the right tool and fills the arguments automatically.

More

License

MIT

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Search ClinicalTrials.gov — find studies, retrieve results, match patients to eligible trials.

  • Search US grants + federal contracts (Grants.gov + SAM.gov) from any LLM.

  • AI-moderated research platform: create and launch studies and query interview results.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pipeworx-io/mcp-clinicaltrials'

If you have feedback or need assistance with the MCP directory API, please join our Discord server