/chembl-mcp-server:chembl-guidefrom chembl-mcp-server
Gates and workflows for the chembl_* bioactivity tools, covering pinning a protein to its single-protein target, ranking leads without mixing mutants, salts, or repeat measurements, building a compound's target profile and selectivity with its inactive results, and checking assay provenance, source documents, and approval and withdrawal status. Use before ranking potencies, calling a compound selective or inactive, or saying what a drug hits or is approved for from chembl_* output.
Ships in chembl-mcp-server. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
ChEMBL's curated measurements (compound × target × assay), plus the mechanisms and indications it records for drugs and clinical candidates. Keyless. Not here:
chembl_get_documents turns a row's document_chembl_id into the title, authors, journal, year, PMID, and DOI to cite, but carries no abstract or text: pass the PMID or DOI to a PubMed or Crossref server for those.chembl_get_drug_info returns empty lists marked complete for a compound with no clinical record, so take its targets from chembl_get_bioactivities instead.chembl_search_targets (accession, gene symbol, or name), a mechanism in chembl_get_drug_info, or any bioactivity row. For an ID already in hand, send it as query to read that one target's type, organism, and components, or read the chembl://target/{chemblId} resource. For a common name, use query with the organism and target type. gene_symbol matches a whole component synonym.CHIMERIC PROTEIN target) beside single-protein ABL1, and each holds its own measurements. For the protein's data, resolve its gene to the SINGLE PROTEIN target too.parent_molecule_chembl_id, the family parent (its own ID when the compound is the parent): before reporting a leaderboard, group on it to merge forms of one drug.assay_chembl_id and is read with chembl_get_assay, which takes up to 100 distinct IDs per call: the rest come back in deferred_ids, and an ID with no assay record in not_found_ids. The confidence score lives only there; neither the rows nor the staged table carry it.document_chembl_id and is read with chembl_get_documents, up to 100 distinct IDs per call under the same deferred_ids / not_found_ids contract. doc_type is PUBLICATION, PATENT, DATASET, or BOOK; every other field is null when ChEMBL records none (a patent usually carries only a title, year, and patent number), and pubmed_id is a digit string. To read the measurements in one assay or source document, pass its ID back to chembl_get_bioactivities. Read both potency views for all measurements.EGFR returns close to twenty targets, one of them human SINGLE PROTEIN. Set target_type to SINGLE PROTEIN and organism, or take that row.L858R, T790M, L858R,T790M,C797S) with the native protein, and mutant assays often top the ranking: about half of EGFR's ranked Ki rows were mutant, the most potent row among them. Set variant: "wild_type" for the native protein, or the recorded mutation for one variant; a mutant ChEMBL records without its residues reads UNDEFINED MUTATION.molecule_chembl_ids, so aggregate per parent_molecule_chembl_id in SQL, drop likely repeat citations with potential_duplicate IS NOT TRUE (true marks a value probably re-cited from an earlier document; false or null does not prove independence), and report measurement and document counts beside the median.K562), whole organisms (viruses), and ChEMBL's catch-all targets (Unchecked, NON-PROTEIN TARGET, ADMET) with proteins. assay_type: "B" keeps binding assays only, which leaves out the functional assays on cell-line and organism targets (K562, viruses); binding assays run in cells stay, with bao_label: "cell-based format". Adding organism: "Homo sapiens" also drops the catch-alls, which record no organism, and other species. Families and fusions can remain; check any doubtful target with chembl_search_targets or the resource. A row's bao_label is the assay's format (single protein format, cell-based format), not the target's type: a single-protein target has cell-based rows too.= measurements whose data_validity_comment is empty or Manually validated; their activity_comment can still read Active, Uncertain, or inactive. null_potency also holds = rows with a suspect flag (Potential transcription error, Outside typical range) or a non-molar unit, and clean = molar rows of a standard_type ChEMBL derives no pChEMBL for (GI50). Every censored result (Kd > 10000 nM) and every result reported only as a comment (Inhibition < 50% @ 10 uM, Not Determined) sits in null_potency; a weak = value annotated inactive can still rank, at the bottom. Imatinib's binding data names dozens of targets with a potency and several hundred more that appear only in the null view. Before calling a compound selective, or saying it does not hit a target, stage both views and read the target's null-view rows: relation, value, and comment, since a single-concentration Inhibition percentage sits there too.standard_type is not enough: assay conditions vary by paper. For imatinib, ABL1 versus KIT runs from over 100-fold in favor of ABL1 in one document to about 10-fold in favor of KIT in another. Pivot on rows that share document_chembl_id (a panel) and report each document's difference; one pChEMBL unit is 10-fold. Cite each document through chembl_get_documents (title, journal, year, PMID or DOI).truncated_by bound, the staged rows are the top of the potency order: a row-level top N is exact down to the table's minimum pchembl_value, but per-compound medians, counts, and hit rates over it skew potent. Before aggregating, narrow with pchembl_value_min, variant, or assay_type until truncated is false.chembl_get_assay scores how exactly the assay's target is assigned: 9 is a direct single protein, 8 a homologous protein, 1 a non-molecular target such as a cell line, and 0 means ChEMBL has assigned no target yet, with target_chembl_id then a placeholder such as Unchecked or ADMET, not a measurement of a real target. The score is set per assay, so check it rather than infer it from the assay kind: ABL1 kinase-domain binding panels score 8, and EGFR's A431 cell assays score 8 or 9 depending on the assay. Shortlist first, then fetch the assays behind the rows you cite in one call (up to 100 IDs).chembl_get_drug_info lists trial indications alongside approved ones: set indication_phase_min: 4 for the indications that reached approval. Read the merged indication’s refs for its underlying label or trial records. On molecules and indications alike, 4 is approved, 3 to 1 are trial phases, 0.5 is early phase 1, −1 is clinical with the phase unknown, and a null max_phase means no clinical record (ChEMBL records no 0). A withdrawn drug keeps 4: read withdrawn, black_box_warning, and warnings (type Withdrawn or Black Box Warning, with class, country, year, reason, and sources) before calling a phase-4 drug on the market. withdrawn is true when any form of the drug was pulled from a market in at least one country, so it can still be marketed elsewhere, and a null flag is unknown, not false (the notice says when the family read failed or was cut short).chembl_search_targets with the UniProt accession, target_type: "SINGLE PROTEIN", and the organism → one target ID (Gate 1).chembl_get_bioactivities with that target, one standard_type, variant: "wild_type", and assay_type: "B" for binding constants (Gate 2). A large view spills.truncated, narrow first (Gate 7). Then rank per compound in SQL (Gate 3; recipes).parent_molecule_chembl_id so salts merge into their parent (Gate 3), and chembl_search_molecules on a parent ID to read max_phase; one chembl_get_assay call on the assays behind the cited values (Gate 8) and one chembl_get_documents call on their documents to cite them (Gate 6).chembl_search_molecules → take the row's parent_chembl_id.chembl_get_bioactivities with that ID, include_alternate_forms: true, assay_type: "B", organism: "Homo sapiens" (Gate 4), then the same call with potency_view: "null_potency". Whichever call spills first returns a canvas_id; pass it on the other, and that view is staged beside it even when it fits inline. A view that fits inline with no canvas_id returns only limit rows; raise limit or follow nextCursor to read it whole.chembl_get_drug_info on any form returns the family's flags and lists with that form's own max_phase and first_approval: a salt or a deuterated analog can record a lower phase than its parent, so re-call with parent_molecule_chembl_id for the parent's. Read max_phase beside withdrawn and warnings (each warning names the form it is filed on), and the approved indications at phase 4 (Gate 9). Before chaining a mechanism's target into chembl_get_bioactivities, check whether it is a fusion or family target (Identifiers).
Use chembl_search_drugs with the resolved target ID and an indication ID to find entries supported by both. A mechanism and an indication can be recorded on different forms of the same parent. Keep both form IDs when citing the evidence. Group on parent_molecule_chembl_id when counting drug families. Follow nextCursor even when an intermediate page has no matches.
Results too large to return inline are staged as a DataCanvas table, and the response carries a canvas_id. Call chembl_dataframe_describe with it for the staged table and column names before writing SQL, then chembl_dataframe_query with a read-only query. Pass the same canvas_id back to stage further results beside the first; the tables expire with the canvas.
potency_view stages beside the first. A second call of the same view on that canvas replaces its table, so compare targets by staging one molecule-scoped call and filtering target_chembl_id in SQL, not one call per target.LIMIT. A result flagged truncated is cut at the canvas row cap: page it with ORDER BY a unique column (activity_id) and LIMIT/OFFSET written into the query in place of any LIMIT it has.MEDIAN, FILTER (WHERE …), GROUP BY ALL, UNION ALL across the two view tables all work. Write every alias with AS: a bare alias that is a reserved word (order, select) fails to parse.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
chembl-mcp-server@cyanheads is listed by cyanheads/cyanheads — review the source before installing
npx claudepluginhub cyanheads/cyanheads --plugin chembl-mcp-server