Clinicaltrialsgov MCP Server
Clinicaltrialsgov MCP Server is an MCP server that adds tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Search ClinicalTrials.gov: find studies, retrieve results, match patients to candidate trials. It has 101 GitHub stars, is released under the Apache-2.0 license and runs locally with npx -y clinicaltrialsgov-mcp-server.
github.com/cyanheads/clinicaltrialsgov-mcp-server (opens in a new tab)
Data as of from the GitHub API and the official MCP registry; description from the project's repository. Report an error
Install Clinicaltrialsgov MCP Server
Generated from the server's MCP registry entry. Replace your-value with your own values.
Claude Desktop
{
"mcpServers": {
"clinicaltrialsgov-mcp-server": {
"command": "npx",
"args": [
"-y",
"clinicaltrialsgov-mcp-server"
],
"env": {
"CT_API_BASE_URL": "your-value",
"CT_REQUEST_TIMEOUT_MS": "your-value",
"CT_MAX_PAGE_SIZE": "your-value",
"MCP_LOG_LEVEL": "your-value"
}
}
}
}Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.
Claude Code
claude mcp add --env CT_API_BASE_URL=your-value --env CT_REQUEST_TIMEOUT_MS=your-value --env CT_MAX_PAGE_SIZE=your-value --env MCP_LOG_LEVEL=your-value --transport stdio clinicaltrialsgov-mcp-server -- npx -y clinicaltrialsgov-mcp-serverCursor
{
"mcpServers": {
"clinicaltrialsgov-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"clinicaltrialsgov-mcp-server"
],
"env": {
"CT_API_BASE_URL": "your-value",
"CT_REQUEST_TIMEOUT_MS": "your-value",
"CT_MAX_PAGE_SIZE": "your-value",
"MCP_LOG_LEVEL": "your-value"
}
}
}
}Project file; use ~/.cursor/mcp.json to enable it in every project.
VS Code
{
"servers": {
"clinicaltrialsgov-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"clinicaltrialsgov-mcp-server"
],
"env": {
"CT_API_BASE_URL": "your-value",
"CT_REQUEST_TIMEOUT_MS": "your-value",
"CT_MAX_PAGE_SIZE": "your-value",
"MCP_LOG_LEVEL": "your-value"
}
}
}
}Claude Code (remote)
claude mcp add --transport http clinicaltrialsgov-mcp-server "https://clinicaltrials.caseyjhand.com/mcp"The same server is also hosted as a remote MCP endpoint, so nothing runs on your machine.
Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).
Environment variables
Variables the server reads at startup.
| Name | Required | Description |
|---|---|---|
CT_API_BASE_URL | No | ClinicalTrials.gov API base URL. |
CT_REQUEST_TIMEOUT_MS | No | 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… |
CT_MAX_PAGE_SIZE | No | Most studies one clinicaltrialssearchstudies page returns; an integer of at least 1, values above 1000 clamp to 1000. |
MCP_LOG_LEVEL | No | Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). |
Tools (7)
Parsed from the Tools section of the README; check the repository for the current list.
clinicaltrials_search_studiesSearch studies with full-text and field-specific queries, status/phase/geographic filters, pagination, sorting, and…
clinicaltrials_get_study_recordFetch a single study by NCT ID — full protocol record with optional location/outcome/reference caps
clinicaltrials_get_study_countFast total study count for a query, without fetching data
clinicaltrials_get_field_valuesDiscover valid values for API fields, with per-value study counts
clinicaltrials_get_field_definitionsResolve valid field names — keyword search, path drill-down, or top-level overview
clinicaltrials_get_study_resultsFetch posted results — outcomes, adverse events, participant flow, baseline — for completed studies
clinicaltrials_find_eligibleMatch patient demographics and conditions to candidate recruiting trials, without checking inclusion/exclusion criteria
About Clinicaltrialsgov MCP Server
clinicaltrialsgov-mcp-server Search ClinicalTrials.gov trials, retrieve study details and results, and match patients to candidate trials via MCP. STDIO or Streamable HTTP. 7 Tools • 1 Resource • 1 Prompt • 1 Skill
- mcp
- mcp-server
- ai-agent
- clinical-trials
- eligibility-criteria
- health-tech
- model-context-protocol
- patient-matching
- typescript
- clinicaltrials-gov
Similar MCP servers
More other MCP servers
Timepicker UI MCP
pglejzer/timepicker-ui
MCP server for timepicker-ui: options, events, themes, public API, snippets and time validation.
Active · last commit Nov 11, 2026
OtherTypeScript熔岩 Lava · A股机构/大V消息面热度监测
dustinliang666-blip/lava-mcp
查A股个股/概念最近被多少机构/大V提及、热度高不高。只读数据,机构/大V用匿名ID。量化交易必备。.
Too new to judge · created Oct 27, 2026
OtherOpen Library
8enSmith/mcp-open-library
Search books and authors on the Internet Archive's Open Library.
Active · last commit Oct 22, 2026
OtherTypeScriptKorea Tax Calculator
UpstageAI/korean-tax-calc-mcp
Korean tax calculator (140 tools, statute-cited): CIT, VAT, withholding, expats, transfer pricing.
Too new to judge · created Oct 7, 2026
OfficialOtherPythonSolidWorks MCP
andrewbartels1/SolidworksMCP-python
Drive SolidWorks from AI agents: parts, assemblies, drawings and export over the COM API.
Active · last commit Nov 16, 2026
OtherPythonArm MCP Server
arm/mcp
Official Arm MCP server for code migration, optimization, and Arm architecture guidance.
Active · last commit Nov 14, 2026
OfficialOtherPython
How do I install the Clinicaltrialsgov MCP Server MCP server?
Add the command npx -y clinicaltrialsgov-mcp-server to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.
Is Clinicaltrialsgov MCP Server free?
The server is open source under the Apache-2.0 license, so running it is free. It does not declare any required API key.
Is Clinicaltrialsgov MCP Server actively maintained?
The most recent commit was on Nov 13, 2026. The latest release is v2.11.3, published Nov 13, 2026. appsgit only lists MCP servers with a commit in the last six months.