Example 1.3 — Look up a target by gene name (EGFR)¶

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.3-target-by-gene-name-notebook
uv run --no-project --with-requirements requirements.txt --with jupyterlab jupyter lab 1.3-target-by-gene-name-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.3-target-by-gene-name-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.3-target-by-gene-name-notebook
BINDINGDB_RERUN=1 uv run --no-project --with-requirements requirements.txt --with nbconvert jupyter nbconvert --to notebook --execute --output 1.3-target-by-gene-name-notebook-rerun.ipynb 1.3-target-by-gene-name-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

Find the human EGFR protein in BindingDB. How much data is there?

In [ ]:
Call 1 · search_targets · ran 2026-11-24 04:54:59 UTC (3 lines)
# Call 1 · search_targets · ran 2026-11-24 04:54:59 UTC
await replay.call(1, 'search_targets', {'query': 'EGFR', 'organism': 'Homo sapiens'},
                  sha256='5566f990ce0794d4346e8e871914fee0fedd74c2c1d74ee7ccd09953b8554b9e')

Call 1 · search_targets · recorded result · sha256 5566f990ce07…

20 rows, truncated at the limit

target_kind target_id name uniprot uniprot_raw organism type n_activities n_compounds matched_name
polymer 520 Epidermal growth factor receptor P00533 P00533 Homo sapiens Receptor Kinase Domain 23267 14127 EGFR
polymer 60 Epidermal growth factor receptor [T790M,L858R] P00533 P00533[T790M,L858R] Homo sapiens 1536 1276 EGFR
polymer 1058 Epidermal growth factor receptor [L858R,T790M,C797S] P00533 P00533[L858R,T790M,C797S] Homo sapiens Enzyme Catalytic Domain 703 679 EGFR
polymer 1214 Epidermal growth factor receptor [L858R,C797S] P00533 P00533[L858R,C797S] Homo sapiens Enzyme Catalytic Domain 684 683 EGFR
polymer 51 Epidermal growth factor receptor [L858R] P00533 P00533[L858R] Homo sapiens 678 646 EGFR
polymer 1198 Epidermal growth factor receptor [1-18,20-1210,T790M,C797S] P00533 P00533[1-18,20-1210,T790M,C797S] Homo sapiens Enzyme Catalytic Domain 478 451 EGFR
polymer 1197 Epidermal growth factor receptor [1-18,20-1210,C797S] P00533 P00533[1-18,20-1210,C797S] Homo sapiens Enzyme Catalytic Domain 428 415 EGFR
polymer 1253 Epidermal growth factor receptor [1-770,'NPG',771-1210] P00533 P00533[1-770,'NPG',771-1210] Homo sapiens Enzyme Catalytic Domain 415 410 EGFR
polymer 1252 Epidermal growth factor receptor [1-770,'SVD',771-1210] P00533 P00533[1-770,'SVD',771-1210] Homo sapiens Enzyme Catalytic Domain 302 282 EGFR
polymer 535 Epidermal growth factor receptor [1-745,751-1210] P00533 P00533[1-745,751-1210] Homo sapiens Enzyme Catalytic Domain 246 245 EGFR
polymer 243 Epidermal growth factor receptor [T790M] P00533 P00533[T790M] Homo sapiens Enzyme 229 213 EGFR
polymer 1148 Epidermal growth factor receptor [695-1022,T790M,C797S,L858R] P00533 P00533[695-1022,T790M,C797S,L858R] Homo sapiens Enzyme Catalytic Domain 151 130 EGFR
polymer 1200 Epidermal growth factor receptor [1-18,20-1210] P00533 P00533[1-18,20-1210] Homo sapiens Enzyme Catalytic Domain 150 150 EGFR
polymer 1150 Epidermal growth factor receptor [695-1022] P00533 P00533[695-1022] Homo sapiens Enzyme Catalytic Domain 142 124 EGFR
polymer 1201 Epidermal growth factor receptor [1-18,20-1210,T790M] P00533 P00533[1-18,20-1210,T790M] Homo sapiens Enzyme Catalytic Domain 95 83 EGFR
polymer 1217 Epidermal growth factor receptor [669-770,'SVD',771-1210] P00533 P00533[669-770,'SVD',771-1210] Homo sapiens Enzyme Catalytic Domain 73 45 EGFR
polymer 1251 Epidermal growth factor receptor [S768I] P00533 P00533[S768I] Homo sapiens Enzyme Catalytic Domain 58 58 EGFR
polymer 1254 Epidermal growth factor receptor [1-769,'SVD',770-1210] P00533 P00533[1-769,'SVD',770-1210] Homo sapiens Enzyme Catalytic Domain 58 58 EGFR
polymer 1255 Epidermal growth factor receptor [1-769,'SV',770-1210] P00533 P00533[1-769,'SV',770-1210] Homo sapiens Enzyme Catalytic Domain 58 58 EGFR
polymer 1127 Epidermal growth factor receptor [695-745,751-1022,T790M,C797S] P00533 P00533[695-745,751-1022,T790M,C797S] Homo sapiens Enzyme Catalytic Domain 49 49 EGFR
In [ ]:
Call 2 · get_target · ran 2026-11-24 04:54:59 UTC (3 lines)
# Call 2 · get_target · ran 2026-11-24 04:54:59 UTC
await replay.call(2, 'get_target', {'target_id': 520},
                  sha256='575528fd2ce471ce69831bf7994714a77f700056c62fe000520a8635bfb43604')

