Harvard ClinicalTrials MCP Server for LlamaIndexGive LlamaIndex instant access to 16 tools to Get Api Version, Get Study, Get Study Results, and more
LlamaIndex specializes in data-aware AI agents that connect LLMs to structured and unstructured sources. Add Harvard ClinicalTrials as an MCP tool provider through Vinkius and your agents can query, analyze, and act on live data alongside your existing indexes.
Ask AI about this MCP Server for LlamaIndex
The Harvard ClinicalTrials MCP Server for LlamaIndex is a standout in the Data Analytics category — giving your AI agent 16 tools to work with, ready to go from day one.
Vinkius delivers Streamable HTTP and SSE to any MCP client
import asyncio
from llama_index.tools.mcp import BasicMCPClient, McpToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
async def main():
# Your Vinkius token. get it at cloud.vinkius.com
mcp_client = BasicMCPClient("https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp")
mcp_tool_spec = McpToolSpec(client=mcp_client)
tools = await mcp_tool_spec.to_tool_list_async()
agent = FunctionAgent(
tools=tools,
llm=OpenAI(model="gpt-4o"),
system_prompt=(
"You are an assistant with access to Harvard ClinicalTrials. "
"You have 16 tools available."
),
)
response = await agent.run(
"What tools are available in Harvard ClinicalTrials?"
)
print(response)
asyncio.run(main())
* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
About Harvard ClinicalTrials MCP Server
Connect to the ClinicalTrials.gov API v2 — the largest database of clinical studies worldwide, maintained by the U.S. National Library of Medicine.
LlamaIndex agents combine Harvard ClinicalTrials tool responses with indexed documents for comprehensive, grounded answers. Connect 16 tools through Vinkius and query live data alongside vector stores and SQL databases in a single turn. ideal for hybrid search, data enrichment, and analytical workflows.
What you can do
- Study Search — Search 400K+ clinical trials from 220+ countries
- Condition Filter — Find trials for specific diseases (cancer, diabetes, Alzheimer's)
- Intervention Filter — Search by drug, device, or therapy name
- Sponsor Search — Find trials by organization (Pfizer, NIH, Roche)
- Phase Filter — Filter by Phase 1-4 to track drug development stages
- Recruiting — Find trials currently enrolling participants
- Location — Search by city or country for accessible trials
- FDA Regulated — Filter for FDA-regulated drug and device trials
- Pediatric — Find trials including children
- Rare Diseases — Discover research for orphan conditions
- Results — Get outcome data from completed studies
The Harvard ClinicalTrials MCP Server exposes 16 tools through the Vinkius. Connect it to LlamaIndex in under two minutes — credentials fully managed, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
All 16 Harvard ClinicalTrials tools available for LlamaIndex
When LlamaIndex connects to Harvard ClinicalTrials through Vinkius, your AI agent gets direct access to every tool listed below — spanning clinical-trials, medical-research, drug-development, and more. Every call runs in a secure, isolated environment with full audit visibility. Beyond a simple connection, you get real-time monitoring of agent activity, enterprise governance, and optimized token usage.
Get api version on Harvard ClinicalTrials
gov API version and the timestamp of the most recent data update. Useful for verifying data currency and API availability. Get API version and data timestamp
Get study on Harvard ClinicalTrials
g. "NCT04368728"). Returns title, status, phase, enrollment, conditions, interventions, eligibility criteria, sponsor, and study locations. Get clinical trial details by NCT ID
Get study results on Harvard ClinicalTrials
Not all trials report results — this is most useful for completed Phase 2-4 studies. Get primary outcome results for a trial
Get study timeline on Harvard ClinicalTrials
Essential for understanding the progress and currency of a study. Get the complete timeline of a clinical trial
Search by condition on Harvard ClinicalTrials
Examples: "diabetes", "breast cancer", "Alzheimer disease", "COVID-19", "depression", "hypertension". Search trials by medical condition
Search by intervention on Harvard ClinicalTrials
Examples: "pembrolizumab", "metformin", "radiation therapy", "cognitive behavioral therapy". Search trials by drug or treatment
Search by location on Harvard ClinicalTrials
Essential for finding trials accessible to patients in a particular area. Search trials by geographic location
Search by phase on Harvard ClinicalTrials
Phase values: "PHASE1", "PHASE2", "PHASE3", "PHASE4", "EARLY_PHASE1". Phase 3 trials are the largest and most definitive, while Phase 1 trials focus on safety. Search trials by study phase
Search by sponsor on Harvard ClinicalTrials
Examples: "Pfizer", "National Cancer Institute", "Roche", "Novartis", "NIH". Search trials by sponsoring organization
Search completed on Harvard ClinicalTrials
Completed trials are more likely to have published results and outcomes data. Search completed clinical trials
Search device trials on Harvard ClinicalTrials
Covers diagnostic devices, surgical tools, implants, and digital health technologies. Search medical device clinical trials
Search fda regulated on Harvard ClinicalTrials
S. Food and Drug Administration. These trials follow the most rigorous regulatory standards. Search FDA-regulated drug trials
Search pediatric on Harvard ClinicalTrials
Essential for pediatricians, child health researchers, and parents seeking trials for children. Search pediatric clinical trials
Search rare diseases on Harvard ClinicalTrials
Examples: "cystic fibrosis", "sickle cell disease", "Huntington disease", "amyotrophic lateral sclerosis". Search rare disease clinical trials
Search recruiting on Harvard ClinicalTrials
Essential for patients seeking to enroll in trials or researchers tracking active studies. Search for currently recruiting studies
Search studies on Harvard ClinicalTrials
gov database of over 400,000 clinical studies from 200+ countries. Returns NCT IDs, titles, status, phases, sponsors, conditions, interventions, and locations. Search 400K+ clinical trials worldwide
Connect Harvard ClinicalTrials to LlamaIndex via MCP
Follow these steps to wire Harvard ClinicalTrials into LlamaIndex. The entire setup takes under two minutes — your credentials stay safe behind Vinkius.
Install dependencies
pip install llama-index-tools-mcp llama-index-llms-openaiReplace the token
[YOUR_TOKEN_HERE] with your Vinkius tokenRun the agent
agent.py and run: python agent.pyExplore tools
Why Use LlamaIndex with the Harvard ClinicalTrials MCP Server
LlamaIndex provides unique advantages when paired with Harvard ClinicalTrials through the Model Context Protocol.
Data-first architecture: LlamaIndex agents combine Harvard ClinicalTrials tool responses with indexed documents for comprehensive, grounded answers
Query pipeline framework lets you chain Harvard ClinicalTrials tool calls with transformations, filters, and re-rankers in a typed pipeline
Multi-source reasoning: agents can query Harvard ClinicalTrials, a vector store, and a SQL database in a single turn and synthesize results
Observability integrations show exactly what Harvard ClinicalTrials tools were called, what data was returned, and how it influenced the final answer
Harvard ClinicalTrials + LlamaIndex Use Cases
Practical scenarios where LlamaIndex combined with the Harvard ClinicalTrials MCP Server delivers measurable value.
Hybrid search: combine Harvard ClinicalTrials real-time data with embedded document indexes for answers that are both current and comprehensive
Data enrichment: query Harvard ClinicalTrials to augment indexed data with live information before generating user-facing responses
Knowledge base agents: build agents that maintain and update knowledge bases by periodically querying Harvard ClinicalTrials for fresh data
Analytical workflows: chain Harvard ClinicalTrials queries with LlamaIndex's data connectors to build multi-source analytical reports
Example Prompts for Harvard ClinicalTrials in LlamaIndex
Ready-to-use prompts you can give your LlamaIndex agent to start working with Harvard ClinicalTrials immediately.
"Find recruiting Phase 3 trials for breast cancer immunotherapy"
"Search for Alzheimer's disease trials sponsored by NIH in Boston"
"Find pediatric clinical trials for cystic fibrosis"
Troubleshooting Harvard ClinicalTrials MCP Server with LlamaIndex
Common issues when connecting Harvard ClinicalTrials to LlamaIndex through Vinkius, and how to resolve them.
BasicMCPClient not found
pip install llama-index-tools-mcpHarvard ClinicalTrials + LlamaIndex FAQ
Common questions about integrating Harvard ClinicalTrials MCP Server with LlamaIndex.
How does LlamaIndex connect to MCP servers?
Can I combine MCP tools with vector stores?
Does LlamaIndex support async MCP calls?
Explore More MCP Servers
View all →
Odoo Helpdesk
7 toolsCreate and manage support tickets, track SLAs, organize helpdesk teams — Odoo Helpdesk through natural conversation.

watsonx Discovery
6 toolsSearch and analyze complex data with AI-powered insights on IBM watsonx Discovery — the cognitive search engine.

Dagger (Programmable CI)
10 toolsBuild, test, and deploy using Dagger's programmable CI engine. Execute GraphQL queries, manage containers, and orchestrate pipelines directly from your AI agent.

Userback
6 toolsCollect visual feedback from users with annotated screenshots, screen recordings, and bug reports embedded in your product.
