AACT Clinical Trials logo

AACT Clinical Trials

Organization
navisbio

Query the AACT (ClinicalTrials.gov) database directly from Claude. Explore 70+ tables of clinical trial data — studies, interventions, outcomes, sponsors, facilities — using read-only SQL with…

Publishernavisbio
RepositoryAACT_clinicaltrials_MCP
LanguagePython
Forks
19
Stars
20
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    AACT Clinical Trials exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    20 stars and 19 forks from the linked repository.

AACT Clinical Trials MCP Server

Query the AACT (ClinicalTrials.gov) database directly from Claude. Explore 70+ tables of clinical trial data — studies, interventions, outcomes, sponsors, facilities — using read-only SQL with buffered pagination.

Why AACT over the ClinicalTrials.gov API?

The ClinicalTrials.gov API returns one JSON record per trial — useful for quick lookups, but awkward for analytics. Want the average duration of Phase 2 NSCLC trials from 2020-2025? With the API you'd filter trials, extract dates from each JSON record, then compute durations client-side. With AACT, that's a single SQL query.

A structured PostgreSQL database makes it far easier to aggregate, combine, and summarize clinical trial data in any way you need. And for AI-assisted analysis, SQL is a standard that LLMs handle extremely well — fewer mistakes, less context to manage, better performance, and lower cost compared to parsing bespoke API responses.

Note: This is an independent, third-party integration. It is not affiliated with or endorsed by the Clinical Trials Transformation Initiative (CTTI) or Duke University. However, we released a case study with CTTI on integrating their database with Claude - see AACT case study.

Tools

ToolDescription
database_infoConfirm database connection, server time, and data currency
list_tablesDiscover all available tables with approximate row counts
describe_tableInspect column names, types, distinct counts, and sample values
get_column_valuesGet distinct values for a column with counts — essential before filtering
search_columnsFind columns by keyword across all tables (e.g. masking -> designs.masking)
read_queryExecute a SELECT, CTE, or EXPLAIN query with buffered results and preview
fetch_rowsPage through buffered query results without re-querying

All tables join on nct_id.

Setup

  1. Create a free account at https://aact.ctti-clinicaltrials.org/users/sign_up
  2. Install the plugin (see options below)
  3. Enter your AACT credentials when prompted

Installation

Option 1: Claude Desktop Plugin (recommended)

Download the latest .mcpb file from Releases and open it in Claude Desktop. You'll be prompted for your AACT credentials.

Option 2: Published package

Add to your claude_desktop_config.json (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):

json
{
  "mcpServers": {
    "aact": {
      "command": "uvx",
      "args": ["mcp-server-aact"],
      "env": {
        "DB_USER": "your_username",
        "DB_PASSWORD": "your_password"
      }
    }
  }
}

Option 3: Docker

json
{
  "mcpServers": {
    "aact": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "--env", "DB_USER=your_username",
        "--env", "DB_PASSWORD=your_password",
        "navisbio/mcp-server-aact:latest"
      ]
    }
  }
}

Option 4: From source

bash
git clone https://github.com/navisbio/mcp-server-aact.git
cd mcp-server-aact
uv sync
json
{
  "mcpServers": {
    "aact": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/mcp-server-aact", "mcp-server-aact"],
      "env": {
        "DB_USER": "your_username",
        "DB_PASSWORD": "your_password"
      }
    }
  }
}

Example Prompts

1. Competitive landscape analysis

"Who are the top 10 sponsors of Phase 3 Alzheimer's disease trials? Break down by trial status."

The server will discover relevant tables, check enum values for phase and status, then build a query joining studies, conditions, and sponsors.

2. Drug pipeline search

"Find all actively recruiting Phase 2 and Phase 3 trials for pembrolizumab in non-small cell lung cancer. Show NCT ID, title, enrollment, and lead sponsor."

Uses get_column_values to confirm phase format (PHASE2, PHASE3), then queries across studies, browse_interventions, and conditions.

3. Endpoint analysis

"What are the most common primary outcome measures in completed Phase 3 type 2 diabetes trials?"

Joins studies with outcomes to analyze endpoint patterns, grouped by outcome measure type.

4. Geographic distribution

"How many clinical trial sites does a typical rare disease trial have? Show the top countries by site count."

Queries the facilities table joined with conditions to map trial geography.

Privacy

This server is read-only and does not collect or store any personal data. See PRIVACY.md for details.

Troubleshooting

Connection or authentication errors

  • Verify your AACT credentials at https://aact.ctti-clinicaltrials.org/users/sign_in
  • The AACT database undergoes weekly maintenance (typically weekends) — try again later if the connection is refused
  • Ensure DB_USER and DB_PASSWORD are set correctly in your config

spawn uvx ENOENT error

The system cannot find uvx. Use the full path:

json
{
  "mcpServers": {
    "aact": {
      "command": "/Users/username/.local/bin/uvx",
      "args": ["mcp-server-aact"],
      "env": {
        "DB_USER": "your_username",
        "DB_PASSWORD": "your_password"
      }
    }
  }
}

Contributing

License

MIT

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "CTGOV-MCP": {
      "command": "uvx",
      "args": [
        "mcp-server-aact"
      ],
      "env": {
        "DB_USER": "USERNAME",
        "DB_PASSWORD": "PASSWORD"
      }
    }
  }
}

Use AACT Clinical Trials MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once AACT Clinical Trials is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add AACT Clinical Trials as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the AACT Clinical Trials MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "aact-clinical-trials": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-server-aact"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the AACT Clinical Trials MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the AACT Clinical Trials MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use AACT Clinical Trials to help me with this task?
AACT Clinical Trials
Sure. I read it.
Here is what I found using AACT Clinical Trials.

Frequently asked questions

What is the AACT Clinical Trials MCP server used for?

AACT Clinical Trials is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use AACT Clinical Trials MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use AACT Clinical Trials with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use AACT Clinical Trials MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With AACT Clinical Trials connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect AACT Clinical Trials MCP to TypingMind?

AACT Clinical Trials runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does AACT Clinical Trials MCP provide in TypingMind?

AACT Clinical Trials exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use AACT Clinical Trials MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If AACT Clinical Trials requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