io.github.cyanheads/clinicaltrialsgov-mcp-server
Search ClinicalTrials.gov: find studies, retrieve results, match patients to candidate trials.
- Repository
- github.com/cyanheads/clinicaltrialsgov-mcp-server
- Server address
https://clinicaltrials.caseyjhand.com/mcp(streamable-http)- Version
- 2.11.5
- Author
- cyanheads (namespace verified by the registry)
- Source
- Official MCP registry (updated Nov 28, 2026)
How to install it
Variables to fill in: CT_API_BASE_URL, CT_REQUEST_TIMEOUT_MS, CT_MAX_PAGE_SIZE, MCP_LOG_LEVEL.
Remote server (nothing to install)
Claude Code
In a terminal:
claude mcp add --transport http clinicaltrialsgov-mcp-server https://clinicaltrials.caseyjhand.com/mcpClaude (app and claude.ai)
Open Settings, then Connectors, and add a custom connector with this address. If the server asks you to sign in, Claude will walk you through it.
https://clinicaltrials.caseyjhand.com/mcpChatGPT
In Settings, Apps & Connectors section, turn on developer mode, then create a connector with this address.
https://clinicaltrials.caseyjhand.com/mcpCursor ~/.cursor/mcp.json
Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in the project):
{
"mcpServers": {
"clinicaltrialsgov-mcp-server": {
"url": "https://clinicaltrials.caseyjhand.com/mcp"
}
}
}VS Code .vscode/mcp.json
Add this to your project’s .vscode/mcp.json:
{
"servers": {
"clinicaltrialsgov-mcp-server": {
"type": "http",
"url": "https://clinicaltrials.caseyjhand.com/mcp"
}
}
}On your machine
Claude Code
The server runs on your machine (npm package). In a terminal:
claude mcp add clinicaltrialsgov-mcp-server -e CT_API_BASE_URL=YOUR_CT_API_BASE_URL -e CT_REQUEST_TIMEOUT_MS=YOUR_CT_REQUEST_TIMEOUT_MS -e CT_MAX_PAGE_SIZE=YOUR_CT_MAX_PAGE_SIZE -e MCP_LOG_LEVEL=YOUR_MCP_LOG_LEVEL -- npx -y [email protected]Claude Desktop claude_desktop_config.json
Settings, Developer, Edit config, then add:
{
"mcpServers": {
"clinicaltrialsgov-mcp-server": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"CT_API_BASE_URL": "YOUR_CT_API_BASE_URL",
"CT_REQUEST_TIMEOUT_MS": "YOUR_CT_REQUEST_TIMEOUT_MS",
"CT_MAX_PAGE_SIZE": "YOUR_CT_MAX_PAGE_SIZE",
"MCP_LOG_LEVEL": "YOUR_MCP_LOG_LEVEL"
}
}
}
}Cursor ~/.cursor/mcp.json
In ~/.cursor/mcp.json:
{
"mcpServers": {
"clinicaltrialsgov-mcp-server": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"CT_API_BASE_URL": "YOUR_CT_API_BASE_URL",
"CT_REQUEST_TIMEOUT_MS": "YOUR_CT_REQUEST_TIMEOUT_MS",
"CT_MAX_PAGE_SIZE": "YOUR_CT_MAX_PAGE_SIZE",
"MCP_LOG_LEVEL": "YOUR_MCP_LOG_LEVEL"
}
}
}
}VS Code .vscode/mcp.json
In .vscode/mcp.json:
{
"servers": {
"clinicaltrialsgov-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"CT_API_BASE_URL": "YOUR_CT_API_BASE_URL",
"CT_REQUEST_TIMEOUT_MS": "YOUR_CT_REQUEST_TIMEOUT_MS",
"CT_MAX_PAGE_SIZE": "YOUR_CT_MAX_PAGE_SIZE",
"MCP_LOG_LEVEL": "YOUR_MCP_LOG_LEVEL"
}
}
}
}ChatGPT
ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.
These configurations are built from the information published by the author. Check the repository before installing a local server.
Our test
Responds The server speaks MCP and lists its tools.
- Date
- Nov 28, 2026, 09:15 (test run by L’Atlas)
- Response time
- 1,377 ms (whole test)
- Tools found
- 7
- Announced name
- clinicaltrialsgov-mcp-server 2.11.5
- Protocol
- MCP 2025-11-25
- Next test
- Dec 5, 2026
See the tools (7)
clinicaltrials_search_studies
Search for clinical trial studies from ClinicalTrials.gov. Supports full-text and field-specific queries, status/phase/geographic filters, pagination, sorting, and field selection. Returns a compact per-study index by default; pass the fielclinicaltrials_get_study_record
Fetch a single clinical trial study by NCT ID from ClinicalTrials.gov. Returns the full study record including protocol details, eligibility criteria, outcomes, arms, interventions, contacts, and locations. Optional locationLimit / outcomeLclinicaltrials_get_study_count
Get total clinical trial study count from ClinicalTrials.gov matching a query, without fetching study data. Fast and lightweight. Use for quick statistics or to build breakdowns by calling multiple times with different filters (e.g., countclinicaltrials_get_field_values
Discover valid values for ClinicalTrials.gov fields with study counts per value. Use to explore available filter options before building a search — e.g., valid OverallStatus, Phase, InterventionType, StudyType, or LeadSponsorClass values.clinicaltrials_get_field_definitions
Resolve valid field names from the ClinicalTrials.gov data model — the canonical PascalCase identifiers (OverallStatus, EnrollmentCount, LeadSponsorName) the other tools take. Every record piece works in clinicaltrials_search_studies `fieldclinicaltrials_get_study_results
Fetch clinical trial results data from ClinicalTrials.gov for completed studies — outcome measures with statistics, adverse events, participant flow, baseline characteristics, and results metadata (limitations & caveats, certain-agreement dclinicaltrials_find_eligible
Find candidate clinical trials for a patient profile. Provide age, sex, conditions, and location to get studies with their demographic limits, contact information, and recruiting locations. Candidates are matched on age, sex, location, recr
What the test does: it opens an MCP session (initialize) and asks for the tool list (tools/list), with no key or account. No tool is ever called. Learn more
Reviews
No review yet.
Sign in to leave a review. Your email is all you need.
Comments
No comment yet. A question, a tip? Start the discussion.
Sign in to comment.
Badge for your README
Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.
Markdown (GitHub)
[](https://lagora.dev/en/entry/io.github.cyanheads/clinicaltrialsgov-mcp-server)HTML
<a href="https://lagora.dev/en/entry/io.github.cyanheads/clinicaltrialsgov-mcp-server"><img src="https://lagora.dev/badge/io.github.cyanheads/clinicaltrialsgov-mcp-server.svg?lang=en" alt="io.github.cyanheads/clinicaltrialsgov-mcp-server on L’Agora" height="20"></a>For the entry’s author only: sign in to continue.
By the same author
io.github.cyanheads/openlibrary-mcp-server Responds
io.github.cyanheads/arxiv-mcp-server Responds
io.github.cyanheads/nws-weather-mcp-server Responds