Clinical Trials MCP server
Endpoint: https://hcls.mcp.claude.com/clinical_trials/mcp · Authentication: No auth
Searches ClinicalTrials.gov by condition, sponsor, investigator and eligibility, returns trial details and analyzes endpoints. Run by Anthropic; no authentication.
How do I authenticate?
Add the endpoint directly in your client. The catalog records no authentication requirement; no OAuth sign-in or API key is configured in this setup. The live server may change.
Authentication and connection guideConnection specification
- Remote endpoint
https://hcls.mcp.claude.com/clinical_trials/mcp- Browser access
- Not yet measured
- Declared MCP transport
- Streamable HTTP
- Live-validated MCP transport
- Streamable HTTP — Observed by the latest catalog validation
- Declared authentication
- No authentication
- Detected authentication
- No authentication detected or retained from publisher evidence
- Protocol lifecycle
- Stateful MCP · 2025-11-25
- Category
- Reference
Product documentation · Source repository · Official listing documentation · Claude connector directory listing
More Reference MCP servers · Browse all MCP servers · Test this endpoint in the MCP Playground
Connect it
Live-validated endpoint: https://hcls.mcp.claude.com/clinical_trials/mcp · Streamable HTTP. No authentication is required by the catalog listing.
Agent prompt for Claude Code or Codex
Add the Clinical Trials MCP server to my MCP client configuration and verify that it works. What it is: Searches ClinicalTrials.gov by condition, sponsor, investigator and eligibility, returns trial details and analyzes endpoints. Run by Anthropic; no authentication. Server URL: https://hcls.mcp.claude.com/clinical_trials/mcp Transport: Streamable HTTP (remote MCP server, no local install). Authentication: none. The server accepts connections without credentials. Tools (6, as last observed by mcptest): analyze_endpoints, get_trial_details, search_by_eligibility, search_by_sponsor, search_investigators, search_trials. Reference: https://mcptest.io/servers/clinical-trials/ Steps: 1. Work out which MCP client I use (Claude Code, Codex, Cursor, VS Code or another) and add the server under the name "clinical-trials" in that client's MCP configuration, user scope unless I ask otherwise. Claude Code: claude mcp add --transport http --scope user 'clinical-trials' 'https://hcls.mcp.claude.com/clinical_trials/mcp' Codex: codex mcp add 'clinical-trials' --url 'https://hcls.mcp.claude.com/clinical_trials/mcp' Other clients: use the setup for that client on the reference page. 2. Never write a credential value into a file that could be committed; reference an environment variable or the client's secret store, and ask me for any value you need. 3. Verify: connect to the server and call tools/list. Confirm the tools above are listed, and report any sign-in step I still have to complete.
Claude Code setup
Run in a terminal. This user-scoped entry is available across projects.
claude mcp add --transport http --scope user 'clinical-trials' 'https://hcls.mcp.claude.com/clinical_trials/mcp'Codex CLI setup
Run in a terminal; Codex stores the entry in ~/.codex/config.toml.
codex mcp add 'clinical-trials' --url 'https://hcls.mcp.claude.com/clinical_trials/mcp'Cursor setup
Add to .cursor/mcp.json for this project, or ~/.cursor/mcp.json for all projects.
{
"mcpServers": {
"clinical-trials": {
"url": "https://hcls.mcp.claude.com/clinical_trials/mcp"
}
}
}VS Code setup
Add to .vscode/mcp.json, or run “MCP: Open User Configuration” for a private user-level entry.
{
"servers": {
"clinical-trials": {
"type": "http",
"url": "https://hcls.mcp.claude.com/clinical_trials/mcp"
}
}
}Claude setup
Add the endpoint above in Claude:
- Customize > Connectors > Add custom connector
- Team/Enterprise: Organization settings > Connectors > Add > Custom > Web
Claude Desktop setup
Add the endpoint above in Claude Desktop:
- Remote: Customize > Connectors (same as claude.ai)
- Local: Settings > Developer > Edit Config, or Settings > Extensions for .mcpb files
~/Library/Application Support/Claude/claude_desktop_config.json(macOS) or%APPDATA%\Claude\claude_desktop_config.json(Windows), local servers only
ChatGPT setup
Add the endpoint above in ChatGPT:
- ChatGPT web: Plugins > Add custom MCP server, then configure authentication and accept the risk warning
Windsurf setup
Add the endpoint above in Windsurf:
~/.config/devin/mcp_config.json(%APPDATA%\devin\mcp_config.jsonon Windows),serverUrlorurl- Cascade panel > ... > MCPs > Open MCP config file
Gemini CLI setup
Add the endpoint above in Gemini CLI:
gemini mcp add --transport http <name> <url>~/.gemini/settings.json(user) or.gemini/settings.json(project),mcpServers
MCP SDK setup
Add the endpoint above in MCP SDK:
- Programmatic:
new Client(...).connect(new StreamableHTTPClientTransport(url))
Client compatibility
| Client | Status | Why |
|---|---|---|
| Claude Code | Supported | Claude Code supports Streamable HTTP servers and servers without authentication. |
| Codex | Partial | Codex's documentation does not state support for servers without authentication. |
| Cursor | Supported | Cursor supports Streamable HTTP servers and servers without authentication. |
| VS Code | Supported | VS Code supports Streamable HTTP servers and servers without authentication. |
| Claude | Supported | Claude supports Streamable HTTP servers and servers without authentication. |
| Claude Desktop | Supported | Claude Desktop supports Streamable HTTP servers and servers without authentication. |
| ChatGPT | Partial | Stateful routing needs operational care: ChatGPT can preserve MCP sessions, but the deployment must route a session consistently and retain its state. |
| Windsurf | Partial | Windsurf's documentation does not state support for servers without authentication. |
| Gemini CLI | Supported | Gemini CLI supports Streamable HTTP servers and servers without authentication. |
| MCP SDK | Supported | MCP SDK supports Streamable HTTP servers and servers without authentication. |
Computed from this server's validated transport, protocol and authentication against documented client support. Checks the catalog has not observed are not counted.
Latest validation evidence
- Validation status
- Online when last tested
- Validation checked at
- Nov 23, 2026 at 7:16 PM
- Validation detail
- Negotiated stateful MCP 2025-11-25 at https://hcls.mcp.claude.com/clinical_trials/mcp; detected transport streamable-http; authentication none
Tool inventory
What the catalog validator observed on at https://hcls.mcp.claude.com/clinical_trials/mcp without credentials. The live server may have changed since; connect in the Playground for the current list.
Tools provided by Clinical Trials 6
Some details were sanitized for public display.
analyze_endpointsoutputSchema declaredAnalyze primary and secondary outcome measures (endpoints) from clinical trials. MODES (provide ONLY nct_id OR condition, not both): 1. Single Trial: Provide nct_id ONLY to analyze one specific trial's endpoints 2. Aggregate: Provide condition ONLY to analyze patterns across multiple trials If both provided, nct_id takes precedence (single trial mode). SINGLE TRIAL MODE (nct_id): - Returns all endpoints for the specified trial - Useful for understanding specific trial design - Example: nct_id='NCT03661411' AGGREGATE MODE (condition): - Analyzes endpoints across many trials in a therapeutic are
Input
condition?: any, nct_id?: any, page_size?: integer, phase?: any, start_date_after?: anycondition?: anyoptionalDisease or therapeutic area for aggregate analysis. Examples: 'diabetes', 'Alzheimer', 'breast cancer', 'heart failure'. Required for aggregate analysis, optional if nct_id is provided.
nct_id?: anyoptionalNCT ID for single trial analysis. Example: 'NCT03661411'. If provided, analyzes only this trial's endpoints. Either nct_id or condition must be provided.
page_size?: integeroptionalNumber of trials to analyze. Default 50. Use 100-200 for comprehensive analysis, 20-30 for quick overview. More trials = more representative but slower.
phase?: anyoptionalFilter by trial phase. Endpoints often differ by phase: - PHASE1/PHASE2: Often safety endpoints, biomarkers - PHASE3: Pivotal efficacy endpoints (most relevant for regulatory) - PHASE4: Real-world outcomes Example: ['PHASE3'] for registration-quality endpoints
start_date_after?: anyoptionalOnly analyze trials started after this date. Format: YYYY-MM-DD. Useful for seeing modern/recent endpoint trends. Example: '2020-01-01' for trials from 2020 onwards.
get_trial_detailsoutputSchema declaredGet comprehensive details for a specific clinical trial using its NCT ID. WHEN TO USE: - User provides a specific NCT ID (e.g., 'Tell me about NCT04567890') - Need full eligibility criteria, endpoints, or locations for a specific trial - Following up on a trial found via search_trials - Answering detailed questions about a known trial - Verifying patient eligibility for a specific trial USE search_trials INSTEAD FOR: - Finding trials (this tool requires knowing the NCT ID) - Browsing trials by condition/intervention/sponsor WHAT THIS RETURNS: - Full eligibility criteria (inclusion/exclusion) -
Input
nct_id: stringnct_id: stringrequiredNCT identifier for the clinical trial. Format: 'NCT' + 8 digits. Examples: 'NCT04567890', 'NCT00001234'. If user provides just the number, prepend 'NCT'. Case-insensitive.
search_by_eligibilityoutputSchema declaredFind clinical trials matching specific patient eligibility criteria. Use this for patient-trial matching and finding trials a specific patient might qualify for. DEFAULT STATUS: Only searches RECRUITING trials. To include completed, upcoming, or all trials, explicitly set the status parameter. WHEN TO USE: - Patient matching: 'Find trials for a 65-year-old female with diabetes' - Specific criteria: 'Trials requiring HbA1c > 8%' or 'BRCA positive trials' - Age-restricted searches: 'Pediatric cancer trials' or 'Trials for elderly patients' - Finding trials by inclusion/exclusion criteria USE sea
Input
condition?: any, eligibility_keywords?: any, max_age?: any, min_age?: any, page_size?: integer, page_token?: any, sex?: any, status?: anycondition?: anyoptionalPrimary medical condition for the patient. Optional. Examples: 'diabetes', 'breast cancer', 'Alzheimer', 'heart failure'. Can be omitted if searching by other eligibility criteria only.
eligibility_keywords?: anyoptionalKeywords to search in inclusion/exclusion criteria text. Examples: 'HbA1c > 8', 'BRCA mutation', 'ECOG 0-1', 'treatment naive', 'prior chemotherapy'. Searches the full eligibility criteria text for these terms.
max_age?: anyoptionalPatient's age (upper bound for matching). Format: 'X Years' or 'X Months'. Examples: '75 Years', '12 Years'. Finds trials where the trial's MaximumAge requirement is at or above this value, meaning the patient meets the maximum age requirement.
min_age?: anyoptionalPatient's age (lower bound for matching). Format: 'X Years' or 'X Months'. Examples: '18 Years', '65 Years', '6 Months'. Finds trials where the trial's MinimumAge requirement is at or below this value, meaning the patient meets the minimum age requirement.
page_size?: integeroptionalResults per page. Default 10.
page_token?: anyoptionalPagination token from previous response.
sex?: anyoptionalPatient's sex for eligibility matching: - MALE: Find trials accepting male patients - FEMALE: Find trials accepting female patients - ALL: No sex restriction (default behavior if not specified)
status?: anyoptionalTrial recruitment status. Defaults to ['RECRUITING'] if not specified. For patient matching, usually want RECRUITING trials only. Add NOT_YET_RECRUITING to include upcoming trials.
search_by_sponsoroutputSchema declaredFind all clinical trials sponsored by a specific company or organization. Functionally equivalent to search_trials(sponsor=...). WHEN TO USE: - Questions about a company's pipeline (e.g., 'What is Pfizer working on?') - Competitive intelligence (e.g., 'What cancer drugs is Novartis developing?') - Tracking pharma company portfolios and development programs - Finding trials from academic institutions (e.g., 'Mayo Clinic', 'NIH') USE search_trials INSTEAD FOR: - Disease-focused searches where sponsor doesn't matter - Finding trials by treatment name rather than sponsor EXAMPLES: - 'Pfizer Phase
Input
condition?: any, count_total?: boolean, page_size?: integer, page_token?: any, phase?: any, sponsor_name: string, status?: anycondition?: anyoptionalFilter by disease/condition to focus on a therapeutic area. Examples: 'cancer', 'diabetes', 'COVID-19', 'Alzheimer'. Useful for questions like 'What is Pfizer doing in oncology?'
count_total?: booleanoptionalSet true to get total count. Useful for 'How many trials does X sponsor?'
page_size?: integeroptionalResults per page. Use 50-100 for comprehensive pipeline analysis.
page_token?: anyoptionalPagination token from previous response to get next page.
phase?: anyoptionalFilter by development phase to analyze pipeline maturity: - PHASE1: Early development, safety focus - PHASE2: Mid-stage, efficacy testing - PHASE3: Late-stage, large trials before approval - PHASE4: Post-approval studies Select multiple for broader view: ['PHASE2', 'PHASE3']
sponsor_name: stringrequiredCompany or organization name. Examples: 'Pfizer', 'Moderna', 'Novartis', 'NIH', 'Mayo Clinic'. Partial matches work (e.g., 'Pfizer' finds 'Pfizer Inc' and 'Pfizer Pharmaceuticals').
status?: anyoptionalFilter by trial status: - RECRUITING: Currently enrolling (active development) - COMPLETED: Finished trials (historical data) - ACTIVE_NOT_RECRUITING: Ongoing but closed to enrollment - TERMINATED: Stopped early (may indicate issues)
search_investigatorsoutputSchema declaredFind principal investigators (PIs) and research sites conducting trials in a therapeutic area. WHEN TO USE: - 'Who are the leading researchers in Alzheimer trials?' - 'Find investigators at Mayo Clinic working on cancer' - 'Which sites in California are running diabetes trials?' - Site selection for planning new trials - Building investigator networks and collaborations USE search_trials FOR: - Finding trials themselves rather than investigators - When you need trial details, not investigator info WHAT THIS RETURNS: - Investigator names and roles (Principal Investigator, Sub-Investigator) - In
Input
condition?: any, institution?: any, investigator_name?: any, location?: any, page_size?: integer, status?: anycondition?: anyoptionalDisease or therapeutic area to search. Optional. Examples: 'Alzheimer', 'breast cancer', 'diabetes', 'heart failure'. Finds investigators running trials in this area. Can be omitted if searching by institution or location only.
institution?: anyoptionalInstitution or facility name to filter by. Examples: 'Mayo Clinic', 'Duke University', 'MD Anderson', 'Johns Hopkins'. Takes precedence over location if both specified.
investigator_name?: anyoptionalDirect search by investigator name. Examples: 'Smith', 'John Smith', 'Dr. Chen'. Searches in OverallOfficialName and ResponsiblePartyInvestigatorFullName fields. Use this when you know a specific investigator's name.
location?: anyoptionalGeographic location to filter by. Examples: 'Boston', 'California', 'United States', 'Germany'. Use when institution is not specified.
page_size?: integeroptionalNumber of trials to analyze. More trials = more investigators found. Default 20. Use 50-100 for comprehensive investigator discovery.
status?: anyoptionalFilter by trial status. Default searches all statuses. Use ['RECRUITING'] to find currently active investigators.
search_trialsoutputSchema declaredSearch ClinicalTrials.gov database for clinical trials. This is the PRIMARY tool for finding trials. WHEN TO USE: - Finding trials for a disease/condition (e.g., 'What trials exist for lung cancer?') - Finding trials testing a specific drug/treatment (e.g., 'Find pembrolizumab trials') - Finding trials in a geographic area (e.g., 'Clinical trials in Boston') - General trial discovery and research questions USE DIFFERENT TOOLS FOR: - Detailed info on a specific trial by NCT ID -> use get_trial_details - All trials by a specific company -> use search_by_sponsor (or search_trials with sponsor=...
Input
advanced_query?: any, condition?: any, count_total?: boolean, intervention?: any, location?: any, page_size?: integer, page_token?: any, phase?: any, sponsor?: any, status?: any, study_type?: anyadvanced_query?: anyoptionalAdvanced query using Essie expression syntax. Only use when basic parameters are insufficient. Syntax: AREA[FieldName]value or AREA[FieldName]RANGE[min,max]. Examples: - Date filter: 'AREA[StartDate]RANGE[2023-01-01,MAX]' (trials started after Jan 2023) - Enrollment: 'AREA[EnrollmentCount]RANGE[100,MAX]' (100+ participants) - List size: 'AREA[Phase:size]2' (trials with exactly 2 phases) - Geo proximity: Use filter.geo parameter instead for distance-based searches
condition?: anyoptionalDisease or condition to search. This is the most common search parameter. Examples: 'diabetes', 'lung cancer', 'Alzheimer', 'COVID-19'. Supports Boolean operators: 'diabetes AND neuropathy', 'cancer NOT skin'. Use quotes for exact phrases: '"type 2 diabetes"'. Medical synonyms are automatically included in search.
count_total?: booleanoptionalSet to true to get total count of matching trials. Useful for questions like 'How many trials exist for X?'. Slightly slower.
intervention?: anyoptionalDrug, treatment, or intervention name. Examples: 'pembrolizumab', 'metformin', 'CAR-T therapy', 'radiation'. Use OR for alternatives: 'aspirin OR ibuprofen OR naproxen'. Brand and generic names both work.
location?: anyoptionalGeographic location for trial sites. Can be city, state, country, or region. Examples: 'Boston', 'California', 'United States', 'Germany', 'Europe'. Useful for finding trials patients can physically access.
page_size?: integeroptionalNumber of results per page. Default 10. Use 50-100 for comprehensive searches, 5-10 for quick lookups.
page_token?: anyoptionalToken from previous response's next_page_token to get next page. Do not set for first request.
phase?: anyoptionalFilter by trial phase. Values: - EARLY_PHASE1: Initial safety testing - PHASE1: Safety and dosage testing in small groups - PHASE2: Efficacy and side effects testing - PHASE3: Large-scale efficacy confirmation - PHASE4: Post-market surveillance - NA: Not applicable (observational studies) Can select multiple: ['PHASE2', 'PHASE3']
sponsor?: anyoptionalOrganization sponsoring or funding the trial. Examples: 'Pfizer', 'NIH', 'Novartis', 'Mayo Clinic'. For comprehensive sponsor analysis, use search_by_sponsor tool instead.
status?: anyoptionalFilter by recruitment status. Common values: - RECRUITING: Actively enrolling patients (use this to find trials patients can join) - COMPLETED: Trial finished (use for historical research) - ACTIVE_NOT_RECRUITING: Ongoing but not enrolling - NOT_YET_RECRUITING: Approved but not started - TERMINATED/WITHDRAWN: Stopped early Can select multiple: ['RECRUITING', 'NOT_YET_RECRUITING']
study_type?: anyoptionalType of clinical study: - INTERVENTIONAL: Tests a treatment/intervention (most common for drug trials) - OBSERVATIONAL: Observes outcomes without intervention - EXPANDED_ACCESS: Provides experimental treatment outside trials