Skip to main content
Glama

ClinicalTrials.gov MCP Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOGS_DIRNoDirectory for log file storage (if LOG_OUTPUT_MODE=file)logs/
NODE_ENVNoRuntime environment (development, production)development
MCP_AUTH_MODENoAuthentication mode for HTTP: jwt or oauthjwt
MCP_HTTP_HOSTNoHost address for the HTTP server (if MCP_TRANSPORT_TYPE=http)127.0.0.1
MCP_HTTP_PORTNoPort for the HTTP server (if MCP_TRANSPORT_TYPE=http)3010
MCP_LOG_LEVELNoLogging level (debug, info, notice, warning, error, crit, alert, emerg)debug
LOG_OUTPUT_MODENoLogging output mode: file or stdoutfile
MCP_TRANSPORT_TYPENoTransport mechanism: stdio or httpstdio
MCP_ALLOWED_ORIGINSNoComma-separated list of allowed origins for CORS (if MCP_TRANSPORT_TYPE=http)
MCP_AUTH_SECRET_KEYNoRequired for jwt auth. Minimum 32-character secret key for JWT authentication
CLINICALTRIALS_DATA_PATHNoDirectory for caching ClinicalTrials.gov API datadata/

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
clinicaltrials_get_study

Fetches one or more clinical studies from ClinicalTrials.gov by their NCT IDs. Returns either complete study data or concise summaries for each.

clinicaltrials_list_studies

Searches for clinical studies using a combination of query terms and filters. Supports pagination, sorting, and geographic filtering.

clinicaltrials_analyze_trends

Performs a statistical analysis on a set of clinical trials, aggregating data by status, country, sponsor, or phase. Use specific query parameters to refine the analysis and filter the studies included in the analysis. The tool can handle up to 5000 studies per analysis.

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/cyanheads/clinicaltrialsgov-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server