Call 2 · get_target · recorded result · sha256 575528fd2ce4…

{
  "target": {
    "target_kind": "polymer",
    "target_id": 520,
    "name": "Epidermal growth factor receptor",
    "uniprot": "P00533",
    "uniprot_raw": "P00533",
    "organism": "Homo sapiens",
    "taxid": "9606",
    "type": "Receptor Kinase Domain",
    "res_count": 1210,
    "n_pdb_ids": 278,
    "chembl_id": "CHEMBL1955",
    "n_activities": 23267,
    "n_compounds": 14127,
    "unpid2": "",
    "common_name": "HUMAN",
    "topology": "Linear",
    "weight": "134279.59",
    "pdb_ids": "7SZ7,7SZ5,7SYE,7SYD,7SZ1,7SZ0,8HGS,8HGP,8HGO,5XWD,3QWQ,7OM4,1IVO,9Z9F,9Z9E,4UV7,9IPE,9IPD,9IPC,9IPB,9IPA,9IP9,9IP8,9IP7,4KRO,3B2V,1NQL,4KRP,1YY9,6ARU,3NJP,4UIP,1MOX,5WB8,5WB7,7LFR,7LEN,7LFS,3GOP,8UKV,8UKX,8UKW,5CNN,5ZWJ,9P9U,4RIY,4RIX,4RIW,9U91,8HV2,7AEM,8TJL,8F1Z,8F1Y,8F1X,8F1H,7U9A,7U99,7KXZ,4ZJV,9GHV,9GHU,9GHT,9GHS,9GHR,7SI1,7B85,5EM8,5CZI,5CZH,5CAV,4WD5,4R5S,4LQM,3IKA,1M17,1M14,4TKS,7UKV,3VJO,8PNZ,7AEI,5UGB,4I23,1XKK,9QXN,4LL0,9Q0S,9PMZ,9OU9,9OS6,9NM0,9NJN,9NJ7,9NIS,9NHW,9NGP,9MST,9MSS,9MSR,9KL4,9H47,9H46,9H42,9GL9,9GI9,9FRD,9DM8,8SC7,8G63,6VHP,6VHN,6VH4,6D8E,5Y9T,4ZAU,4WRG,4WKQ,4G5J,3W33,3W32,3W2S,3POZ,2RF9,2J6M,2J5F,2J5E,2ITY,2ITX,2ITW,2GS6,2GS2,2EB2,7T4I,5XDL,5FED,2JIV,2JIU,9GDV,9GC6,9GC5,9FZS,9FZR,9BY6,9BY4,8PO4,8PO3,4I24,2EB3,4LRM,9XU9,5X2K,4G5P,2JIT,8GK5,8GB4,8F1W,8EME,7U98,7LTX,7LG8,7KY0,7JXW,7JXQ,7JXP,7JXM,7JXL,7JXK,7JXI,6JZ0,6JX4,6JX0,6DUK,5YU9,5XGM,5XDK,5X2F,5X2C,5X2A,5X28,5X27,5X26,5GTZ,5GTY,5GMP,5FEQ,5FEE,5D41,4ZSE,3VJN,3UG2,3UG1,2ITZ,2ITV,2ITU,2ITT,2ITQ,2ITP,2ITO,2ITN,8TO4,8TO3,8FV4,8FV3,7UKW,6XL4,6WXN,6WAK,6WA2,6V5P,6V5N,6JWL,5CNO,4I21,3GT8,2GS7,7ZYQ,7A6K,7A6J,7A6I,7A2A,6Z4D,6Z4B,6TG1,6TG0,6TFZ,6TFY,6TFW,6TFV,6TFU,4JRV,4JR3,4JQ8,4JQ7,8H7X,8DSW,7K1I,7K1H,6JRX,5ZTO,5XGN,5JEB,4HJO,8PO0,4I20,9KLW,4LI5,6V6O,6V6K,6V66,6P8Q,6P1L,6P1D,9NTP,9DF2,8D76,8D73,5UWD,5UGC,5UGA,5UG9,5UG8,5U8L,5HG9,5HG8,5HG7,5HG5,4I22,4I1Z,9U8C,9JQ1,9DF4,9DF3,6JXT,6JRK,5J9Z,9HBO,9GC4"
  },
  "synonyms": [
    "EGFR",
    "ERBB",
    "HER1",
    "ERBB1",
    "EGFR_HUMAN",
    "EGF Receptor Substrate",
    "Proto-oncogene c-ErbB-1",
    "Protein-Tyrosine Kinase Erbb-1",
    "Tyrosine-Protein Kinase ErbB-1",
    "Epidermal growth factor receptor",
    "Epidermal Growth Factor Receptor erbB-1",
    "Epidermal growth factor receptor (EGFR)",
    "Epidermal growth factor receptor (HER1)",
    "Receptor tyrosine-protein kinase ErbB-1",
    "Epidermal Growth Factor Receptor, ErbB-1",
    "Epidermal Growth Factor Receptor Tyrosine Kinase"
  ]
}

