mcp-bindingdb Examples

Worked examples for new users of the BindingDB MCP server. They start with one-line lookups and build up to multi-step analyses. Each example is a real conversation: the prompt, the answer, a short lesson about the data, the tools that were used, and what to try next. They were run against BindingDB releases 202610–202611; a newer release can give somewhat different numbers.

How to use these. Read the transcript, then paste the quoted prompt into your own chat with mcp-bindingdb connected and compare. Transcripts show the tool calls only where the prompt asks for them (Example 9.2). Tables that carry SMILES are drawn as structures.

Check the data. The answers point out data-quality issues where the results show them (duplicate records, values at detection limits, probable unit errors, re-reported values). Check these before relying on a single number.

Level 1 — Simple lookups

One question, one or two tools: find a compound or a target and read its record.

  1. 1.1
    Look up a compound by name (imatinib)
    What does BindingDB know about imatinib?
    notebook
  2. 1.2
    Look up a compound by identifier
    I have a few identifiers for the same drug: CHEMBL941, PubChem CID 5291, BDBM13530 and the InChIKey block KTUFNOKKBVMGRW. Do they all find the same compound in BindingDB?
    structuresnotebook
  3. 1.3
    Look up a target by gene name (EGFR)
    Find the human EGFR protein in BindingDB. How much data is there?
    notebook
  4. 1.4
    Turn a chemical name into a structure
    Give me the SMILES and the BindingDB record for three compounds I only know by name: the trade name Ibrance, the IUPAC name N-(3-chloro-4-fluorophenyl)-7-methoxy-6-(3-morpholin-4-ylpropoxy)quinazolin-4-amine, and the CAS number 50-78-2.
    structuresnotebook

Level 2 — Structure search

Search by chemical structure: exact match, similarity, substructure, SMARTS, and scaffold-to-target summaries.

  1. 2.1
    Exact structure search (the two enantiomers of crizotinib)
    Is (S)-crizotinib in BindingDB as its own compound, separate from crizotinib? Compare the two enantiomers on the targets where both were measured.
    structure gridnotebook
  2. 2.2
    Similarity search: close analogues of imatinib
    Find close analogues of imatinib (Tanimoto ≥ 0.7) that bind any target below 100 nM.
    structure gridstructuresnotebook
  3. 2.3
    Substructure search: how many quinazolines, and which are most potent?
    How many compounds in BindingDB contain a quinazoline core, and which are the most potent?
    structure gridnotebook
  4. 2.4
    SMILES vs SMARTS queries (4-chloroaniline)
    Find compounds with a 4-chloroaniline group. What changes if I require a free NH2 (primary amine)?
    structuresnotebook
  5. 2.5
    Scaffold → target landscape (imatinib core)
    Which targets have the most compounds containing the 2-anilino-4-(3-pyridyl)pyrimidine core of imatinib?
    1 plotstructuresnotebook
  6. 2.6
    Draw a structure and search with the structure editor
    Edit a compound
    2 plotsstructures2 turns

Level 3 — Compound ↔ target

Which compounds hit a target, which targets a compound hits, and what lies behind a single measurement.

  1. 3.1
    Most potent ligands for a target (EGFR)
    What are the 20 most potent EGFR inhibitors in BindingDB with a Ki or Kd below 1 nM?
    structure gridnotebook
  2. 3.2
    Selectivity profile of a drug (imatinib)
    Which human targets does imatinib bind below 100 nM?
    structure gridnotebook
  3. 3.3
    Mutant vs wild type (EGFR T790M)
    Compare inhibitors of EGFR wild type with the T790M mutant.
    structure gridnotebook
  4. 3.4
    Drill into one measurement (gefitinib on EGFR)
    Show me the assay details behind the most potent gefitinib measurement on EGFR.
    notebook
  5. 3.5
    Protein complexes: GABA-A receptor subtypes
    The benzodiazepine binding site sits between two subunits of the GABA-A receptor. How does BindingDB store a target like that, and how selective are the benzodiazepine-site drugs across the subtypes?
    structure gridnotebook
  6. 3.6
    JAK1 selectivity across the JAK family
    I need a JAK1-selective chemical series. Which compounds in BindingDB are the most selective for JAK1 over JAK2, JAK3 and TYK2, and how strong is the selectivity really?
    structure grid2 turnsnotebook

