xpay tools logo
  • Tools
  • Collections
  • Skills
  • Docs
  • xpay.sh
  1. Home
  2. ›
  3. Providers
  4. ›
  5. Clinical Trials

Clinical Trials logo

Clinical Trials

12 tools

$0.01/call

Search and analyze clinical trials from ClinicalTrials.gov

​
​
How it works ↓
Search Trials By Condition
search_trials_by_condition

Search clinical trials by medical condition(s). This tool allows you to search for clinical trials based on a list of medical conditions. Input: - `conditions`: A list of strings, where each string is a medical condition to search for. The search will find trials related to any of the specified conditions. Example: `['cancer', 'diabetes']` - `max_studies`: The maximum number of studies to return. Defaults to 50. - `fields`: A list of specific fields to return in the results. If not provided, returns SEARCH_TOOL_DEFAULTS (9 essential fields: NCTId, BriefTitle, Acronym, Condition, Phase, InterventionName, LeadSponsorName, OverallStatus, HasResults).


flat

$0.01/call

Search Trials By Intervention
search_trials_by_intervention

Search clinical trials by intervention/treatment. This tool allows you to search for clinical trials based on a list of interventions or treatments. Input: - `interventions`: A list of strings, where each string is an intervention or treatment to search for. The search will find trials related to any of the specified interventions. Example: `['aspirin', 'chemotherapy']` - `max_studies`: The maximum number of studies to return. Defaults to 50. - `fields`: A list of specific fields to return in the results. If not provided, returns SEARCH_TOOL_DEFAULTS (9 essential fields: NCTId, BriefTitle, Acronym, Condition, Phase, InterventionName, LeadSponsorName, OverallStatus, HasResults).


flat

$0.01/call

Search Trials By Sponsor
search_trials_by_sponsor

Search clinical trials by sponsor/organization. This tool allows you to search for clinical trials based on a list of sponsor organizations. Input: - `sponsors`: A list of strings, where each string is a sponsor organization to search for. The search will find trials sponsored by any of the specified organizations. Example: `['National Cancer Institute', 'Pfizer']` - `max_studies`: The maximum number of studies to return. Defaults to 50. - `fields`: A list of specific fields to return in the results. If not provided, returns SEARCH_TOOL_DEFAULTS (9 essential fields: NCTId, BriefTitle, Acronym, Condition, Phase, InterventionName, LeadSponsorName, OverallStatus, HasResults).


flat

$0.01/call

Search Trials By Acronym
search_trials_by_acronym

Search clinical trials by study acronym. Uses the Acronym field (protocolSection.identificationModule.acronym) to find trials by their public short name. Example: 'TETON'. The API search is seeded with the provided acronyms to narrow results, then results are filtered locally to ensure the acronym field matches the requested value(s). Input: - `acronyms`: One or more acronyms to search for (e.g., ['TETON']). - `max_studies`: Maximum number of studies to request from the API. - `exact_match`: When true (default), matches acronyms exactly (case-insensitive). When false, matches if any provided acronym is contained within the study acronym (case-insensitive partial match). - `fields`: A list of specific fields to return in the results. If not provided, returns ACRONYM_SEARCH_DEFAULTS (8 fields optimized for acronym discovery: NCTId, BriefTitle, Acronym, Condition, InterventionName, Phase, LeadSponsorName, HasResults).


flat

$0.01/call

Search Trials By Nct Ids
search_trials_by_nct_ids

Retrieve specific clinical trials by NCT ID(s). This tool allows you to retrieve the details of specific clinical trials by providing their NCT IDs. Input: - `nct_ids`: A list of strings, where each string is an NCT ID to retrieve. Example: `['NCT04280705', 'NCT04280718']` - `fields`: A list of specific fields to return in the results. If not provided, returns SEARCH_TOOL_DEFAULTS (9 essential fields: NCTId, BriefTitle, Acronym, Condition, Phase, InterventionName, LeadSponsorName, OverallStatus, HasResults).


flat

$0.01/call

Search Trials Combined
search_trials_combined

Search clinical trials using multiple criteria. This tool allows you to perform a combined search using multiple criteria such as conditions, interventions, sponsors, and general terms. Input: - `conditions`: A list of medical conditions to search for. - `interventions`: A list of interventions or treatments to search for. - `sponsors`: A list of sponsor organizations to search for. - `terms`: A list of general search terms. - `nct_ids`: A list of specific NCT IDs to include in the search. - `max_studies`: The maximum number of studies to return. Defaults to 50. - `fields`: A list of specific fields to return in the results. If not provided, returns SEARCH_TOOL_DEFAULTS (9 essential fields: NCTId, BriefTitle, Acronym, Condition, Phase, InterventionName, LeadSponsorName, OverallStatus, HasResults).


