Clinicaltrialsgov MCP Server

Search ClinicalTrials.gov trials, retrieve study details and results, and match patients to eligible trials via MCP. STDIO or Streamable HTTP.

Remote serverstreamable-http

What is the Clinicaltrialsgov MCP server?

Connect Clinicaltrialsgov to Claude, Cursor or any other MCP client and it stops being a tab you switch to. Search ClinicalTrials.gov trials, retrieve study details and results, and match patients to eligible trials via MCP. STDIO or Streamable HTTP. The clinicaltrialsgov mcp server is what makes that connection.

What the server does

Seven tools for searching, discovering, analyzing, and matching clinical trials:

  • Declarative tool/resource/prompt definitions with Zod schemas and format functions
  • Unified error handling — handlers throw, framework catches and classifies
  • Dual transport: stdio and Streamable HTTP from the same codebase
  • Pluggable auth (none, jwt, oauth) for HTTP transport
  • Structured logging with optional OpenTelemetry tracing
  • Type-safe client for the ClinicalTrials.gov REST API v2

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • clinicaltrials_search_studies — Primary search tool with full ClinicalTrials.gov query capabilities
  • clinicaltrials_get_study_results — The clinicaltrials_get_study_results tool exposed by this server
  • clinicaltrials_find_eligible — The clinicaltrials_find_eligible tool exposed by this server
  • Prerequisites — The Prerequisites tool exposed by this server
  • Installation — The Installation tool exposed by this server

Credentials and setup notes

Configuration is passed through the environment: MCP_TRANSPORT_TYPE, CT_API_BASE_URL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Installation

Because this one is hosted, setup is mostly authentication — you point your client at the endpoint and approve access. Nothing runs on your machine, so there is no runtime to keep patched.

Where it fits

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Clinicaltrialsgov's toolset — clinicaltrials_search_studies, clinicaltrials_get_study_results, clinicaltrials_find_eligible and 2 more — is a fair guide to whether it matches your workflow. It is maintained by cyanheads; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Worth knowing first

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
clinicaltrials_search_studiesPrimary search tool with full ClinicalTrials.gov query capabilities.
clinicaltrials_get_study_resultsThe clinicaltrials_get_study_results tool exposed by this server.
clinicaltrials_find_eligibleThe clinicaltrials_find_eligible tool exposed by this server.
PrerequisitesThe Prerequisites tool exposed by this server.
InstallationThe Installation tool exposed by this server.

How to install the Clinicaltrialsgov MCP server

{
  "mcpServers": {
    "clinicaltrialsgov-mcp-server": {
      "type": "streamable-http",
      "url": "https://clinicaltrials.caseyjhand.com/mcp"
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
MCP_TRANSPORT_TYPEConfiguration value read at startup.Optional
CT_API_BASE_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use Clinicaltrialsgov to clinicaltrials search studies.
  • Use Clinicaltrialsgov to clinicaltrials get study results.
  • Use Clinicaltrialsgov to clinicaltrials find eligible.

Frequently asked questions

It connects Clinicaltrialsgov to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (clinicaltrials_search_studies, clinicaltrials_get_study_results, clinicaltrials_find_eligible, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Clinicaltrialsgov directly.