[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [CTIS clinical trial search](https://spiral.ai/integrations/opencode/ctis-clinical-trial-search)

# How to Use CTIS clinical trial search in opencode

Find trial summaries from EMA’s EU Clinical Trials Information System, including sponsors, medicines, phases, dates, and country statuses. Use it to build a shortlist before reading a full trial record.

|  |  |
| --- | --- |
| Model | CTIS clinical trial search |
| Available through | Alexandria |
| Category | Health |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with CTIS clinical trial search in opencode

- Use CTIS clinical trial search to find semaglutide trials and add a table to this project with trial number, title, sponsor, phase, and country statuses.
- Use CTIS clinical trial search to find Novo Nordisk trials and write a CSV in this project with sponsors, medicines, phases, and planned EEA enrollment.
- Use CTIS clinical trial search to find pembrolizumab trials and build a project report comparing conditions, sponsors, phases, and results availability.
- Use CTIS clinical trial search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from CTIS clinical trial search and tell me what changed since last week.

## How to set up CTIS clinical trial search in opencode

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run CTIS clinical trial search**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "euclinicaltrials-eu/clinical-trials/search",
    "input": {
      "sort": "newest_decision"
    }
  }'
```

Then paste one of the prompts above: opencode finds CTIS clinical trial search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## CTIS clinical trial search tools and prices

- [EU Clinical Trials (CTIS) · Search](https://spiral.ai/tools/alexandria/euclinicaltrials-eu/clinical-trials/search) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| sort | newest_decision, oldest_decision | newest_decision | Order by authorisation decision date. CTIS serves the first 10,000 trials of either order. |
| phase |  | — | Any of these phases; integrated phases match both (PHASE2 matches Phase I/II, Phase II and Phase II/III). |
| query |  | — | Words that must all appear in the trial record, matched as whole words without case, e.g. "cardiac arrest", a drug code, or an NCT, EudraCT or WHO UTN number. |
| status |  | — | Overall trial status is any of these. Recruiting trials are AUTHORISED_RECRUITING (authorised, recruitment not started) and ONGOING_RECRUITING. |
| product |  | — | Medicinal product or active substance, brand name or INN, e.g. semaglutide or Keytruda. ATC codes are not matched. |
| sponsor |  | — | Sponsor organisation, e.g. Novo Nordisk. |

## What can you do with CTIS clinical trial search in opencode?

Build a trial comparison table with EU trial numbers, medicines, phases, and country statuses. Use CTIS records to add eligibility and endpoints to your project’s research views.

### Map a medicine’s European trial program

Find semaglutide trials, compare sponsors and phases, then examine the eligibility and endpoints of selected studies.

### Build a recruitment research brief

Find recruiting melanoma trials, then review country statuses, sites, and participation criteria for an institutional research brief.

### Compare sponsor activity

Identify Novo Nordisk’s registered trials and compare their medicines, phases, countries, and study designs.

### Follow country recruitment changes

Find relevant obesity trials and compare successive country statuses and site information to report changes observed between checks.

### Check public results availability

Identify ended trials for a medicine and examine their public results information to prepare a list for evidence review.

### Prepare an oncology trial comparison

Find pembrolizumab trials and compare their conditions, eligibility requirements, endpoints, and participating countries.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## CTIS clinical trial search in other agents

- [Amp](https://spiral.ai/integrations/amp/ctis-clinical-trial-search)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/ctis-clinical-trial-search)
- [Claude](https://spiral.ai/integrations/claude-desktop/ctis-clinical-trial-search)
- [Claude Code](https://spiral.ai/integrations/claude-code/ctis-clinical-trial-search)
- [Cline](https://spiral.ai/integrations/cline/ctis-clinical-trial-search)
- [Codex](https://spiral.ai/integrations/codex/ctis-clinical-trial-search)
- [Cursor](https://spiral.ai/integrations/cursor/ctis-clinical-trial-search)
- [Devin](https://spiral.ai/integrations/devin/ctis-clinical-trial-search)
- [dots](https://spiral.ai/integrations/dots/ctis-clinical-trial-search)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/ctis-clinical-trial-search)
- [Gemini](https://spiral.ai/integrations/gemini/ctis-clinical-trial-search)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/ctis-clinical-trial-search)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/ctis-clinical-trial-search)
- [goose](https://spiral.ai/integrations/goose/ctis-clinical-trial-search)
- [Grok](https://spiral.ai/integrations/grok/ctis-clinical-trial-search)
- [Grok Build](https://spiral.ai/integrations/grok-build/ctis-clinical-trial-search)
- [Hermes](https://spiral.ai/integrations/hermes/ctis-clinical-trial-search)
- [Instinct](https://spiral.ai/integrations/instinct/ctis-clinical-trial-search)
- [Manus](https://spiral.ai/integrations/manus/ctis-clinical-trial-search)
- [Muse](https://spiral.ai/integrations/muse/ctis-clinical-trial-search)
- [Muse Code](https://spiral.ai/integrations/muse-code/ctis-clinical-trial-search)
- [n8n](https://spiral.ai/integrations/n8n/ctis-clinical-trial-search)
- [Notion](https://spiral.ai/integrations/notion/ctis-clinical-trial-search)
- [OpenClaw](https://spiral.ai/integrations/openclaw/ctis-clinical-trial-search)
- [Perplexity](https://spiral.ai/integrations/perplexity/ctis-clinical-trial-search)
- [Raycast](https://spiral.ai/integrations/raycast/ctis-clinical-trial-search)
- [VS Code](https://spiral.ai/integrations/vscode/ctis-clinical-trial-search)
- [Windsurf](https://spiral.ai/integrations/windsurf/ctis-clinical-trial-search)
- [Zapier](https://spiral.ai/integrations/zapier/ctis-clinical-trial-search)

## More opencode guides

- [CTIS clinical trial details](https://spiral.ai/integrations/opencode/ctis-clinical-trial-details)
- [California HCAI drug WAC increases](https://spiral.ai/integrations/opencode/california-hcai-drug-wac-increases)
- [CMS nursing homes](https://spiral.ai/integrations/opencode/cms-nursing-homes)
- [California HCAI drug launch reports](https://spiral.ai/integrations/opencode/california-hcai-drug-launch-reports)
- [CMS nursing home details](https://spiral.ai/integrations/opencode/cms-nursing-home-details)
- [California physician license](https://spiral.ai/integrations/opencode/california-physician-license)

## Questions about CTIS clinical trial search in opencode

**Can opencode use CTIS clinical trial search?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run CTIS clinical trial search like any built-in tool.

**How much does CTIS clinical trial search cost in opencode?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need an Alexandria account to use CTIS clinical trial search in opencode?**

No. Spiral runs CTIS clinical trial search on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up CTIS clinical trial search in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while CTIS clinical trial search runs?**

CTIS clinical trial search runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does CTIS include observational studies and medical device trials?**

No. Its scope is trials of investigational medicinal products; observational trials and studies of medical devices are excluded.

**Does CTIS include trials that started before 2022?**

It includes older trials transferred into the current regulatory framework. From January 31, 2025, all ongoing EU trials should have been submitted to CTIS, so its coverage is not limited to newly started trials.

**How quickly do recruitment updates appear?**

Updates to trial and recruitment period notifications appear on the public website within 24 hours after submission. That window starts with the sponsor’s submission, so it does not guarantee that recruitment information reflects an event immediately.

**Do the dates describe the entire worldwide trial?**

CTIS search dates and locations refer to the EEA. A trial conducted outside the EEA can have different start dates, end dates, and locations there.

**Are participant counts actual enrollment?**

Counts labeled as planned enrollment are the expected number of participants. They should not be presented as the number already recruited.