flat

$0.01/call

Get Trial Details
get_trial_details

Get comprehensive details for a single clinical trial. This tool retrieves detailed information for a single clinical trial given its NCT ID. Input: - `nct_id`: The NCT ID of the trial to retrieve. Example: `'NCT04280705'` - `fields`: A list of specific fields to return. If not provided, returns DETAIL_TOOL_DEFAULTS (25 comprehensive fields covering: NCTId, BriefTitle, OfficialTitle, Acronym, Condition, Keyword, Phase, OverallStatus, InterventionType, InterventionName, InterventionDescription, ArmGroupLabel, ArmGroupType, ArmGroupDescription, EligibilityCriteria, MinimumAge, MaximumAge, Sex, PrimaryOutcomeMeasure, SecondaryOutcomeMeasure, BriefSummary, LocationFacility, LocationCountry, LeadSponsorName, CollaboratorName, HasResults).


flat

$0.01/call

Get Trial Details Batched
get_trial_details_batched

Retrieve detailed clinical trial records in batches to reduce payload during discovery. Accepts a list of NCT IDs and fetches details in batches (default 10). Preserves the order of input NCT IDs in the returned list. Use this after search tools which return a minimal field set. Input: - `nct_ids`: List of NCT IDs to retrieve in batches. - `fields`: Specific fields to return. If not provided, returns DETAIL_TOOL_DEFAULTS (25 comprehensive fields covering: NCTId, BriefTitle, OfficialTitle, Acronym, Condition, Keyword, Phase, OverallStatus, InterventionType, InterventionName, InterventionDescription, ArmGroupLabel, ArmGroupType, ArmGroupDescription, EligibilityCriteria, MinimumAge, MaximumAge, Sex, PrimaryOutcomeMeasure, SecondaryOutcomeMeasure, BriefSummary, LocationFacility, LocationCountry, LeadSponsorName, CollaboratorName, HasResults). - `batch_size`: Number of trials to fetch per API call (default 10).


flat

$0.01/call

Analyze Trial Phases
analyze_trial_phases

Analyze the distribution of trial phases for given search criteria. This tool analyzes the distribution of clinical trial phases (e.g., Phase 1, Phase 2, Phase 3) for a given set of search criteria. Input: - `conditions`: A list of medical conditions to filter the analysis. - `interventions`: A list of interventions to filter the analysis. - `sponsors`: A list of sponsors to filter the analysis. - `max_studies`: The maximum number of studies to include in the analysis. Defaults to 1000.


flat

$0.01/call

Get Field Statistics
get_field_statistics

Get statistical information about field values. This tool retrieves statistical information about the values of specified fields in the ClinicalTrials.gov database. Input: - `field_names`: A list of field names to get statistics for. - `field_types`: A list of field types to filter by. Example: `['ENUM', 'STRING']`


flat

$0.01/call

Get Available Fields
get_available_fields

Get organized list of available fields for customizing search results. This tool provides a list of available fields that can be used to customize the results of other search tools. The fields are organized into categories. Input: - `category`: An optional string to specify a category of fields to return. If not provided, all categories and default fields will be returned. Example: `'conditions'`


flat

$0.01/call

Search Trials Nct Ids Only
search_trials_nct_ids_only

Lightweight search returning only NCT IDs and minimal metadata for discovery. This tool performs a lightweight search that returns only the NCT IDs and minimal metadata for the purpose of discovering relevant trials. Input: - `conditions`: A list of medical conditions to search for. - `interventions`: A list of interventions or treatments to search for. - `sponsors`: A list of sponsor organizations to search for. - `terms`: A list of general search terms. - `max_studies`: The maximum number of studies to return. Defaults to 100.


flat

$0.01/call

Connect Clinical Trials tools
​
​

Cursor

Claude Code

Claude Desktop

Windsurf

VS Code

Cline

Roo Code

ChatGPT

Gemini CLI

Amazon Q

Goose

Augment

n8n

API / cURL

AI SDK

TypeScript SDK

Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "clinical-trials": {
      "url": "https://clinical-trials.mcp.xpay.sh/mcp?key=YOUR_API_KEY"
    }
  }
}
Or connect all tools

Access all tools (including Clinical Trials) through a single MCP connection.

https://mcp.xpay.sh/mcp?key=***
{
  "mcpServers": {
    "xpay": {
      "url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
    }
  }
}
Agent Discovery

Machine-readable catalogs for LLM agents and automation.

