Clinicaltrialsgov MCP Server
by cyanheadsio.github.cyanheads/clinicaltrialsgov-mcp-serverv2.9.11
Search ClinicalTrials.gov — find studies, retrieve results, match patients to eligible trials.
context tax
queued
security
queued
cold start
queued
freshness
Active5d ago
Install Clinicaltrialsgov MCP server
Install in Claude Code
claude mcp add clinicaltrialsgov -- npx -y clinicaltrialsgov-mcp-serverInstall in Cursor
{
"mcpServers": {
"clinicaltrialsgov": {
"command": "npx",
"args": [
"-y",
"clinicaltrialsgov-mcp-server"
]
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"clinicaltrialsgov": {
"command": "npx",
"args": [
"-y",
"clinicaltrialsgov-mcp-server"
]
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"clinicaltrialsgov": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"clinicaltrialsgov-mcp-server"
]
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"clinicaltrialsgov": {
"command": "npx",
"args": [
"-y",
"clinicaltrialsgov-mcp-server"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| 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. |
| MCP_LOG_LEVEL | — | — | Sets the minimum log level for output (e.g., 'debug', 'info', 'warn'). |
| MCP_TRANSPORT_TYPE | — | — | Selects the HTTP transport. |
| 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'. |
Remote endpoints
- streamable-http
https://clinicaltrials.caseyjhand.com/mcp
Freshness
Active — last maintenance signal 5d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-10-05 · 5d ago · GitHub
Latest release
2026-10-05 · 5d ago · GitHub · v2.9.11
Package published
no data · npm/PyPI
Registry entry updated
2026-10-05 · 5d ago · official registry · v2.9.11
FAQ
›How do I install the Clinicaltrialsgov MCP server in Claude Code?
Run: claude mcp add clinicaltrialsgov -- npx -y clinicaltrialsgov-mcp-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Clinicaltrialsgov require an API key?
No required environment variables are declared in its published metadata.
›Can I use Clinicaltrialsgov as a remote (hosted) MCP server?
Yes — it offers both a hosted endpoint and a local stdio package.
›Is Clinicaltrialsgov in the official MCP registry?
Yes, as io.github.cyanheads/clinicaltrialsgov-mcp-server.