Example 1.2 — Look up a compound by identifier¶

A reproducible record of an AI-assisted BindingDB analysis: each prompt, the BindingDB tool calls that answered it with their recorded results, the answer, and its figures. Run all cells to show the recorded results, or rerun every call on your own copy of the database and check each result against the recorded one.

  • Date: 2026-11-23
  • Model: claude-opus-5-5
  • Data: BindingDB release 202611 (BDB-mySQL_All_202611_dmp.zip, SHA-256 daea9260d404919a183ce02d91bf4b9c49b410bea7eaaeba105c8e0280510381)
  • Database build: 2026-11-21T01:08:15+00:00, DuckDB 1.5.6
  • Derived data: standard InChIKeys computed from SMILES by RDKit 2026.03.6; compound_property computed from SMILES (largest fragment) by RDKit 2026.03.6
  • Server: mcp-bindingdb v0.1.17, commit 79dae5d22c0f
  • Software: python 3.12.7, duckdb 1.5.6, rdkit 2026.03.6, mcp 2.3.0, gemmi 0.7.5
  • Notebook generated: 2026-11-24T04:55:00Z
  • Contents: 1 exchange · 5 tool calls

How to run¶

Keep the notebook in its folder, which holds everything it needs: requirements.txt (mcp-bindingdb at its commit and the versions of the packages it needs) and the recorded results in data/. With uv, from that folder (replace the path with yours):

cd /path/to/1.2-compound-by-identifier-notebook
uv run --no-project --with-requirements requirements.txt --with jupyterlab jupyter lab 1.2-compound-by-identifier-notebook.ipynb

then choose Run → Run All Cells. The first start installs the packages, which takes a minute or two; the cells show the recorded results, so no database is needed. Without uv: pip install -r requirements.txt jupyterlab, then jupyter lab 1.2-compound-by-identifier-notebook.ipynb in the folder.

How to rerun the calls¶

To rerun every BindingDB call on your own copy of release 202611 and check each result against the recorded one, set RERUN = True in the setup cell and run all cells, or rerun the notebook without opening Jupyter, writing a copy with the new results:

cd /path/to/1.2-compound-by-identifier-notebook
BINDINGDB_RERUN=1 uv run --no-project --with-requirements requirements.txt --with nbconvert jupyter nbconvert --to notebook --execute --output 1.2-compound-by-identifier-notebook-rerun.ipynb 1.2-compound-by-identifier-notebook.ipynb

A rerun needs the database: the one BINDINGDB_DUCKDB=/path/to/bindingdb_202611.duckdb names (put it before uv run), else the newest one mcp-bindingdb built on this computer, for example for Claude Desktop. With neither, the first rerun builds one, which takes about half an hour and 2.4 GB. To build exactly release 202611, with a clone of mcp-bindingdb:

git clone https://github.com/sbl-sdsc/mcp-bindingdb.git
cd mcp-bindingdb
git checkout 79dae5d22c0f15b8ded9b49adc8b105f0463703a
scripts/build_duckdb.sh --release 202611

The setup cell checks the database's release and source checksum against the recorded ones.

Run as it is, each call cell shows its recorded result, read from data/ and checked against the SHA-256 digest recorded in the cell. Rerun, it shows the new result with ✅ when it matches the recorded one (floats to 10 significant digits, ids of viewers and files left out). Calls to PubChem, RCSB or PDBe depend on those services and may differ. The prose answers are the model's and are not recomputed.

In [ ]:
# Shows the results recorded during the session (data/), so the notebook runs without a database. Set
# RERUN = True (or start Jupyter with BINDINGDB_RERUN=1) to rerun every BindingDB call on a local copy of
# the database instead and check it against its recorded result: see 'How to rerun the calls' above.
from mcp_bindingdb.notebook import Replay

RERUN = False
replay = Replay(release='202611', source_zip_sha256='daea9260d404919a183ce02d91bf4b9c49b410bea7eaaeba105c8e0280510381', rerun=RERUN)
Recorded with BindingDB release 202611, mcp-bindingdb v0.1.17 (commit 79dae5d22c0f)
python 3.12.7, duckdb 1.5.6, rdkit 2026.03.6, mcp 2.3.0, gemmi 0.7.5