measurements_by_type: 4 rows

affinity_type n_measurements n_compounds best_p_affinity
IC50 20998 13814 11.7
Kd 1593 180 10
Ki 409 288 11.22
EC50 267 147 9
In [ ]:
Call 3 · run_sql · ran 2026-11-24 04:54:59 UTC (12 lines)
# Call 3 · run_sql · ran 2026-11-24 04:54:59 UTC
sql = """
    -- All BindingDB targets on UniProt P00533 (human EGFR): wild type, mutants and constructs
    SELECT polymerid AS target_id, uniprot_raw, count(*) AS n_measurements, count(DISTINCT monomerid) AS n_compounds
    FROM activity
    WHERE uniprot = 'P00533'
    GROUP BY ALL
    ORDER BY n_measurements DESC, target_id
    
"""
await replay.call(3, 'run_sql', {'sql': sql},
                  sha256='aec91062a91dbab22645fcbe178dfc48416e977f52e38ec9e898a4546db3c3b4')

Call 3 · run_sql · recorded result · sha256 aec91062a91d…

56 rows

target_id uniprot_raw n_measurements n_compounds
520 P00533 23267 14127
60 P00533[T790M,L858R] 1536 1276
1058 P00533[L858R,T790M,C797S] 703 679
1214 P00533[L858R,C797S] 684 683
51 P00533[L858R] 678 646
1655 P00533[1-745,751-1210,C797S] 665 664
1198 P00533[1-18,20-1210,T790M,C797S] 478 451
1197 P00533[1-18,20-1210,C797S] 428 415
1253 P00533[1-770,'NPG',771-1210] 415 410
1252 P00533[1-770,'SVD',771-1210] 302 282
1788 P00533[T790M,C797S,L858R] 275 275
535 P00533[1-745,751-1210] 246 245
243 P00533[T790M] 229 213
1847 P00533[669-1210] 165 165
1148 P00533[695-1022,T790M,C797S,L858R] 151 130
1200 P00533[1-18,20-1210] 150 150
1150 P00533[695-1022] 142 124
1734 P00533[1-763,'FHEA',764-1210] 106 106
1539 P00533[1-773,'NPH',774-1210] 103 98
1542 P00533[1-769,'ASV',770-1210] 102 97
1201 P00533[1-18,20-1210,T790M] 95 83
1834 P00533[1-18,20-745,751-1210,T790M] 80 80
1217 P00533[669-770,'SVD',771-1210] 73 45
1251 P00533[S768I] 58 58
1254 P00533[1-769,'SVD',770-1210] 58 58
1255 P00533[1-769,'SV',770-1210] 58 58
1127 P00533[695-745,751-1022,T790M,C797S] 49 49
10043 P00533[645-1186] 33 33
1052 P00533[1-18,20-745,747-749,751-1210] 29 28
1054 P00533[1-18,20-745,747-749,751-1210,T790M] 29 28
10125 P00533[668-1210,T790M,L858R] 28 25
588 P00533[1-249,301-1210,T790M,L858R] 23 23
3997 P00533[G719C] 23 22
4460 P00533[1-999,L858R] 18 18
5914 P00533[1-973] 17 17
1911 P00533[1-770,'NPG',771-1210,T790M] 13 13
3945 P00533[668-1210] 13 10
632 P00533[1-745,747-749,751-1210] 12 11
1256 P00533[1-772,'NPH',773-1210] 12 12
2959 P00533[696-1022,L858R] 11 9
677 P00533[1-745,751-1210,T790M] 10 10
1659 P00533[1-745,751-1210,T790M,C797S] 10 10
3392 P00533[671-1210,L858R] 10 10
634 P00533[1-751,753-758,760-1210] 8 8
3950 P00533[696-1210,T790M] 5 5
636 P00533[G719S] 3 3
637 P00533[L861Q] 3 3
2958 P00533[696-1022,G719S] 2 2
2960 P00533[696-1022,T790M] 2 2
2961 P00533[696-1022,T790M,L858R] 2 2
10580 P00533[1-746,750-1210,A750P] 2 2
10581 P00533[1-746,753-1210,P753S] 2 2
10582 P00533[1-751,75360-1210] 2 2
638 P00533[1-746,748-748,750-1210,A750P] 1 1
639 P00533[1-746,748-751,753-1210,P753S] 1 1
640 P00533[1-746,748-750,752-1210] 1 1
In [ ]:
Call 4 · run_sql · ran 2026-11-24 04:54:59 UTC (15 lines)
# Call 4 · run_sql · ran 2026-11-24 04:54:59 UTC
sql = """
    -- Whole-gene total for P00533, and EGFR targets in other organisms
    SELECT 'P00533, all variants' AS target, 'Homo sapiens' AS organism, count(DISTINCT polymerid) AS n_targets, count(*) AS n_measurements, count(DISTINCT monomerid) AS n_compounds
    FROM activity WHERE uniprot = 'P00533'
    UNION ALL
    SELECT uniprot_raw || ' ' || target_name, organism, count(DISTINCT polymerid), count(*), count(DISTINCT monomerid)
    FROM activity
    WHERE organism <> 'Homo sapiens' AND target_name ILIKE 'Epidermal growth factor receptor%'
    GROUP BY ALL
    ORDER BY n_measurements DESC
    
"""
await replay.call(4, 'run_sql', {'sql': sql},
                  sha256='63c4c798b52b52c3bc12335c747e9539b2043faacd83fecef3f7f4c7ea26b2ce')

