← Index

io.github.cyanheads/clinicaltrialsgov-mcp-server

io.github.cyanheads/clinicaltrialsgov-mcp-server·v2.4.2·Search
Quality Score
85
/100

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

§01  Install
Remote endpoint

Streamable HTTP / SSE endpoint. Add to any MCP client that supports remote servers.

https://clinicaltrials.caseyjhand.com/mcp
Claude Desktop (claude_desktop_config.json)
{
  "mcpServers": {
    "clinicaltrialsgov-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "clinicaltrialsgov-mcp-server"
      ],
      "env": {
        "CT_API_BASE_URL": "https://clinicaltrials.gov/api/v2",
        "CT_REQUEST_TIMEOUT_MS": "30000",
        "CT_MAX_PAGE_SIZE": "200",
        "CT_MAX_ELIGIBLE_CANDIDATES": "100",
        "MCP_LOG_LEVEL": "info",
        "MCP_HTTP_HOST": "127.0.0.1",
        "MCP_HTTP_PORT": "3010",
        "MCP_HTTP_ENDPOINT_PATH": "/mcp",
        "MCP_AUTH_MODE": "none"
      }
    }
  }
}
Cursor (.cursor/mcp.json)
{
  "mcpServers": {
    "clinicaltrialsgov-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "clinicaltrialsgov-mcp-server"
      ],
      "env": {
        "CT_API_BASE_URL": "https://clinicaltrials.gov/api/v2",
        "CT_REQUEST_TIMEOUT_MS": "30000",
        "CT_MAX_PAGE_SIZE": "200",
        "CT_MAX_ELIGIBLE_CANDIDATES": "100",
        "MCP_LOG_LEVEL": "info",
        "MCP_HTTP_HOST": "127.0.0.1",
        "MCP_HTTP_PORT": "3010",
        "MCP_HTTP_ENDPOINT_PATH": "/mcp",
        "MCP_AUTH_MODE": "none"
      }
    }
  }
}
Cline (cline_mcp_settings.json)
npx -y clinicaltrialsgov-mcp-server
§02  Environment variables
CT_API_BASE_URL

ClinicalTrials.gov API base URL.

CT_REQUEST_TIMEOUT_MS

Per-request timeout in milliseconds.

CT_MAX_PAGE_SIZE

Maximum page size cap.

CT_MAX_ELIGIBLE_CANDIDATES

Max studies to evaluate in find_eligible.

MCP_LOG_LEVEL

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

CT_API_BASE_URL

ClinicalTrials.gov API base URL.

CT_REQUEST_TIMEOUT_MS

Per-request timeout in milliseconds.

CT_MAX_PAGE_SIZE

Maximum page size cap.

CT_MAX_ELIGIBLE_CANDIDATES

Max studies to evaluate in find_eligible.

MCP_HTTP_HOST

The hostname for the HTTP server.

MCP_HTTP_PORT

The port to run the HTTP server on.

MCP_HTTP_ENDPOINT_PATH

The endpoint path for the MCP server.

MCP_AUTH_MODE

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

MCP_LOG_LEVEL

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

§03  MCP Quality Score  ·  methodology
freshness
25
completeness
10
installability
25
documentation
15
stability
10
§04  Alternatives in Search