Connector Β· Public clinical trial registry

ClinicalTrials.gov MCP Server & Agent Skill

Last updated

ibl.ai publishes a free ClinicalTrials.gov agent skill: a SKILL.md that teaches an AI agent to read ClinicalTrials.gov data and expose it as an MCP tool. Download it, connect your own ClinicalTrials.gov credentials, and run the agent on ibl.ai Agentic OS, where you own all the code and the data.

ClinicalTrials.gov is the NIH registry of clinical studies, holding each study's protocol, conditions, interventions, eligibility, locations, status and, where posted, results.

What is the ClinicalTrials.gov API, and what can an agent read from it?

Search studies with query, filter and sort parameters, fetch a study by NCT ID, read the data model metadata, search areas and enums, and get field statistics. Read-only.

  • API: ClinicalTrials.gov REST API v2 (REST (JSON or CSV, OpenAPI 3.0))
  • Access: Public, self-serve
  • Base URL: https://clinicaltrials.gov/api/v2/
  • Authentication: None (anonymous)

Open to anyone with no key or account. The OpenAPI specification is published at https://clinicaltrials.gov/api/oas/v2.

The OpenAPI specification defines no security scheme; requests need no credentials.

What can an agent read from ClinicalTrials.gov?

  • Studies β€” GET /studies searches with query.* (Essie syntax) and filter.* parameters; JSON or CSV.
  • Single study β€” GET /studies/{nctId} returns one study record.
  • Data model β€” GET /studies/metadata, /studies/search-areas and /studies/enums describe fields and values.
  • Statistics β€” GET /stats/size and /stats/field/values report record sizes and field value counts.
  • Version β€” GET /version returns the API version and data timestamp.

What can an agent write to ClinicalTrials.gov?

This skill only reads ClinicalTrials.gov data; it documents no write calls, so an agent built on it cannot change a ClinicalTrials.gov record.

Limits: pageSize defaults to 10 and is capped at 1,000 studies; page with nextPageToken, keeping the other parameters unchanged between pages.

Registry data is public, but an agent combining it with internal pipeline or competitive plans handles confidential business information.

How do I connect ClinicalTrials.gov to an AI agent over MCP?

We found no MCP server published by ClinicalTrials.gov or NLM as of December 2026.

The practical path is to host a small MCP server that wraps the ClinicalTrials.gov REST API v2, or to give the agent the calls directly with the SKILL.md below.

On ibl.ai an MCP connection is three records, and a working integration always needs all three:

  1. Register the server β€” POST …/mcp-servers/ with its URL, a transport (sse, websocket or streamable_http) and an auth_type of none, token or oauth2.
  2. Create a connection that holds the credential, scoped to the whole organization (platform), to a single agent, or to each user (user).
  3. Enable it on the agent β€” mcp-tool in tool_slugs and the server id in mcp_servers. Both lists are replaced, not merged, so read the settings first.

For an API key or a service credential, one token connection at platform scope serves the whole organization; scope a connection to a single agent when that agent needs narrower access than the rest.

The field reference is in MCP server connections, and the /iblai-api-agent-mcp skill runs all three steps from a coding agent.

What does the ClinicalTrials.gov agent skill do?

The ClinicalTrials.gov skill is one SKILL.md file named iblai-connect-clinicaltrials-gov. It gives an agent the auth conventions, what to read, which writes need a person's confirmation, the ibl.ai MCP wiring, example prompts and guardrails.

Download the ClinicalTrials.gov SKILL.md

Save it as .claude/skills/iblai-connect-clinicaltrials-gov/SKILL.md, or in your agent's skills folder. The ibl.ai platform skills it calls come from one install:

$ npx skills add iblai/base --all

This connector skill is a starting point maintained on ibl.ai, not part of the iblai/base repository.

It was checked against National Library of Medicine (NIH)'s documentation on October 20, 2026. Test it against your own ClinicalTrials.gov setup before you rely on it.

What can I ask a ClinicalTrials.gov agent to do?

  • β€œList recruiting Phase 3 trials for HER2-positive breast cancer in Germany”
  • β€œShow the primary endpoints and enrollment for this NCT ID”
  • β€œWhich sponsors registered obesity trials with GLP-1 drugs in the past year?”
  • β€œExport completed trials with posted results for this condition as CSV”

How do I run a ClinicalTrials.gov agent on ibl.ai?

Agentic OS is where the agent runs on ibl.ai: it holds the ClinicalTrials.gov MCP connection, the model the agent uses, its instructions and its conversation history.

On ibl.ai you own all the code and the data, the platform source code included, run it model-agnostic across any LLM, and pay with no per-seat pricing β€” so you can deploy anywhere, from your own cloud to a fully air-gapped network.

Which ibl.ai agents work with ClinicalTrials.gov data?

Which ibl.ai platform skills does a ClinicalTrials.gov agent use?

What else should I know before connecting ClinicalTrials.gov to an AI agent?

Is there an official ClinicalTrials.gov MCP server?

Not one that works with ClinicalTrials.gov today. We found no MCP server published by ClinicalTrials.gov or NLM as of December 2026.

The SKILL.md on this page gives an agent the integration directly, and any MCP server you host can be registered on ibl.ai.

Who can get ClinicalTrials.gov API credentials?

Open to anyone with no key or account. The OpenAPI specification is published at https://clinicaltrials.gov/api/oas/v2.

Does ClinicalTrials.gov data leave my infrastructure when an ibl.ai agent uses it?

On ibl.ai, you own all the code and the data. Self-hosted in your cloud or data center, the agent, its MCP connections and its conversation logs stay inside your perimeter.

Because the platform is model-agnostic, you can point the agent at a model you host, so ClinicalTrials.gov records need not reach a third-party model provider.

Is the ClinicalTrials.gov agent skill free to use?

Yes. The SKILL.md is a free download with no sign-up. It assumes you already have ClinicalTrials.gov credentials, and your agreement with National Library of Medicine (NIH) still governs how you use its API.

Which other data sources can an AI agent connect to alongside ClinicalTrials.gov?

Which other Life Sciences systems have a connector?

Every connector, grouped by sector, is on the connectors hub.