Call 4 · run_sql · recorded result · sha256 63c4c798b52b…

6 rows

target organism n_targets n_measurements n_compounds
P00533, all variants Homo sapiens 56 31621 16406
P00533[1-745,751-1210,C797S] Epidermal growth factor receptor [1-745,751-1210,C797S] 1 665 664
P00533[T790M,C797S,L858R] Epidermal growth factor receptor [T790M,C797S,L858R] 1 275 275
Q01279 Epidermal growth factor receptor Mus musculus 1 86 84
P00533[1-18,20-745,751-1210,T790M] Epidermal growth factor receptor [1-18,20-745,751-1210,T790M] 1 80 80
P00533[1-770,'NPG',771-1210,T790M] Epidermal growth factor receptor [1-770,'NPG',771-1210,T790M] 1 13 13
In [ ]:
Call 5 · search_targets · ran 2026-11-24 04:54:59 UTC (3 lines)
# Call 5 · search_targets · ran 2026-11-24 04:54:59 UTC
await replay.call(5, 'search_targets', {'query': 'P00533', 'limit': 60},
                  sha256='211631873d251bafde05c85160c315b3d918cdec21d5119fd8794077d809e421')

Call 5 · search_targets · recorded result · sha256 211631873d25…

58 rows

target_kind target_id name uniprot uniprot_raw organism type n_activities n_compounds
polymer 520 Epidermal growth factor receptor P00533 P00533 Homo sapiens Receptor Kinase Domain 23267 14127
polymer 60 Epidermal growth factor receptor [T790M,L858R] P00533 P00533[T790M,L858R] Homo sapiens 1536 1276
polymer 1058 Epidermal growth factor receptor [L858R,T790M,C797S] P00533 P00533[L858R,T790M,C797S] Homo sapiens Enzyme Catalytic Domain 703 679
polymer 1214 Epidermal growth factor receptor [L858R,C797S] P00533 P00533[L858R,C797S] Homo sapiens Enzyme Catalytic Domain 684 683
polymer 51 Epidermal growth factor receptor [L858R] P00533 P00533[L858R] Homo sapiens 678 646
polymer 1655 Epidermal growth factor receptor [1-745,751-1210,C797S] P00533 P00533[1-745,751-1210,C797S] Enzyme Catalytic Domain 665 664
polymer 1198 Epidermal growth factor receptor [1-18,20-1210,T790M,C797S] P00533 P00533[1-18,20-1210,T790M,C797S] Homo sapiens Enzyme Catalytic Domain 478 451
polymer 1197 Epidermal growth factor receptor [1-18,20-1210,C797S] P00533 P00533[1-18,20-1210,C797S] Homo sapiens Enzyme Catalytic Domain 428 415
polymer 1253 Epidermal growth factor receptor [1-770,'NPG',771-1210] P00533 P00533[1-770,'NPG',771-1210] Homo sapiens Enzyme Catalytic Domain 415 410
polymer 1252 Epidermal growth factor receptor [1-770,'SVD',771-1210] P00533 P00533[1-770,'SVD',771-1210] Homo sapiens Enzyme Catalytic Domain 302 282
polymer 1788 Epidermal growth factor receptor [T790M,C797S,L858R] P00533 P00533[T790M,C797S,L858R] Enzyme Catalytic Domain 275 275
polymer 535 Epidermal growth factor receptor [1-745,751-1210] P00533 P00533[1-745,751-1210] Homo sapiens Enzyme Catalytic Domain 246 245
polymer 243 Epidermal growth factor receptor [T790M] P00533 P00533[T790M] Homo sapiens Enzyme 229 213
polymer 1847 Epidermal growth factor receptor [669-1210] P00533 P00533[669-1210] Enzyme 165 165
polymer 1148 Epidermal growth factor receptor [695-1022,T790M,C797S,L858R] P00533 P00533[695-1022,T790M,C797S,L858R] Homo sapiens Enzyme Catalytic Domain 151 130
polymer 1200 Epidermal growth factor receptor [1-18,20-1210] P00533 P00533[1-18,20-1210] Homo sapiens Enzyme Catalytic Domain 150 150
polymer 1150 Epidermal growth factor receptor [695-1022] P00533 P00533[695-1022] Homo sapiens Enzyme Catalytic Domain 142 124
polymer 1734 Epidermal growth factor receptor [1-763,'FHEA',764-1210] P00533 P00533[1-763,'FHEA',764-1210] Receptor Kinase Domain 106 106
polymer 1539 Epidermal growth factor receptor [1-773,'NPH',774-1210] P00533 P00533[1-773,'NPH',774-1210] Homo sapiens Enzyme Catalytic Domain 103 98
polymer 1542 Epidermal growth factor receptor [1-769,'ASV',770-1210] P00533 P00533[1-769,'ASV',770-1210] Homo sapiens Enzyme Catalytic Domain 102 97
polymer 1201 Epidermal growth factor receptor [1-18,20-1210,T790M] P00533 P00533[1-18,20-1210,T790M] Homo sapiens Enzyme Catalytic Domain 95 83
polymer 1834 Epidermal growth factor receptor [1-18,20-745,751-1210,T790M] P00533 P00533[1-18,20-745,751-1210,T790M] Enzyme Catalytic Domain 80 80
polymer 1217 Epidermal growth factor receptor [669-770,'SVD',771-1210] P00533 P00533[669-770,'SVD',771-1210] Homo sapiens Enzyme Catalytic Domain 73 45
polymer 1251 Epidermal growth factor receptor [S768I] P00533 P00533[S768I] Homo sapiens Enzyme Catalytic Domain 58 58
polymer 1254 Epidermal growth factor receptor [1-769,'SVD',770-1210] P00533 P00533[1-769,'SVD',770-1210] Homo sapiens Enzyme Catalytic Domain 58 58
polymer 1255 Epidermal growth factor receptor [1-769,'SV',770-1210] P00533 P00533[1-769,'SV',770-1210] Homo sapiens Enzyme Catalytic Domain 58 58
polymer 1127 Epidermal growth factor receptor [695-745,751-1022,T790M,C797S] P00533 P00533[695-745,751-1022,T790M,C797S] Homo sapiens Enzyme Catalytic Domain 49 49
polymer 10043 Epidermal growth factor receptor [645-1186] P00533 P00533[645-1186] Homo sapiens Protein 33 33
polymer 1052 Epidermal growth factor receptor [1-18,20-745,747-749,751-1210] P00533 P00533[1-18,20-745,747-749,751-1210] Homo sapiens Enzyme Catalytic Domain 29 28
polymer 1054 Epidermal growth factor receptor [1-18,20-745,747-749,751-1210,T790M] P00533 P00533[1-18,20-745,747-749,751-1210,T790M] Homo sapiens Enzyme Catalytic Domain 29 28
polymer 10125 Epidermal growth factor receptor [668-1210,T790M,L858R] P00533 P00533[668-1210,T790M,L858R] Homo sapiens Enzyme 28 25
polymer 588 Epidermal growth factor receptor [1-249,301-1210,T790M,L858R] P00533 P00533[1-249,301-1210,T790M,L858R] Homo sapiens Receptor Kinase Domain 23 23
polymer 3997 Epidermal growth factor receptor [G719C] P00533 P00533[G719C] Homo sapiens Tyrosine-protein kinase 23 22
polymer 4460 Epidermal growth factor receptor [1-999,L858R] P00533 P00533[1-999,L858R] Homo sapiens Enzyme Catalytic Domain 18 18
polymer 5914 Epidermal growth factor receptor [1-973] P00533 P00533[1-973] Homo sapiens Protein 17 17
polymer 1911 Epidermal growth factor receptor [1-770,'NPG',771-1210,T790M] P00533 P00533[1-770,'NPG',771-1210,T790M] 13 13
polymer 3945 Epidermal growth factor receptor [668-1210] P00533 P00533[668-1210] Homo sapiens Cytoplasmic region 13 10
polymer 632 Epidermal growth factor receptor [1-745,747-749,751-1210] P00533 P00533[1-745,747-749,751-1210] Homo sapiens Enzyme Catalytic Domain 12 11
polymer 1256 Epidermal growth factor receptor [1-772,'NPH',773-1210] P00533 P00533[1-772,'NPH',773-1210] Homo sapiens Enzyme Catalytic Domain 12 12
polymer 2959 Epidermal growth factor receptor [696-1022,L858R] P00533 P00533[696-1022,L858R] Homo sapiens Tyrosine-protein kinase 11 9
polymer 677 Epidermal growth factor receptor [1-745,751-1210,T790M] P00533 P00533[1-745,751-1210,T790M] Homo sapiens Enzyme Catalytic Domain 10 10
polymer 1659 Epidermal growth factor receptor [1-745,751-1210,T790M,C797S] P00533 P00533[1-745,751-1210,T790M,C797S] Enzyme Catalytic Domain 10 10
polymer 3392 Epidermal growth factor receptor [671-1210,L858R] P00533 P00533[671-1210,L858R] Homo sapiens Intracellular domain 10 10
polymer 634 Epidermal growth factor receptor [1-751,753-758,760-1210] P00533 P00533[1-751,753-758,760-1210] Homo sapiens Enzyme Catalytic Domain 8 8
polymer 3950 Epidermal growth factor receptor [696-1210,T790M] P00533 P00533[696-1210,T790M] Homo sapiens Cytoplasmic region 5 5
polymer 636 Epidermal growth factor receptor [G719S] P00533 P00533[G719S] Homo sapiens Enzyme Catalytic Domain 3 3
polymer 637 Epidermal growth factor receptor [L861Q] P00533 P00533[L861Q] Homo sapiens Enzyme Catalytic Domain 3 3
polymer 2958 Epidermal growth factor receptor [696-1022,G719S] P00533 P00533[696-1022,G719S] Homo sapiens Tyrosine-protein kinase 2 2
polymer 2960 Epidermal growth factor receptor [696-1022,T790M] P00533 P00533[696-1022,T790M] Homo sapiens Tyrosine-protein kinase 2 2
polymer 2961 Epidermal growth factor receptor [696-1022,T790M,L858R] P00533 P00533[696-1022,T790M,L858R] Homo sapiens Tyrosine-protein kinase 2 2
polymer 10580 Epidermal growth factor receptor [1-746,750-1210,A750P] P00533 P00533[1-746,750-1210,A750P] Homo sapiens Protein 2 2
polymer 10581 Epidermal growth factor receptor [1-746,753-1210,P753S] P00533 P00533[1-746,753-1210,P753S] Homo sapiens Protein 2 2
polymer 10582 Epidermal growth factor receptor [1-751,75360-1210] P00533 P00533[1-751,75360-1210] Homo sapiens Protein 2 2
polymer 638 Epidermal growth factor receptor [1-746,748-748,750-1210,A750P] P00533 P00533[1-746,748-748,750-1210,A750P] Homo sapiens Enzyme Catalytic Domain 1 1
polymer 639 Epidermal growth factor receptor [1-746,748-751,753-1210,P753S] P00533 P00533[1-746,748-751,753-1210,P753S] Homo sapiens Enzyme Catalytic Domain 1 1
polymer 640 Epidermal growth factor receptor [1-746,748-750,752-1210] P00533 P00533[1-746,748-750,752-1210] Homo sapiens Enzyme Catalytic Domain 1 1
polymer 235 Epidermal growth factor receptor [1-745,751-967] P00533 P00533[1-745,751-967] Homo sapiens 0 0
polymer 1837 Epidermal growth factor receptor [1-18,20-745,751-1210,T790M,C797S] P00533 P00533[1-18,20-745,751-1210,T790M,C797S] Enzyme Catalytic Domain 0 0