Level 4 — Series SAR

R-group tables, matched molecular pairs and activity cliffs: what one substituent does to potency, and when the data says something else.

  1. 4.1
    R-group table: the position that picks the COX isoform
    Celecoxib is a 1,5-diarylpyrazole. Tabulate that whole series against COX-2 for me, by R-group position, and tell me what each position prefers.
    3 turnsnotebook
  2. 4.2
    Matched molecular pairs: swapping a group, not an atom
    Single-atom tweaks are not where my project is. On factor Xa, which whole-group swaps have a track record of improving potency?
    structure gridstructures3 turnsnotebook
  3. 4.3
    Activity cliffs: only the ones measured in the same patent
    Find the activity cliffs on menin, but only count a pair when both compounds were measured in the same patent — I don't want to compare two labs' assays. Check the assay conditions where they are recorded.
    structure grid2 turnsnotebook
  4. 4.4
    Transformations across seven target classes, one document at a time
    Is the fluorine effect target-specific? Compare what adding a fluorine, a methyl and a chlorine do across a kinase, a protease, a hydrolase, a metalloenzyme, a GPCR, an ion channel and a nuclear receptor — and only count a pair when both compounds were measured in the same patent or paper.
    1 plot2 turnsnotebook
  5. 4.5
    Fragment swaps: ligands built from each other's halves
    Find triples of compounds with the following properties that may have swapped parts: (1) same target; (2) the first compound is made up of two fragments, A-B; (3) the second compound is made up of two fragments, C-D; (4) the third compound is made of A-C, B-C, A-D or B-D; (5) each fragment must be at least 1/3 of the whole molecule.
    structure grid1 plot2 turnsnotebook
  6. 4.6
    How many distinct chemotypes hit BRD4
    How many distinct chemical series have been published against BRD4 with an IC50 under 100 nM? Show me the biggest ones with their most potent compound.
    structure grid2 turnsnotebook

Level 5 — Multi-step workflows

Realistic analyses that chain several tools: repurposing, selectivity panels, hit expansion, safety, species, patents, target networks, scaffold selectivity clustering.

  1. 5.1
    From a drug to its analogues to their targets (sildenafil)
    Start from sildenafil: find its close analogues in BindingDB and tell me which targets besides PDE5 they hit.
    structure gridnotebook
  2. 5.2
    Kinase selectivity panel of four BCR-ABL inhibitors
    Compare imatinib, nilotinib, dasatinib and bosutinib across the kinases they've all been tested against, as a heat map of median pAffinity.
    1 plotstructuresnotebook
  3. 5.3
    Hit expansion: from one screening hit to an SAR series
    I have a screening hit: Brc1cccc(Nc2ncnc3ccccc23)c1 — a 3-bromoanilino quinazoline. Find analogues, show the best ones, and tell me what the SAR suggests.
    structure gridnotebook
  4. 5.4
    hERG liability: which known drugs block the channel?
    Which well-known drugs bind the hERG potassium channel (KCNH2) below 1 µM?
    structure gridnotebook
  5. 5.5
    Compare a target across species (human vs rat D2 receptor)
    For the dopamine D2 receptor, do compounds bind the human and rat receptors with similar affinity?
    1 plotstructuresnotebook
    Also in this folder: drd2_human_vs_rat.png
  6. 5.6
    Trace potent compounds to their patents (BTK inhibitors)
    Which patents report the most potent BTK inhibitors, and in which years were they published?
    structure gridnotebook
  7. 5.7
    Imatinib's targets and the network they form
    Find the targets that bind to Imatinib with an affinity (Ki, Kd, IC50) of <= 1 micromolar. Then create a visual protein protein interaction network around these targets with the same affinity threshold.
    1 plotnotebook
  8. 5.8
    Clustered selectivity heat map and R-groups of the imatinib core
    Find the compounds that contain the 2-anilino-4-(3-pyridyl)pyrimidine substructure, the core scaffold of imatinib and nilotinib. Build a hierarchically clustered heat map of their binding affinities across the kinase targets they've been tested against, so I can see how the analogs group by selectivity profile. Distinguish the type of binding affinity in the heat map. If there are multiple measurements, use the median affinity. Choose the compounds and targets so the matrix is informative rather than mostly empty. Note any caveats about data coverage. Then create an R-group decomposition and list the compounds in the same order as in the heatmap.
    1 plotnotebook

