Search & web / clinicaltrialsgov-mcp-server

clinicaltrialsgov-mcp-server

io.github.cyanheads/clinicaltrialsgov-mcp-server · v2.11.2

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

Description supplied by the publisher in the MCP Registry. We have not tested this server.

Ranks #132 of 817 Search & web servers on Socketlist by score, with 100 GitHub stars and a last code push 19d ago.

Install

npx -y clinicaltrialsgov-mcp-server
npx -y clinicaltrialsgov-mcp-server

Assembled from the package metadata in the official MCP Registry (including any subcommand or flag the publisher lists). Some publishers do not list the subcommand that starts MCP mode, so confirm the command in the README, along with any required configuration and credentials, before connecting it to real data.

Offers a hosted remote endpoint: https://clinicaltrials.caseyjhand.com/mcp (streamable-http). No local install needed.

Connect clinicaltrialsgov-mcp-server to Claude Code, Cursor or VS Code

Built from what the publisher declared in the official MCP Registry (the launch command above). We have not run this server. Replace anything in <angle brackets>, and keep keys and tokens in your environment, not in a shared file.

Claude Code

Run in a terminal. Adds the server at local scope; add --scope project or --scope user to share it. Claude Code setup guide.

claude mcp add --transport stdio clinicaltrialsgov-mcp-server -- npx -y clinicaltrialsgov-mcp-server

.mcp.json (Claude Code project scope, VS Code with Copilot)

Put this in a .mcp.json file at the project root. VS Code and .mcp.json guide.

{
  "mcpServers": {
    "clinicaltrialsgov-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "clinicaltrialsgov-mcp-server"
      ]
    }
  }
}

Cursor

Put this in .cursor/mcp.json in the project, or ~/.cursor/mcp.json for every project. Cursor mcp.json guide.

{
  "mcpServers": {
    "clinicaltrialsgov-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "clinicaltrialsgov-mcp-server"
      ]
    }
  }
}

Claude Code, hosted endpoint (no local install)

The publisher also lists a hosted endpoint. If it uses OAuth, run /mcp inside Claude Code to sign in. Claude Code setup guide.

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

Configuration the publisher declares

Environment variableRequiredSecretPublisher's note
CT_API_BASE_URLNoNoClinicalTrials.gov API base URL.
CT_REQUEST_TIMEOUT_MSNoNoTimeout 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
CT_MAX_PAGE_SIZENoNoMost studies one clinicaltrials_search_studies page returns; an integer of at least 1, values above 1000 clamp to 1000.
MCP_LOG_LEVELNoNoSets the minimum log level for output (e.g., 'debug', 'info', 'warn').

"Required" and "secret" are the publisher's own flags in the registry, and many publishers leave them unset, so check the README too.

Allowlist entry

If your organisation restricts MCP servers, this is the entry an admin adds to allowedMcpServers in Claude Code managed settings or a GitHub Copilot enterprise managed-settings.json. A serverCommand entry must match the configured command and arguments exactly, so change both together. The serverUrl entry covers the hosted endpoint.

{
  "allowedMcpServers": [
    {
      "serverCommand": [
        "npx",
        "-y",
        "clinicaltrialsgov-mcp-server"
      ]
    },
    {
      "serverUrl": "https://clinicaltrials.caseyjhand.com/mcp"
    }
  ]
}

How allowlists work in each client: MCP server allowlists for Claude Code, GitHub Copilot and Cursor. Before you connect it to real data: 10 security checks for MCP servers.

Signals

GitHub stars100
npm weekly downloads1,067
Last push19d ago
LicenceApache-2.0
Open issues4
SECURITY.mdNo
LanguageTypeScript
Latest version published2026-11-09

Signals captured from GitHub, npm and the official MCP Registry on November 11, 2026. See the scoring method.

Similar servers compare all →

brave-search-mcp-server

Score 75

Brave Search MCP Server: web results, images, videos, rich results, AI summaries, and more.

★ 1,567MITpushed 18d ago
Search & webAI & media

LinkupPlatform-linkup-mcp-server

Score 71

Search the web in real time to get trustworthy, source-backed answers. Find the latest news and co…

★ 29MITpushed 27d ago
Search & webRemote

Five MCP servers worth your time, every week

The Plug Weekly is a free email picked from these scores. About a 3-minute read. Unsubscribe any time.

Subscribe free