🧠 Assistant

Human EGFR (epidermal growth factor receptor, UniProt P00533) is BindingDB target 520, with 23,267 measurements on 14,127 compounds. Most of these are IC50 values:

Affinity type Measurements Compounds Best pAffinity
IC50 20,998 13,814 11.7
Kd 1,593 180 10.0
Ki 409 288 11.22
EC50 267 147 9.0

Other facts from the target record: 1,210 residues, ChEMBL id CHEMBL1955, 278 linked PDB structures (for example 1M17, erlotinib bound to the kinase domain), and synonyms including ERBB1, HER1 and EGFR_HUMAN.

One gene, many BindingDB targets. Target 520 is only the wild-type record. BindingDB stores every mutant and construct as a separate target. Searching by the accession P00533 returns 58 target records, and the 56 of them that have data hold 31,621 measurements on 16,406 compounds in total. The largest are:

Target id Variant Measurements Compounds
520 wild type 23,267 14,127
60 T790M / L858R 1,536 1,276
1058 L858R / T790M / C797S 703 679
1214 L858R / C797S 684 683
51 L858R 678 646
1655 exon-19 deletion (Δ746-750) / C797S 665 664
1198 T790M / C797S (residue 19 deleted) 478 451
1197 C797S (residue 19 deleted) 428 415
1253 exon-20 insertion NPG after 770 415 410
1252 exon-20 insertion SVD after 770 302 282
535 exon-19 deletion (Δ746-750) 246 245
243 T790M 229 213
1150 kinase domain 695-1022 142 124

