Skip to content
Back to skills

Chembl

ASecurity

Query the ChEMBL database for drug molecules, bioactivity data, and drug targets via the ChEMBL REST API. Use whenever the user asks about drug properties (molecular weight, logP, Lipinski violations), drug-target interactions, bioactivity assay results, or wants to look up any entity by ChEMBL ID or drug/gene name in ChEMBL. Supports single entity or batch queries. No API key required.

  • 230 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 6, 2026
ai-agentsapidatabase

Works with

  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add BioTender-max/awesome-bio-agent-skills --skill chembl --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Chembl?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Chembl
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/biotender-max-chembl/badge)](https://www.skillsdirectory.com/skills/biotender-max-chembl)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: chembl-query
description: >
  Query the ChEMBL database for drug molecules, bioactivity data, and drug targets
  via the ChEMBL REST API. Use whenever the user asks about drug properties
  (molecular weight, logP, Lipinski violations), drug-target interactions,
  bioactivity assay results, or wants to look up any entity by ChEMBL ID or
  drug/gene name in ChEMBL. Supports single entity or batch queries. No API key required.
---

# ChEMBL Query Skill

Query ChEMBL bioactivity database for molecules, targets, and activity data. Auto-detects input type by prefix:

| Input Pattern | Detected As | Action |
|---|---|---|
| `CHEMBL25` | ChEMBL ID (molecule) | direct fetch by ID |
| `aspirin` | drug name | substring search on `pref_name` |
| `CHEMBL203` | ChEMBL ID (target) | direct fetch by ID |
| `EGFR` | gene/protein name | substring search on `target_synonym` |

## API

| Function | Input | Returns |
|---|---|---|
| `query_molecules(entities, limit)` | `str` or `list[str]` — ChEMBL IDs or drug names | `dict[str, list[dict]]` |
| `query_targets(entities, limit)` | `str` or `list[str]` — ChEMBL IDs or gene names | `dict[str, list[dict]]` |
| `query_bioactivities(chembl_ids, limit)` | `str` or `list[str]` — molecule ChEMBL IDs | `dict[str, list[dict]]` |
| `summarize_molecule(mol)` | single molecule dict | compact one-line string |
| `summarize_activity(act)` | single activity dict | compact one-line string |
| `summarize_target(tgt)` | single target dict | compact one-line string |

## Usage

See `if __name__ == "__main__"` block in `chembl_query.py` for runnable examples covering:

1. **Single molecule by ID** — `query_molecules("CHEMBL25")`
2. **Batch molecule search by name** — `query_molecules(["ibuprofen", "metformin"], limit=3)`
3. **Bioactivities for multiple molecules** — `query_bioactivities(["CHEMBL25", "CHEMBL1642"], limit=3)`
4. **Single target by gene name** — `query_targets("EGFR", limit=3)`
5. **Batch target lookup by ID** — `query_targets(["CHEMBL203", "CHEMBL204"])`

## Key Fields

**Molecule**: `molecule_chembl_id`, `pref_name`, `molecule_properties.full_mwt`, `molecule_properties.alogp`, `molecule_properties.num_ro5_violations`

**Activity**: `molecule_chembl_id`, `target_chembl_id`, `target_pref_name`, `standard_type`, `standard_value`, `standard_units`

**Target**: `target_chembl_id`, `pref_name`, `target_type`, `organism`

## Data Source

- **API**: `https://www.ebi.ac.uk/chembl/api/data` (no key required)
- **Paper**: https://doi.org/10.1093/nar/gkad1004

Files in this skill

  • README.md1.1 KB
  • SKILL.md2.5 KB
  • __init__.py130 B
  • chembl_skill.py11.3 KB
  • example.py7.5 KB
  • retrieve.py1.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.