llms.txt — Human-readable tool catalog
curl https://xpay.tools/llms.txt
agents.txt — Structured JSON for agents
curl https://xpay.tools/agents.txt
skill.md — Claude Code skill
curl https://xpay.tools/skill.md
Pricing

Pay per tool call. No subscriptions.

12 Clinical Trials tools available
About Clinical Trials

Clinical Trials on xpay — Agent-native access to ClinicalTrials.gov without per-provider signup

Clinical Trials is the U.S. National Library of Medicine's registry of clinical studies. Developers and researchers use it to discover trials by condition, intervention, sponsor, or study identifier—and to extract structured metadata for analysis, recruitment, or regulatory workflows. On xpay, you call Clinical Trials tools directly from your AI agent without signing up for a Clinical Trials account, paying only for the calls you make.

What's available

  • search_trials_by_condition — Find trials matching one or more medical conditions (e.g., "diabetes", "Alzheimer's disease").
  • search_trials_by_intervention — Locate trials testing specific treatments, drugs, or therapies.
  • search_trials_by_sponsor — Filter trials by the organization or company running the study.
  • search_trials_by_acronym — Retrieve trials by their public short name (e.g., "TETON").
  • search_trials_by_nct_ids — Fetch full details for specific trials using their NCT identifiers.
  • search_trials_combined — Perform multi-criteria searches combining conditions, interventions, sponsors, and keywords.
  • get_trial_details — Retrieve comprehensive metadata for a single trial (phases, enrollment, status, locations, etc.).
  • get_trial_details_batched — Fetch details for multiple trials in batches to optimize payload size.
  • analyze_trial_phases — Analyze the distribution of trial phases (Phase 1, 2, 3, 4) across search results.
  • get_field_statistics — Extract statistical summaries of field values in the ClinicalTrials.gov database.
  • get_available_fields — Discover which fields can be used to customize and filter search results.
  • search_trials_nct_ids_only — Lightweight search returning only NCT IDs and minimal metadata for fast discovery.

When Clinical Trials is the right tool

  • Patient recruitment & engagement — Find and analyze trials matching patient demographics or conditions to support recruitment campaigns.
  • Regulatory & compliance research — Gather trial metadata to support drug development timelines, competitive analysis, or post-market surveillance.
  • Clinical research dashboards — Build internal tools that query trials by sponsor, phase, or location for portfolio management.
  • Health tech & patient apps — Power search features that help patients discover relevant studies in your application.
  • Academic & epidemiological analysis — Aggregate trial data by condition, intervention, or geography for research publications.
  • Trial matching & decision support — Integrate trial discovery into clinical decision-support systems or EHR workflows.

When to choose something else

  • Real-time trial enrollment data — Clinical Trials data is updated regularly but not in real-time; if you need live enrollment counts or status changes by the minute, consider direct API polling or a specialized clinical data vendor.
  • De-identified patient-level data — Clinical Trials provides study metadata, not individual participant records; for patient cohort analysis, you'll need access to trial datasets or EHR systems.
  • Non-U.S. trials — Clinical Trials focuses on U.S. studies; for international trials, consider WHO ICTRP or regional registries.
  • Proprietary or unpublished trials — Only publicly registered trials appear; confidential or early-stage studies are not indexed.

Pricing snapshot

All Clinical Trials tools on xpay are $0.01 per call. Whether you search by condition, retrieve trial details, or analyze phases, each invocation costs the same. No subscription, no minimum volume—you pay only for what you use.

ToolPrice
search_trials_by_condition$0.01
search_trials_by_intervention$0.01
search_trials_by_sponsor$0.01
search_trials_by_acronym$0.01
search_trials_by_nct_ids$0.01
search_trials_combined$0.01
get_trial_details$0.01
get_trial_details_batched$0.01
analyze_trial_phases$0.01
get_field_statistics$0.01
get_available_fields$0.01
search_trials_nct_ids_only$0.01

Quickstart

Install the Clinical Trials MCP endpoint in Claude Code:

claude mcp add --transport http clinical-trials "https://clinical-trials.mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY"