The variant is written in the target name and in uniprot_raw: P00533[T790M,L858R] is a double mutant, P00533[1-745,751-1210] is the exon-19 deletion (residues 746-750 missing), P00533[1-770,'NPG',771-1210] is an exon-20 insertion, and P00533[695-1022] is a construct covering residues 695-1022. The clinically important resistance mutations (T790M, C797S), the activating mutations (L858R, exon-19 deletions) and the exon-20 insertions each have their own data. Note that the same triple mutant can appear more than once: L858R/T790M/C797S is target 1058 (703 measurements) and also target 1788 (P00533[T790M,C797S,L858R], 275 measurements).

Two cautions about the organism filter.

  • Without an organism filter, a name search for EGFR also returns mouse Egfr (Q01279, 86 measurements). Add "human" (organism='Homo sapiens') when you mean the human protein.
  • But the filter also has a cost: 8 of the 58 P00533 records have no organism recorded, and they drop out of a search filtered on Homo sapiens. They hold 1,314 measurements, including the exon-19 deletion/C797S mutant (target 1655, 665 measurements) and the second L858R/T790M/C797S record (target 1788, 275). Searching by the accession P00533 finds them all.

The lesson. Decide which target you mean before you ask for ligands. Use the wild-type id (520) for the classic "EGFR inhibitor" question. Use a mutant id for resistance questions, and check for duplicate records of the same mutant. Use the UniProt accession with variants included when you want everything measured on the gene.

How this was answered

  • search_targets with query "EGFR" and organism='Homo sapiens': matches gene names, protein names, UniProt entry names and accessions. Exact matches and the targets with the most data rank first.
  • get_target with id 520: identifiers, synonyms, PDB ids and counts by affinity type.
  • run_sql: counted all targets that share UniProt P00533 and their measurements, and the EGFR targets recorded under another organism (or none):
SELECT polymerid AS target_id, uniprot_raw, count(*) AS n_measurements, count(DISTINCT monomerid) AS n_compounds
FROM activity
WHERE uniprot = 'P00533'
GROUP BY ALL
ORDER BY n_measurements DESC, target_id
  • search_targets with query "P00533": every target record on the accession, with its organism field.

Try next

  • "What are the 20 most potent EGFR inhibitors with a Ki or Kd below 1 nM?" (Example 3.1)
  • "Compare inhibitors of EGFR wild type with the T790M mutant." (Example 3.3)

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.3 — Look up a target by gene name (EGFR), 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}
}