GnistAI GnistAI
Log in

ClinicalTrials.gov

Search clinical trial registrations — study details, conditions, interventions, and status.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 5 tools tools 5 5 Science

Data source: ClinicalTrials.gov

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/clinicaltrials/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-clinicaltrials": {
      "url": "https://context.gnist.ai/mcp/clinicaltrials/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/clinicaltrials/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_trial", "arguments": {"nct_id": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/clinicaltrials/

5 endpoints available:

Shell
curl "https://context.gnist.ai/rest/clinicaltrials/get_trial?nct_id=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/clinicaltrials/get_trial",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "nct_id": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc clinicaltrials

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (5)

search_trials
Search ClinicalTrials.gov for clinical trials with flexible filters.
ParameterTypeRequiredDescription
queryanyoptionalGeneral search term (searches all fields). Examples: "aspirin heart", "mRNA vaccine", "CRISPR gene therapy".
conditionanyoptionalFilter by condition or disease. Examples: "diabetes", "breast cancer", "Alzheimer's disease", "COVID-19".
interventionanyoptionalFilter by intervention/treatment. Examples: "pembrolizumab", "cognitive behavioral therapy", "radiation".
statusanyoptionalFilter by trial status. One of: RECRUITING, NOT_YET_RECRUITING, ACTIVE_NOT_RECRUITING, COMPLETED, TERMINATED, WITHDRAWN, SUSPENDED, ENROLLING_BY_INVITATION, UNKNOWN.
phaseanyoptionalFilter by trial phase. One of: EARLY_PHASE1, PHASE1, PHASE2, PHASE3, PHASE4, NA.
sponsoranyoptionalFilter by sponsor organization. Examples: "Pfizer", "NIH", "Mayo Clinic".
max_resultsintegeroptionalNumber of results to return (1-50, default 10). (default: 10)
get_trial
Get detailed information about a specific clinical trial by NCT ID.
ParameterTypeRequiredDescription
nct_idstringrequiredClinicalTrials.gov NCT identifier (e.g., "NCT03367897", "NCT04368728"). Found in search_trials results or on clinicaltrials.gov.
get_trials_by_condition
Find clinical trials studying a specific condition or disease.
ParameterTypeRequiredDescription
conditionstringrequiredThe condition or disease to search for. Examples: "lung cancer", "type 2 diabetes", "major depressive disorder", "rheumatoid arthritis".
statusanyoptionalOptional status filter. One of: RECRUITING, NOT_YET_RECRUITING, ACTIVE_NOT_RECRUITING, COMPLETED, TERMINATED, WITHDRAWN, SUSPENDED, ENROLLING_BY_INVITATION, UNKNOWN.
max_resultsintegeroptionalNumber of results to return (1-50, default 10). (default: 10)
get_trials_by_sponsor
Find clinical trials run by a specific sponsor organization.
ParameterTypeRequiredDescription
sponsorstringrequiredSponsor organization name. Examples: "Pfizer", "Novartis", "National Cancer Institute", "Mayo Clinic", "Roche".
statusanyoptionalOptional status filter. One of: RECRUITING, NOT_YET_RECRUITING, ACTIVE_NOT_RECRUITING, COMPLETED, TERMINATED, WITHDRAWN, SUSPENDED, ENROLLING_BY_INVITATION, UNKNOWN.
max_resultsintegeroptionalNumber of results to return (1-50, default 10). (default: 10)
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related