Replace YOUR_XPAY_KEY with your xpay API key (get one free at https://xpay.tools after signup).

Once connected, your Claude Code agent can call tools by name. For example, ask Claude to "use search_trials_by_condition to find all Phase 3 diabetes trials" and it will invoke the tool with your arguments, returning matching trials and billing $0.01 per call.

Alternatively, connect all xpay providers in one endpoint:

claude mcp add --transport http xpay "https://mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY"

Then use xpay_discover("clinical trials") to find Clinical Trials tools, xpay_details("clinical-trials/search_trials_by_condition") to inspect a tool's schema, and xpay_run("clinical-trials/search_trials_by_condition", {...}) to execute it.

For Cursor, Windsurf, Cline, or VS Code (Copilot):

Add an entry to your mcp.json file:

{
  "mcpServers": {
    "clinical-trials": {
      "url": "https://clinical-trials.mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY"
    }
  }
}

Why route Clinical Trials through xpay?

  • No Clinical Trials account needed — xpay holds the upstream credentials; you authenticate once with your xpay API key and access Clinical Trials immediately.
  • Pay-per-call, no subscription — Every tool costs $0.01. No monthly fees, no tier lock-in. Scale from one call to thousands without changing your plan.
  • MCP-native integration — Call Clinical Trials tools directly from Claude Code, Cursor, Windsurf, Cline, or any MCP-compatible agent. No custom HTTP wrappers or SDK installation.
  • Unified billing across providers — Connect multiple xpay providers (Tavily, Apollo, Perplexity, etc.) through one endpoint and one invoice. Simplifies expense tracking and agent orchestration.
  • Instant activation — Sign up, get your API key, and start making calls within seconds. No approval process, no waiting for provider onboarding.
Frequently Asked Questions

Clinical Trials on xpay is an MCP-wrapped interface to ClinicalTrials.gov, the U.S. National Library of Medicine's registry of clinical studies. It lets you search, filter, and analyze trials by condition, intervention, sponsor, or study ID—all callable directly from your AI agent (Claude Code, Cursor, VS Code, etc.) without signing up for Clinical Trials separately. You pay $0.01 per call, no subscription.

Every Clinical Trials tool costs $0.01 per call on xpay. Whether you search by condition, retrieve trial details, or analyze phases, each invocation is billed at the same rate. There is no subscription, no minimum volume, and no per-provider setup fee. You only pay for the calls you make.

No. xpay holds the Clinical Trials credentials on your behalf. You sign up once with xpay (via email or Google), get your API key, and immediately access all Clinical Trials tools. You never create a separate Clinical Trials account or provide your own credentials.

Common use cases include patient recruitment and trial matching (finding studies relevant to a patient's condition), regulatory and competitive analysis (tracking trial phases and sponsors), clinical research dashboards (aggregating trial metadata by location or intervention), and health tech integration (powering trial discovery features in patient apps or EHR systems). You can also use it for academic research, epidemiological analysis, and decision-support systems.

Run `claude mcp add --transport http clinical-trials "https://clinical-trials.mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY"` in your terminal, replacing `YOUR_XPAY_KEY` with your xpay API key (available at https://xpay.tools after signup). Once connected, your Claude Code agent can call tools like `search_trials_by_condition` directly.

Yes. Add an entry to your `mcp.json` configuration file with the URL `https://clinical-trials.mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY`. For Cursor, Windsurf, Cline, and VS Code (Copilot), the process is the same: define the MCP server in your editor's MCP settings, and the tools become available to your agent.

Direct API access to ClinicalTrials.gov (requires managing your own HTTP calls and parsing), WHO ICTRP for international trials, regional trial registries (e.g., EudraCT for European trials), and specialized clinical data vendors for real-time enrollment or patient-level data. Clinical Trials on xpay is best if you want fast agent-native access, pay-per-call pricing, and no signup overhead.

Yes. Instead of the per-provider endpoint, use the unified xpay endpoint `https://mcp.xpay.sh/mcp?key=YOUR_XPAY_KEY` to access Clinical Trials, Tavily, Apollo, Perplexity, and other providers in one connection. Use `xpay_discover()` to find tools, `xpay_details()` to inspect schemas, and `xpay_run()` to execute them. All calls are billed to one invoice.

xpay tools logo

Marketplace for AI Capabilities. Run agents, tools & prompts with pay-per-use micropayments.

or ask your AI app
Popular Tools
FirecrawlTavilyExaHunterPerplexityRecraftIdeogramFlux
Collections
AI Image & MediaContent & ResearchDev ToolsFinanceLead GenWeb ScrapingCompetitive Intel
Developers
DocumentationAPI ReferenceQuickstartSDKsSkillsskill.mdllms.txt
Resources
The Agentic EconomyAgentic CommerceAgent Frameworksx402 ProtocolBlog
Company
About xpayxpay.shGitHubDiscordTwitter / X

© 2026 Agentically Inc. All rights reserved.
Privacy PolicyTerms of Service
✦
xpay Assistant
Clinical Trials Tools

Ask me about tools, pricing, or how to connect

What tools does Clinical Trials offer?
How do I connect via MCP?
Show me pricing
DocsCollectionsExplore