A Model Context Protocol (MCP) server implementation that provides access to the AACT (Aggregate Analysis of ClinicalTrials.gov) database using the FastMCP framework. This server allows AI assistants to directly query clinical trial data from the ClinicalTrials.gov database.
list_tables
describe_table
{"table_name": "studies"}
read_query
{"query": "SELECT nct_id, brief_title FROM ctgov.studies LIMIT 5"}
append_insight
{"finding": "Phase 3 oncology trials have increased by 15% over the last 5 years"}
schema://database
memo://insights
DB_USER
: Your AACT database usernameDB_PASSWORD
: Your AACT database passwordfrom semantic_kernel import Kernel
from semantic_kernel.connectors.mcp import MCPStdioPlugin
## Create an AACT Clinical Trials MCP plugin
aact_mcp = MCPStdioPlugin(
name="aact",
description="Clinical Trials Database Plugin",
command="uvx",
args=["mcp-server-aact"],
env={
"DB_USER": "your_aact_username",
"DB_PASSWORD": "your_aact_password"
}
)
## Add to Semantic Kernel
kernel = Kernel()
kernel.add_plugin(aact_mcp)
Here are some example prompts to use with this plugin:
This server is built using:
MIT License
We welcome contributions! Please:
This project was inspired by and initially based on code from:
Thanks to these awesome projects for showing us the way! 🙌