io.github.cyanheads

clinicaltrialsgov-mcp-server

ClinicalTrials.gov MCP server. Search studies, retrieve results, match patients to eligible trials.

Hosted
communityknowledge

Deployment

Hosted
streamable-httphttps://clinicaltrials.caseyjhand.com/mcp

Package Details

Transportstdio
Runtimebun

Package Arguments

Positional
Position 0
run
Position 1
start:stdio

Environment Variables

CT_API_BASE_URL(str)
Default:https://clinicaltrials.gov/api/v2

ClinicalTrials.gov API base URL.

CT_REQUEST_TIMEOUT_MS(str)
Default:30000

Per-request timeout in milliseconds.

CT_MAX_PAGE_SIZE(str)
Default:200

Maximum page size cap.

CT_MAX_ELIGIBLE_CANDIDATES(str)
Default:100

Max studies to evaluate in find_eligible.

MCP_LOG_LEVEL(str)
Default:info

Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').

TransportStreamable HTTP
Runtimebun

Package Arguments

Positional
Position 0
run
Position 1
start:http

Environment Variables

CT_API_BASE_URL(str)
Default:https://clinicaltrials.gov/api/v2

ClinicalTrials.gov API base URL.

CT_REQUEST_TIMEOUT_MS(str)
Default:30000

Per-request timeout in milliseconds.

CT_MAX_PAGE_SIZE(str)
Default:200

Maximum page size cap.

CT_MAX_ELIGIBLE_CANDIDATES(str)
Default:100

Max studies to evaluate in find_eligible.

MCP_HTTP_HOST(str)
Default:127.0.0.1

The hostname for the HTTP server.

MCP_HTTP_PORT(str)
Default:3010

The port to run the HTTP server on.

MCP_HTTP_ENDPOINT_PATH(str)
Default:/mcp

The endpoint path for the MCP server.

MCP_AUTH_MODE(str)
Default:none

Authentication mode to use: 'none', 'jwt', or 'oauth'.

MCP_LOG_LEVEL(str)
Default:info

Sets the minimum log level for output (e.g., 'debug', 'info', 'warn').