Exchange 1¶

👤 User

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?

In [ ]:
Call 1 · search_compounds · ran 2026-11-24 04:54:59 UTC (3 lines)
# Call 1 · search_compounds · ran 2026-11-24 04:54:59 UTC
await replay.call(1, 'search_compounds', {'query': 'CHEMBL941'},
                  sha256='7963be8e713f17aaa52aa406c3c57b33c98259917aba3e74057995307440f1ec')

Call 1 · search_compounds · recorded result · sha256 7963be8e713f…

20 rows, truncated at the limit

monomerid bdbm_id name inchi_key smiles mol_weight n_activities n_targets matched_name
13530 BDBM13530 Gleevec KTUFNOKKBVMGRW-UHFFFAOYSA-N CN1CCN(Cc2ccc(cc2)C(=O)Nc2ccc(C)c(Nc3nccc(n3)-c3cccnc3)c2)CC1 493.26 1156 459 CHEMBL941
3530 BDBM3530 PD153035 Analog 29 MJKCGAHOCZLYDG-UHFFFAOYSA-N COc1cc2ncnc(Nc3ccccc3)c2cc1OC 281.12 16 9 CHEMBL94191
50102788 BDBM50102788 2-(2-Hydroxy-3-methoxy-phenyl)-1H-benzoimidazole-5-carboxamidine MXYHBEGHRXMSNT-UHFFFAOYSA-N COc1cccc(-c2nc3ccc(C(=N)N)cc3[nH]2)c1O 282.11 6 6 CHEMBL94139
50033722 BDBM50033722 ISOBUTYLSHIKONIN CVESWGQNHXEYIQ-UHFFFAOYSA-N CC(C)=CC=C(OC(=O)C(C)C)c1cc(O)c2c(O)ccc(O)c2c1O 358.14 5 4 CHEMBL9416
50039712 BDBM50039712 3-(2-(1-benzylpiperidin-4-yl)ethyl)-5-methoxybenzo[d]isoxazole WLEKXXPTBPECMY-UHFFFAOYSA-N COc1ccc2onc(CCC3CCN(Cc4ccccc4)CC3)c2c1 350.2 5 1 CHEMBL94186
50052111 BDBM50052111 (2-Methoxy-ethyl)-carbamic acid (3R,4aR,5S,6S,6aS,10S,10aR,10bS)-5,10,10b-trihydroxy-3,4a,7,7,10a-pentamethyl-1-oxo-3-vinyl-dodecahydro-benzo[f]chromen-6-yl ester DHXAJBAYFHOCQQ-PNUNPAGSSA-N COCCNC(=O)O[C@@H]1[C@H](O)[C@@]2(C)O[C@](C)(CC(=O)[C@]2(O)[C@@]2(C)[C@@H](O)CCC(C)(C)[C@H]12)C=C 469.27 4 1 CHEMBL94135
50052113 BDBM50052113 (2-Methoxy-ethyl)-carbamic acid (3R,4aR,5S,6S,6aS,10S,10aR,10bS)-6,10,10b-trihydroxy-3,4a,7,7,10a-pentamethyl-1-oxo-3-vinyl-dodecahydro-benzo[f]chromen-5-yl ester ABSVJDSEPWWKHF-PNUNPAGSSA-N COCCNC(=O)O[C@H]1[C@@H](O)[C@H]2C(C)(C)CC[C@H](O)[C@]2(C)[C@@]2(O)C(=O)C[C@@](C)(O[C@]12C)C=C 469.27 4 1 CHEMBL94168
50069580 BDBM50069580 (R)-2-Benzyl-N*1*-((S)-1-benzylcarbamoyl-2-phenyl-ethyl)-N*4*-hydroxy-succinamide QLLHBFHVPQQFRB-RPWUZVMVSA-N ONC(=O)C[C@@H](Cc1ccccc1)C(=O)N[C@@H](Cc1ccccc1)C(=O)NCc1ccccc1 459.22 4 2 CHEMBL94155
50090023 BDBM50090023 4-(3,4-Difluoro-phenyl)-2-oxo-1,2,3,4-tetrahydro-pyrimidine-5-carboxylic acid {3-[4-(2-cyano-4-fluoro-phenyl)-piperidin-1-yl]-propyl}-amide OZLVILGCRABIEJ-MQNHUJCZSA-N Fc1ccc(C2CCN(CCCNC(=O)C3C=NC(=O)N[C@@H]3c3ccc(F)c(F)c3)CC2)c(c1)C#N |c:16| 497.2 4 3 CHEMBL94188
50090031 BDBM50090031 4-(3,4-Difluoro-phenyl)-2-oxo-1,2,3,4-tetrahydro-pyrimidine-5-carboxylic acid {3-[4-(4-fluoro-phenyl)-piperidin-1-yl]-propyl}-amide PLQHNFLSZUTLDO-GWQXNCQPSA-N Fc1ccc(cc1)C1CCN(CCCNC(=O)C2C=NC(=O)N[C@@H]2c2ccc(F)c(F)c2)CC1 |c:19| 472.21 4 3 CHEMBL94167
50131354 BDBM50131354 7,8-Dimethoxy-3-(4-naphthalen-2-ylmethyl-piperazin-1-ylmethyl)-3a,4-dihydro-3H-chromeno[4,3-c]isoxazole XHLHZPFSBCZVEA-UHFFFAOYSA-N COc1cc2OCC3C(CN4CCN(Cc5ccc6ccccc6c5)CC4)ON=C3c2cc1OC |c:31| 473.23 4 4 CHEMBL94129
50146269 BDBM50146269 (2R,3S)-5-Chloro-3-(4-hydroxy-phenyl)-2-[4-(2-piperidin-1-yl-ethoxy)-phenyl]-2,3-dihydro-benzo[1,4]oxathiin-7-ol RSGSDAZRNVPOTK-FTJBHMTQSA-N Oc1ccc(cc1)[C@@H]1Sc2c(Cl)cc(O)cc2O[C@@H]1c1ccc(OCCN2CCCCC2)cc1 497.14 4 2 CHEMBL94116
50146282 BDBM50146282 (2R,3S)-5-Ethyl-3-(4-hydroxy-phenyl)-2-[4-(2-piperidin-1-yl-ethoxy)-phenyl]-2,3-dihydro-benzo[1,4]oxathiin-7-ol RQEDNNYPHPXBQP-PXJZQJOASA-N CCc1cc(O)cc2O[C@@H]([C@@H](Sc12)c1ccc(O)cc1)c1ccc(OCCN2CCCCC2)cc1 491.21 4 2 CHEMBL94170
50095134 BDBM50095134 (3S,4R)-4-(4-Chloro-phenyl)-1-methyl-piperidine-3-carboxylic acid 4-[(4-chloro-benzoylamino)-methyl]-benzylamide HZUQKHSZVBGHLH-IZZNHLLZSA-N CN1CC[C@H]([C@@H](C1)C(=O)NCc1ccc(CNC(=O)c2ccc(Cl)cc2)cc1)c1ccc(Cl)cc1 509.16 3 3 CHEMBL94108
50105559 BDBM50105559 1-Benzyl-5-(3-chloro-phenyl)-1,3-dihydro-benzoimidazol-2-one JTJWERWUFWISDB-UHFFFAOYSA-N O=c1[nH]c2cc(-c3cccc(Cl)c3)ccc2n1Cc1ccccc1 334.09 3 1 CHEMBL94162
50105618 BDBM50105618 1-(5-tert-butyl-2-(dimethylcarbamoyl)thiophen-3-yl)-3-p-tolylurea RALWYNSHHMYKBY-UHFFFAOYSA-N CN(C)C(=O)c1sc(cc1NC(=O)Nc1ccc(C)cc1)C(C)(C)C 359.17 3 1 CHEMBL94156
50146311 BDBM50146311 4-Fluoro-biphenyl-2-carboxylic acid [3-chloro-4-((S)-3,4,11,11a-tetrahydro-1H,5H-2-oxa-4a,10-diaza-dibenzo[a,d]cycloheptene-10-carbonyl)-phenyl]-amide DACLNYLQXBKHMO-VWLOTQADSA-N Fc1ccc(-c2ccccc2)c(c1)C(=O)Nc1ccc(C(=O)N2C[C@H]3COCCN3Cc3ccccc23)c(Cl)c1 555.17 3 2 CHEMBL94133
50283710 BDBM50283710 (R)-N*1*-[(S)-2-Cyclohexyl-1-(4-morpholin-4-yl-butylcarbamoyl)-ethyl]-N*4*-hydroxy-2-(3-p-tolyl-propyl)-succinamide UVOFCKSSQUNXIZ-IZLXSDGUSA-N Cc1ccc(CCC[C@H](CC(=O)NO)C(=O)N[C@@H](CC2CCCCC2)C(=O)NCCCCN2CCOCC2)cc1 558.752 3 3 CHEMBL94114
50039826 BDBM50039826 1-Decyl-4-(2,3-dihydro-benzo[1,4]dioxin-5-yl)-piperazine ZWPCABJDUWYWJX-UHFFFAOYSA-N CCCCCCCCCCN1CCN(CC1)c1cccc2OCCOc12 360.28 2 1 CHEMBL94115
50039878 BDBM50039878 4'-[3-(2-Methyl-cyclopropylmethyl)-5-oxo-1-(2-trifluoromethyl-phenyl)-1,5-dihydro-[1,2,4]triazol-4-ylmethyl]-biphenyl-2-sulfonic acid benzoylamide CCJJBAOBCOBULM-UHFFFAOYSA-N CC1CC1Cc1nn(-c2ccccc2C(F)(F)F)c(=O)n1Cc1ccc(cc1)-c1ccccc1S(=O)(=O)NC(=O)c1ccccc1 646.19 2 2 CHEMBL94176
In [ ]:
Call 2 · search_compounds · ran 2026-11-24 04:55:00 UTC (3 lines)
# Call 2 · search_compounds · ran 2026-11-24 04:55:00 UTC
await replay.call(2, 'search_compounds', {'query': 'cid_5291'},
                  sha256='3224e9d305c02a073fa719edacbb003348dd26720c50c647d5e9dec44f7b5c05')

