[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [ChEMBL molecule details](https://spiral.ai/integrations/opencode/chembl-molecule-details)

# How to Use ChEMBL molecule details in opencode

Returns a compound record with molecular properties, structural representations, and synonyms. Use it to examine a known compound and check its identity before comparing its research or drug development records.

|  |  |
| --- | --- |
| Model | ChEMBL molecule details |
| 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 ChEMBL molecule details in opencode

- Use ChEMBL molecule details for CHEMBL941 and add its returned synonyms and structural information to this project's imatinib research fixture.
- Use ChEMBL molecule details for CHEMBL25 and build a small compound record viewer in this project using only the molecular properties and synonyms actually returned.
- Use ChEMBL molecule details to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from ChEMBL molecule details and tell me what changed since last week.
- Check ChEMBL molecule details and summarize what you find in three bullet points.

## How to set up ChEMBL molecule details 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 ChEMBL molecule details**: 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": "ebi-ac-uk/molecules/get_molecule",
    "input": {
      "chembl_id": "<chembl_id>"
    }
  }'
```

Then paste one of the prompts above: opencode finds ChEMBL molecule details on Spiral, shows the price and runs it.

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

## ChEMBL molecule details tools and prices

- [ChEMBL · Get molecule](https://spiral.ai/tools/alexandria/ebi-ac-uk/molecules/get_molecule) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| url |  | — | ChEMBL compound page, e.g. https://www.ebi.ac.uk/chembl/explore/compound/CHEMBL941. |
| chembl_id |  | — | Molecule ChEMBL ID, e.g. CHEMBL941 (imatinib). Pattern: ^CHEMBL[0-9]{1,12}$. |
| inchi_key |  | — | Standard InChIKey, e.g. KTUFNOKKBVMGRW-UHFFFAOYSA-N. Pattern: ^[A-Z]{14}-[A-Z]{10}-[A-Z]$. |

## What can you do with ChEMBL molecule details in opencode?

Build a research table that connects drug names, compound records, and disease indications. A coding agent can add ChEMBL identifiers to project data and keep overall development progress separate from disease-specific phases.

### Prepare a compound research brief

Resolve imatinib by name, inspect the selected compound record, and summarize its recorded disease indications with supporting references.

### Resolve drug names in a research table

Match names such as aspirin and metformin to candidate ChEMBL records, then check synonyms and structures before assigning identifiers.

### Compare oncology research records

Find imatinib, dasatinib, and nilotinib, confirm their compound identities, and compare the diseases and development phases recorded for each.

### Review repurposing research leads

Resolve a shortlist of named drugs, inspect their compound records, and organize recorded indications by disease-specific development phase for further literature review.

### Check changes after database releases

Repeat searches for a fixed drug shortlist and compare compound details and indication records with an earlier saved response to identify changes for review.

### Build a drug discovery teaching example

Use aspirin and imatinib to demonstrate name resolution, compound identification, molecular descriptions, and the difference between overall and disease-specific development progress.

## Overview

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

## ChEMBL molecule details in other agents

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

## More opencode guides

- [ChEMBL drug indications](https://spiral.ai/integrations/opencode/chembl-drug-indications)
- [ChEMBL molecule search](https://spiral.ai/integrations/opencode/chembl-molecule-search)
- [ChEMBL compound and target activities](https://spiral.ai/integrations/opencode/chembl-compound-and-target-activities)
- [ChEMBL target details](https://spiral.ai/integrations/opencode/chembl-target-details)
- [California physician license](https://spiral.ai/integrations/opencode/california-physician-license)
- [ChEMBL target search](https://spiral.ai/integrations/opencode/chembl-target-search)

## Questions about ChEMBL molecule details in opencode

**Can opencode use ChEMBL molecule details?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run ChEMBL molecule details like any built-in tool.

**How much does ChEMBL molecule details 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 ChEMBL molecule details in opencode?**

No. Spiral runs ChEMBL molecule details on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up ChEMBL molecule details in opencode?**

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

**Does opencode wait while ChEMBL molecule details runs?**

ChEMBL molecule details runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**How fresh is ChEMBL data?**

ChEMBL publishes releases approximately two to three times a year. A newly reported approval or research result may therefore be absent from the available release.

**Does ChEMBL cover every published compound?**

ChEMBL routinely extracts data from seven core journals. Its selected literature coverage should not be read as a complete inventory of every published compound.

**Does a compound's highest development phase apply to every disease?**

The molecule-level phase summarizes progress across all indications. ChEMBL separately records the maximum phase for a specified drug-disease relationship, so disease-specific comparisons need the indication record.

**Why can a drug name lead to several compound records?**

ChEMBL includes parent compounds and alternative forms such as salts, hydrates, and radioisotopes. Its molecule hierarchy links those forms to the parent compound.

**Where does ChEMBL's scientific data come from?**

Its core structure-activity relationship data is manually extracted and curated from medicinal chemistry and pharmacology publications. These are curated scientific records rather than patient medical records.

