MCP directory
CM

Clinicaltrialsgov Mcp Server

by github.com/cyanheads · v2.11.4 · updated Nov 21, 2026

Search ClinicalTrials.gov: find studies, retrieve results, match patients to candidate trials.

Remotenpm

Connect to the hosted server

Add this URL as a custom connector in your AI client.

Server URL

https://clinicaltrials.caseyjhand.com/mcp

Claude Code

claude mcp add --transport http clinicaltrialsgov-mcp-server https://clinicaltrials.caseyjhand.com/mcp

Run it locally

Install the package and point your AI client at it.

Environment variables

  • CT_API_BASE_URL

    ClinicalTrials.gov API base URL.

  • CT_REQUEST_TIMEOUT_MS

    Timeout in milliseconds for each attempt at a ClinicalTrials.gov request; a positive integer. An attempt ends sooner when its tool call or resource read runs out of its 50-second budget, which covers every request, retry, and wait the call makes.

  • CT_MAX_PAGE_SIZE

    Most studies one clinicaltrials_search_studies page returns; an integer of at least 1, values above 1000 clamp to 1000.

  • MCP_LOG_LEVEL

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

Environment variables

  • MCP_TRANSPORT_TYPE

    Selects the HTTP transport.

  • CT_API_BASE_URL

    ClinicalTrials.gov API base URL.

  • CT_REQUEST_TIMEOUT_MS

    Timeout in milliseconds for each attempt at a ClinicalTrials.gov request; a positive integer. An attempt ends sooner when its tool call or resource read runs out of its 50-second budget, which covers every request, retry, and wait the call makes.

  • CT_MAX_PAGE_SIZE

    Most studies one clinicaltrials_search_studies page returns; an integer of at least 1, values above 1000 clamp to 1000.

  • 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').

More from github.com/cyanheads

More MCP servers