Call 2 · search_compounds · recorded result · sha256 3224e9d305c0…

20 rows, truncated at the limit

monomerid bdbm_id name inchi_key smiles mol_weight n_activities n_targets matched_name
13530 BDBM13530 Gleevec KTUFNOKKBVMGRW-UHFFFAOYSA-N CN1CCN(Cc2ccc(cc2)C(=O)Nc2ccc(C)c(Nc3nccc(n3)-c3cccnc3)c2)CC1 493.26 1156 459 cid_5291
54798 BDBM54798 MLS000519510 RXQBEHGNWZBHIF-UHFFFAOYSA-N Cc1[nH]c2ccccc2c1/C=C1SC(=N)N(c2nccs2)C1=O 340.05 5 4 cid_5291664
40401 BDBM40401 UNM000003529001 CRBWSCQTBBPMTG-UHFFFAOYSA-N CCCCCCN1C(C(C(=O)c2ccccc2)C(=O)C1=O)c1ccc(O)c(OC)c1 409.19 4 2 cid_5291143
40406 BDBM40406 UNM000003537201 ICSLNJDFTGEPMX-UHFFFAOYSA-N COCCN1C(C(C(=O)c2ccccc2)C(=O)C1=O)c1cc(OC)ccc1OC 397.15 4 2 cid_5291419
40411 BDBM40411 UNM000003538701 FWDCSNYZLUMPPC-UHFFFAOYSA-N COc1ccc(OC)c(c1)C1C(C(=O)c2ccccc2)C(=O)C(=O)N1c1cccnc1 416.14 4 2 cid_5291451
40436 BDBM40436 UNM000003598601 MSXFHQCGSVCQFL-UHFFFAOYSA-N COc1ccc(C2C(C(=O)c3ccc(C)cc3)C(=O)C(=O)N2Cc2cccnc2)c(OC)c1 444.17 4 2 cid_5291826
50154 BDBM50154 MLS000553382 QAAHPCIPFCTISV-ZROIWOOFSA-N O=C1Oc2ccccc2C(=O)/C1=C/c1c[nH]c2ccccc12 289.07 4 4 cid_5291977
40434 BDBM40434 UNM000003595901 NJZQQPNMYSXORF-UHFFFAOYSA-N Fc1ccc(cc1)N1C(C(C(=O)c2ccccc2)C(=O)C1=O)c1ccc(Br)cc1 451.02 3 2 cid_5291115
40437 BDBM40437 UNM000003598701 ZLEIAKOIGUCLNH-BUHFOSPRSA-N OC(=O)CCCN1C(\C=C\c2ccccc2)C(C(=O)c2ccccc2)C(=O)C1=O 391.14 3 2 cid_5291834
40439 BDBM40439 UNM000003599401 MGUCWTPCCYOFBH-UHFFFAOYSA-N Brc1ccc(cc1)C1C(C(=O)c2ccccc2)C(=O)C(=O)N1CN1CCOCC1 456.07 3 2 cid_5291891
51172 BDBM51172 MLS000712299 XAVAXEJERNGXLG-XCMCHEKJSA-N CCCCN1C(=S)S\C(=C/C=C2\Oc3ccccc3N2CC)C1=O 360.1 3 3 cid_5291166
59754 BDBM59754 MLS000111824 ZDCSYGXLZHPWCP-UHFFFAOYSA-N C/C(=Cc1ccco1)C1c2c(-c3ccccc3)n[nH]c2OC(=N)C1C#N 344.13 3 2 cid_5291857
64843 BDBM64843 MLS000519119 OZCTZEQRPXUHPT-MDWZMJQESA-N CC1=NOC(=O)\C1=C\c1ccc(o1)-c1ccc(Cl)cc1 |t:1| 287.03 3 3 cid_5291838
50241 BDBM50241 MLS000567498 QFTJMDXQIISZOP-UHFFFAOYSA-N Cc1ccc2nc(C(C#N)=Cc3ccc(-c4cccc([N+](=O)[O-])c4)o3)[nH]c2c1 370.11 2 2 cid_5291132
52081 BDBM52081 MLS000077161 GXDHEXWWCZQNIQ-UHFFFAOYSA-N O=c1[nH]c(=O)n(-c2cccc(Cl)c2)c(O)c1C=Nc1ccccn1 342.05 2 2 cid_5291172
52255 BDBM52255 MLS000519515 STTLXVSWOQMQBG-UHFFFAOYSA-N CCOC(=O)C(=O)NCc1ccc(C=c2c(O)c(C(=O)OC)c(=C)n2-c2ccccc2)o1 438.14 2 2 cid_5291849
52275 BDBM52275 MLS000519514 VUMWWRSISQSUJP-UHFFFAOYSA-N CCOC(=O)C(=O)NCc1ccc(C=c2c(O)c(C(=O)OC)c(=C)n2-c2ccc(F)cc2)o1 456.13 2 2 cid_5291831
54016 BDBM54016 MLS000682115 UNELMGUYQOCWST-HTHTTXKWSA-N Cc1ccc(C)c(c1)N1C(=N)S\C(=C/c2ccc(o2)-c2ccccc2C(O)=O)C1=O 418.1 2 2 cid_5291770
83637 BDBM83637 MLS001203453 VYRCFJLNSPMBBR-FNORWQNLSA-N [O-][N+](=O)c1ccc(\C=C\c2nc3ccccc3c(=O)o2)s1 300.02 2 1 cid_5291685
47901 BDBM47901 MLS001197204 BTXWOQBYISISBP-UHFFFAOYSA-N O=C1NC(=O)N(c2ccccc2F)C(=O)C1=Cc1c[nH]c2ccccc12 349.09 1 1 cid_5291609
In [ ]:
Call 3 · search_compounds · ran 2026-11-24 04:55:00 UTC (3 lines)
# Call 3 · search_compounds · ran 2026-11-24 04:55:00 UTC
await replay.call(3, 'search_compounds', {'query': 'BDBM13530'},
                  sha256='32a3b365646fc9b78bc5ed433ddbd0462d6b6f5648274c064708abcf0a9ccd04')

Call 3 · search_compounds · recorded result · sha256 32a3b365646f…

1 row

monomerid bdbm_id name inchi_key smiles mol_weight n_activities n_targets
13530 BDBM13530 Gleevec KTUFNOKKBVMGRW-UHFFFAOYSA-N CN1CCN(Cc2ccc(cc2)C(=O)Nc2ccc(C)c(Nc3nccc(n3)-c3cccnc3)c2)CC1 493.26 1156 459
In [ ]:
Call 4 · search_compounds · ran 2026-11-24 04:55:00 UTC (3 lines)
# Call 4 · search_compounds · ran 2026-11-24 04:55:00 UTC
await replay.call(4, 'search_compounds', {'query': 'KTUFNOKKBVMGRW'},
                  sha256='81dd9cd1ed2f5e55cacac3847cbe5b524c03c7a207f2d84f970f9381f0136f9b')

Call 4 · search_compounds · recorded result · sha256 81dd9cd1ed2f…

5 rows

monomerid bdbm_id name inchi_key smiles mol_weight n_activities n_targets
13530 BDBM13530 Gleevec KTUFNOKKBVMGRW-UHFFFAOYSA-N CN1CCN(Cc2ccc(cc2)C(=O)Nc2ccc(C)c(Nc3nccc(n3)-c3cccnc3)c2)CC1 493.26 1156 459
86734 BDBM86734 Gleevec KTUFNOKKBVMGRW-UHFFFAOYSA-N Cc3ccc(NC(=O)c2ccc(CN1CCN(C)CC1)cc2)cc3Nc5nccc(c4cccnc4)n5 493.26 66 10
50434581 BDBM50434581 imatinib-CD3 KTUFNOKKBVMGRW-BMSJAHLVSA-N [2H]C([2H])([2H])N5CCN(Cc4ccc(C(=O)Nc3ccc(C)c(Nc2nccc(c1cccnc1)n2)c3)cc4)CC5 496.58 2 2
50634633 BDBM50634633 KTUFNOKKBVMGRW-BMSJAHLVSA-N [2H]C([2H])([2H])N5CCN(Cc4ccc(C(=O)Nc3ccc(C)c(Nc2nccc(c1cccnc1)n2)c3)cc4)CC5 496.28 2 1
31341 BDBM31341 IMATINIB KTUFNOKKBVMGRW-UHFFFAOYSA-N Cc1ccc(cc1Nc2nccc(n2)c3cccnc3)NC(=O)c4ccc(cc4)CN5CCN(CC5)C 0 0
In [ ]:
Call 5 · run_sql · ran 2026-11-24 04:55:00 UTC (14 lines)
# Call 5 · run_sql · ran 2026-11-24 04:55:00 UTC
sql = """
    -- Every BindingDB record on the imatinib skeleton (InChIKey first block KTUFNOKKBVMGRW), with its measurements and targets
    SELECT c.monomerid, 'BDBM' || c.monomerid AS bdbm_id, c.name, c.inchi_key, c.smiles,
           count(a.monomerid) AS n_measurements,
           count(DISTINCT coalesce(CAST(a.polymerid AS VARCHAR), 'c' || a.complexid)) AS n_targets
    FROM compound c LEFT JOIN activity a USING (monomerid)
    WHERE c.inchi_key LIKE 'KTUFNOKKBVMGRW-%'
    GROUP BY ALL
    ORDER BY n_measurements DESC, c.monomerid
    
"""
await replay.call(5, 'run_sql', {'sql': sql},
                  sha256='0408b2da57419f9f1a3425c706493659fc4a470c4588595c2744fd2d7cb72525')

Call 5 · run_sql · recorded result · sha256 0408b2da5741…

5 rows

monomerid bdbm_id name inchi_key smiles n_measurements n_targets
13530 BDBM13530 Gleevec KTUFNOKKBVMGRW-UHFFFAOYSA-N CN1CCN(Cc2ccc(cc2)C(=O)Nc2ccc(C)c(Nc3nccc(n3)-c3cccnc3)c2)CC1 1156 459
86734 BDBM86734 Gleevec KTUFNOKKBVMGRW-UHFFFAOYSA-N Cc3ccc(NC(=O)c2ccc(CN1CCN(C)CC1)cc2)cc3Nc5nccc(c4cccnc4)n5 66 10
50434581 BDBM50434581 imatinib-CD3 KTUFNOKKBVMGRW-BMSJAHLVSA-N [2H]C([2H])([2H])N5CCN(Cc4ccc(C(=O)Nc3ccc(C)c(Nc2nccc(c1cccnc1)n2)c3)cc4)CC5 2 2
50634633 BDBM50634633 KTUFNOKKBVMGRW-BMSJAHLVSA-N [2H]C([2H])([2H])N5CCN(Cc4ccc(C(=O)Nc3ccc(C)c(Nc2nccc(c1cccnc1)n2)c3)cc4)CC5 2 1
31341 BDBM31341 IMATINIB KTUFNOKKBVMGRW-UHFFFAOYSA-N Cc1ccc(cc1Nc2nccc(n2)c3cccnc3)NC(=O)c4ccc(cc4)CN5CCN(CC5)C 0 0

🧠 Assistant

Yes. All four identifiers lead to imatinib (BDBM13530), the record with 1,156 measurements against 459 targets. The InChIKey search also turns up four more BindingDB records built on the same skeleton, which the other identifiers miss.

Query Type Top hit Notes
CHEMBL941 ChEMBL id BDBM13530 Exact match ranks first. The other 19 rows are substring matches (CHEMBL94191, CHEMBL94139, CHEMBL9416 ...) and should be ignored
cid_5291 PubChem CID BDBM13530 BindingDB stores PubChem CIDs as cid_<number>; again, 19 substring matches (cid_5291664 ...) follow
BDBM13530 BindingDB id BDBM13530 Only one hit
KTUFNOKKBVMGRW InChIKey first block 5 records See below

What the InChIKey search adds. An InChIKey has three blocks. The first 14 characters encode the molecular skeleton (atoms and connectivity). The second block encodes stereochemistry and isotopes, and the last character encodes protonation. Searching on the first block alone finds every record built on the same skeleton:

BindingDB id Name Full InChIKey Measurements Targets SMILES
BDBM13530 Gleevec KTUFNOKKBVMGRW-UHFFFAOYSA-N 1,156 459 CN1CCN(Cc2ccc(cc2)C(=O)Nc2ccc(C)c(Nc3nccc(n3)-c3cccnc3)c2)CC1
BDBM86734 Gleevec KTUFNOKKBVMGRW-UHFFFAOYSA-N 66 10 Cc3ccc(NC(=O)c2ccc(CN1CCN(C)CC1)cc2)cc3Nc5nccc(c4cccnc4)n5
BDBM50434581 imatinib-CD3 KTUFNOKKBVMGRW-BMSJAHLVSA-N 2 2 [2H]C([2H])([2H])N5CCN(Cc4ccc(C(=O)Nc3ccc(C)c(Nc2nccc(c1cccnc1)n2)c3)cc4)CC5
BDBM50634633 (no name) KTUFNOKKBVMGRW-BMSJAHLVSA-N 2 1 [2H]C([2H])([2H])N5CCN(Cc4ccc(C(=O)Nc3ccc(C)c(Nc2nccc(c1cccnc1)n2)c3)cc4)CC5
BDBM31341 IMATINIB KTUFNOKKBVMGRW-UHFFFAOYSA-N 0 0 Cc1ccc(cc1Nc2nccc(n2)c3cccnc3)NC(=O)c4ccc(cc4)CN5CCN(CC5)C

The lesson: one molecule can have several BindingDB records. BindingDB creates records as data are deposited from different papers and patents. BDBM86734 has the identical full InChIKey as BDBM13530 and carries 66 more imatinib measurements on 10 targets. A search on the name or ChEMBL id never shows it. The two deuterated records (second block BMSJAHLVSA) are isotope-labelled imatinib (a CD3 group on the piperazine), which is a different substance and usually should not be pooled.

If you want all data for a compound, search by the full InChIKey (same molecule, same isotopes and stereo) or by the first block (all stereoisomers, isotopologues and charge states), then decide which records to merge. Tools such as find_targets_for_compound accept an inchi_key argument for this.

How this was answered

  • search_compounds four times, once per identifier. The same tool accepts names, ChEMBL ids, PubChem cid_N, BDBM ids and full or partial InChIKeys.
  • run_sql to count measurements and targets for every record whose InChIKey starts with KTUFNOKKBVMGRW-:
SELECT c.monomerid, 'BDBM' || c.monomerid AS bdbm_id, c.name, c.inchi_key, c.smiles,
       count(a.monomerid) AS n_measurements,
       count(DISTINCT coalesce(CAST(a.polymerid AS VARCHAR), 'c' || a.complexid)) AS n_targets
FROM compound c LEFT JOIN activity a USING (monomerid)
WHERE c.inchi_key LIKE 'KTUFNOKKBVMGRW-%'
GROUP BY ALL
ORDER BY n_measurements DESC, c.monomerid

Try next

  • "Which targets does imatinib bind below 100 nM?" (Example 3.2)
  • "Is (S)-crizotinib in BindingDB as its own compound, separate from crizotinib?" — how stereo affects structure matching (Example 2.1)

Verification¶

How each rerun call compared with its recorded result.

In [ ]:
replay.summary()

Recorded: 5 tool calls. Run all cells to compare.

How to cite¶

Cite this notebook (for example deposited with a DOI) together with the data and software it ran on:

  • Data: BindingDB release 202611, https://www.bindingdb.org/rwd/bind/BDB-mySQL_All_202611_dmp.zip (SHA-256 daea9260d404919a183ce02d91bf4b9c49b410bea7eaaeba105c8e0280510381)
  • Software: mcp-bindingdb v0.1.17, commit 79dae5d22c0f15b8ded9b49adc8b105f0463703a, https://github.com/sbl-sdsc/mcp-bindingdb
  • Analysis: Example 1.2 — Look up a compound by identifier, 2026-11-23, with claude-opus-5-5
  • BindingDB: Liu T, Hwang L, Burley SK, Nitsche CI, Southan C, Walters WP, Gilson MK. BindingDB in 2024: a FAIR knowledgebase of protein-small molecule binding data. Nucleic Acids Research 53(D1):D1633-D1644, 2025. https://doi.org/10.1093/nar/gkae1075

As BibTeX, for this server, BindingDB and RDKit (used for structure search, properties and drawings):

@software{rose2026mcp-bindingdb,
  title={MCP BindingDB Server},
  author={Rose, P.W.},
  year={2026},
  url={https://github.com/sbl-sdsc/mcp-bindingdb}
}

@article{liu2025bindingdb,
  title={BindingDB in 2024: a FAIR knowledgebase of protein-small molecule binding data},
  author={Liu, T. and Hwang, L. and Burley, S.K. and Nitsche, C.I. and Southan, C. and Walters, W.P. and Gilson, M.K.},
  journal={Nucleic Acids Research},
  volume={53},
  number={D1},
  pages={D1633--D1644},
  year={2025},
  doi={10.1093/nar/gkae1075}
}

@software{rdkit,
  title={RDKit: Open-source cheminformatics},
  author={Landrum, G. and others},
  version={2026.03.6},
  url={https://www.rdkit.org},
  doi={10.5281/zenodo.591637}
}