Integrates with ClinicalTrials.gov REST API to search clinical trials by conditions, interventions, locations, and status, plus retrieve detailed study information by NCT ID with automatic data cleaning and local backup storage.
Choose the Required ENV Values
- Review your project's JsonConfig or the FastMCP connection interface to see if you need to configure any environment variables beyond the defaults. Common required variables include:
MCP_AUTH_SECRET_KEY
(for JWT authentication; minimum 32 characters)
- Other variables are optional or for advanced usage, like
MCP_TRANSPORT_TYPE
, MCP_HTTP_PORT
, etc.
Obtain/Create the Required Values
- If
MCP_AUTH_SECRET_KEY
is needed for HTTP/JWT authentication:
- Generate a secret key (can be any secure random string, minimum 32 characters).
- You can use an online tool, password manager, or
openssl
command:
openssl rand -base64 32
- Copy this secret key—you'll need to enter it in the next step.
Access the FastMCP Connection Interface
- Click the "Install Now" button for the ClinicalTrials.gov MCP server.
- In the FastMCP connection interface, fill in the environment variable fields as required:
- For example, set
MCP_AUTH_SECRET_KEY
to your generated secret key.
- All other variables will use their default values unless you need to customize transport, ports, or logging.
Save and Test the Connection
- Confirm that the environment values are saved in the FastMCP interface.
- Test the connection to ensure the ClinicalTrials.gov server integration is working.
Note: No special API keys, user tokens, or credentials are required for basic public ClinicalTrials.gov access. Only the optional authentication secret is required if you want to enable HTTP authentication. All other variables are optional and have sensible defaults.