Level 6 — Binding sites in 3D

PDB complexes of a target's ligands superposed on the binding site: poses, shared contacts and hydrogen bonds next to the measured potency. Each example has the transcript and the interactive 3D viewer.

  1. 6.1
    HIV-1 Protease Inhibitors with PDB Structures: Overlay of the Four Most Potent
    Which HIV-1 protease inhibitors in BindingDB have crystal structures in the PDB? Overlay the structures of the 4 most potent ones and show me how they bind.
    notebook
    Interactive 3D viewer: overlay-viewer.html
  2. 6.2
    Imatinib and approved ABL inhibitors: co-crystals, binding-site overlay and affinities
    Look up imatinib and 3 close analog approved drugs in BindingDB, pull their ABL co-crystal structures with Ki/Kd data, then overlay the binding sites and visualize them with the affinity data.
    structure gridnotebook
    Interactive 3D viewer: overlay-viewer.html

Level 7 — Properties, efficiency and alerts

Computed compound properties: drug-likeness, ligand efficiency, Bemis-Murcko scaffolds and structural alerts, as filters and as answers.

  1. 7.1
    Drug-likeness radar: the DPP-4 inhibitors
    How drug-like are the DPP-4 inhibitors, the gliptins? Compare their properties in radar plots, and show their structures with how potent and selective they are.
    structure grid1 plotnotebook
  2. 7.2
    Ligand efficiency over time: BACE1 inhibitors
    For BACE1, how has ligand efficiency changed over the years? Rank the most efficient inhibitors, and plot potency against size per period.
    structure grid1 plotnotebook
  3. 7.3
    Scaffold landscape and chemical space: PDE2A inhibitors
    Which chemical series bind PDE2A at 10 nM or better? Group them by scaffold, and map the chemical space with a t-SNE plot.
    structure grid1 plot2 turnsnotebook
  4. 7.4
    PAINS triage: 5-lipoxygenase inhibitors
    5-lipoxygenase has a long literature of natural-product inhibitors and I don't trust much of it. How many of its reported inhibitors carry PAINS alerts, which alerts, and does that track with potency?
    structure grid3 turnsnotebook
  5. 7.5
    Property-filtered analogue search: ibrutinib and BTK
    I want analogues of ibrutinib that are potent on BTK but smaller and free of problem groups. Search by similarity with property filters and show me what survives.
    structure gridnotebook

Level 8 — SQL analytics

Direct SQL over the BindingDB tables, for questions the curated tools do not cover.

  1. 8.1
    Schema discovery: what tables are in BindingDB?
    What tables are in the BindingDB database, and which ones should I start with?
    notebook
  2. 8.2
    Aggregate counts: the most-studied human targets
    Which 10 human targets have the most distinct compounds measured?
    notebook
  3. 8.3
    Patent landscape in BindingDB
    Analyze the patent landscape in BindingDB.
    4 plotsnotebook
    Also in this folder: plot_patent_landscape.py
  4. 8.4
    Data quality: censored values
    How many measurements are censored ('>' or '<'), broken down by affinity type? Why does that matter?
    notebook
  5. 8.5
    ITC thermodynamics: ΔG, ΔH and −TΔS
    Show isothermal titration calorimetry (ITC) results for carbonic anhydrase II ligands: ΔG, ΔH and −TΔS.
    structuresnotebook
  6. 8.6
    PDB cross-links: HIV-1 protease ligands with crystal structures
    Which compounds measured against HIV-1 protease also have a crystal structure in the PDB?
    structure gridnotebook

Level 9 — Deliverables

Saving the work: a Markdown transcript, and a reproducible record with every tool call.

  1. 9.1
    Save a conversation as a Markdown transcript
    Which targets does palbociclib bind at 100 nM or better?
    2 turnsnotebook
    Also in this folder: 9.1-markdown-transcript.md
  2. 9.2
    A reproducible record with every tool call
    How selective are palbociclib, ribociclib and abemaciclib for CDK4/6 over the other CDKs? Make an HTML transcript that includes every query and its results, so a colleague can rerun the analysis.
    tool callsstructuresnotebook