Quick Reference

April 25, 2026 ยท View on GitHub

This page is the high-signal command and vocabulary reference for day-to-day BioMCP use. It focuses on frequently used commands, common filter values, and domain constants that are useful for oncology and translational workflows.

Install

Binary installer (recommended):

curl -fsSL https://biomcp.org/install.sh | bash

PyPI tool install:

uv tool install biomcp-cli
# or inside an active Python environment:
# pip install biomcp-cli

Install the biomcp-cli package, then use the biomcp command for the commands below.

See Installation for source-build and platform-specific notes.

Core command grammar

biomcp search <entity> [filters]       # discovery
biomcp suggest <question>              # choose a worked-example playbook
biomcp discover <query>                # single-entity concept resolution before typed search/get
biomcp get <entity> <id> [section...]  # focused detail
biomcp <entity> <helper> <id>          # cross-entity pivots
biomcp enrich <GENE1,GENE2,...>        # gene-set enrichment
biomcp batch <entity> <id1,id2,...>    # parallel gets

Common lookups

biomcp get gene BRAF
biomcp get gene BRAF pathways
biomcp get gene BRCA1 diagnostics
biomcp get variant "BRAF V600E"
biomcp get variant "BRAF V600E" clinvar
biomcp get article 22663011
biomcp get article 22663011 tldr
biomcp get article 22663011 fulltext
biomcp get trial NCT02576665
biomcp get trial NCT02576665 eligibility
biomcp get drug carboplatin shortage
biomcp get disease MONDO:0005105
biomcp get disease tuberculosis diagnostics
biomcp get pathway hsa05200 genes
biomcp get protein P15056 domains
biomcp get protein P15056 complexes
biomcp variant oncokb "BRAF V600E"

Common searches

biomcp search gene BRAF --limit 5
biomcp search variant -g BRCA1 --significance pathogenic --limit 5
biomcp search trial -c melanoma --status recruiting --phase 2 --limit 5
biomcp search article -g BRAF -d melanoma --since 2024-01-01 --limit 5
biomcp search pathway -q "MAPK signaling" --limit 5
biomcp search pathway -q "Pathways in cancer" --limit 5
biomcp search protein -q kinase --limit 5
biomcp search adverse-event --drug pembrolizumab --serious --limit 5
biomcp search adverse-event "COVID-19 vaccine" --source all --limit 5
biomcp search adverse-event "MMR vaccine" --source vaers --limit 5
biomcp search diagnostic --gene BRCA1 --limit 5
biomcp search diagnostic --disease tuberculosis --source all --limit 5
biomcp search all --gene BRAF --disease melanoma
biomcp search all --keyword resistance --counts-only
biomcp suggest "What drugs treat melanoma?"
biomcp discover "chest pain"           # relational or multi-entity questions may redirect to search all --keyword

See also: Search All Workflow

Output modes and discovery commands

biomcp --json search gene -q BRAF --limit 3
biomcp --json suggest "When was imatinib approved?"
biomcp --json discover Keytruda
biomcp search trial -c melanoma --limit 3
biomcp list
biomcp list trial
biomcp health --apis-only
biomcp version

Helper pivots

biomcp variant trials "BRAF V600E" --limit 3
biomcp variant articles "BRAF V600E"
biomcp drug adverse-events pembrolizumab --limit 3
biomcp drug trials pembrolizumab --limit 3
biomcp disease trials melanoma --limit 3
biomcp disease drugs melanoma --limit 3
biomcp disease articles "Lynch syndrome" --limit 3
biomcp gene trials BRAF --limit 3
biomcp gene drugs BRAF --limit 3
biomcp gene articles BRCA1 --limit 3
biomcp gene pathways BRAF
biomcp pathway drugs R-HSA-5673001 --limit 3
biomcp pathway drugs hsa05200 --limit 3
biomcp pathway articles R-HSA-5673001 --limit 3
biomcp pathway trials R-HSA-5673001 --limit 3
biomcp protein structures P15056
biomcp article entities 22663011
biomcp article citations 22663011 --limit 3
biomcp article references 22663011 --limit 3
biomcp article recommendations 22663011 --limit 3

Study commands

study works on local downloaded cBioPortal-style datasets rather than the remote entity APIs.

Set BIOMCP_STUDY_DIR when you want an explicit dataset root for downloads and analysis; if it is unset, BioMCP uses its default study root.

CommandPurpose
biomcp study listList locally available studies
biomcp study download [--list] [<study_id>]List downloadable study IDs or install a study locally
biomcp study filter --study <id> [--mutated <symbol>] [--amplified <symbol>] [--deleted <symbol>] [--expression-above <gene:threshold>] [--expression-below <gene:threshold>] [--cancer-type <type>]Intersect mutation, CNA, expression, and clinical sample filters
`biomcp study query --study --gene --type <mutationscna
biomcp study cohort --study <id> --gene <symbol>Split a cohort into mutant vs wildtype groups
`biomcp study survival --study --gene [--endpoint <osdfs
`biomcp study compare --study --gene --type <expressionmutations> --target `
biomcp study co-occurrence --study <id> --genes <g1,g2,...>Compute pairwise mutation co-occurrence across genes

Examples:

biomcp study download --list
biomcp study download msk_impact_2017
biomcp study query --study msk_impact_2017 --gene TP53 --type mutations
biomcp study filter --study brca_tcga_pan_can_atlas_2018 --mutated TP53 --amplified ERBB2 --expression-above ERBB2:1.5
biomcp study compare --study brca_tcga_pan_can_atlas_2018 --gene TP53 --type expression --target ERBB2
biomcp study co-occurrence --study msk_impact_2017 --genes TP53,KRAS

study cohort, study survival, and study compare require data_mutations.txt and data_clinical_sample.txt. study survival also requires data_clinical_patient.txt with endpoint columns, and expression workflows require a supported expression matrix.

Common gene aliases

Use these aliases in search when a clinical report or paper does not use the HGNC symbol. Follow with get gene <SYMBOL> once you identify the canonical symbol.

Alias in literatureOfficial symbol
HER1EGFR
HER2ERBB2
P53TP53
C-KITKIT
PD-1PDCD1
PD-L1CD274
MLH-1MLH1
MSH-2MSH2

Trial geographic search quick coordinates

Use --lat, --lon, and --distance for trial site proximity filtering. Coordinates below are common starting points for regional searches.

CityStateLatitudeLongitude
BostonMA42.3601-71.0589
New YorkNY40.7128-74.0060
ChicagoIL41.8781-87.6298
HoustonTX29.7604-95.3698
Los AngelesCA34.0522-118.2437
San FranciscoCA37.7749-122.4194
SeattleWA47.6062-122.3321
AtlantaGA33.7490-84.3880

Example:

biomcp search trial -c melanoma --lat 42.3601 --lon -71.0589 --distance 50 --limit 5

Trial status values

--status accepts ClinicalTrials.gov style recruitment states. Common values:

Status valueMeaning
recruitingCurrently enrolling participants
not yet recruitingOpened but enrollment not started
active, not recruitingOngoing study, enrollment closed
completedStudy finished
terminatedStopped early
suspendedTemporarily paused
withdrawnStopped before enrollment
unknown statusLast known status is unclear

Trial phase values

--phase accepts either numeric shorthand or explicit phase labels.

InputInterpreted as
1PHASE1
2PHASE2
3PHASE3
4PHASE4
phase1PHASE1
phase2PHASE2
phase3PHASE3
phase4PHASE4

NCI CTS trial notes

search trial --source nci keeps the shared BioMCP flags but translates them to NCI CTS semantics:

  • --condition remains the entry point. BioMCP prefers diseases.nci_thesaurus_concept_id=<C-code> when grounding succeeds and falls back to CTS keyword=<text> when it does not. There is no separate NCI keyword flag.
  • --status accepts one normalized value at a time and maps it to CTS recruitment or lifecycle filters instead of sending raw CTGov status values.
  • --phase 1/2 becomes CTS I_II; early_phase1 is unsupported on NCI.
  • --lat/--lon/--distance becomes sites.org_coordinates_lat, sites.org_coordinates_lon, and sites.org_coordinates_dist=<N>mi.

Use these with biomcp search variant --significance <value>.

Significance valueTypical interpretation
pathogenicStrong evidence for disease association
likely_pathogenicEvidence leans disease-associated
uncertain_significanceEvidence is currently inconclusive
likely_benignEvidence leans non-pathogenic
benignStrong evidence against pathogenicity
conflicting_interpretationsSubmitters disagree
risk_factorAssociated with risk, not deterministic

Variant consequence values

Use these with biomcp search variant --consequence <value>.

Consequence valueDescription
missense_variantAmino acid substitution
nonsense_variantIntroduces stop codon
synonymous_variantNo amino acid change
frameshift_variantReading-frame disruption
splice_acceptor_variantSplice acceptor disruption
splice_donor_variantSplice donor disruption
inframe_deletionIn-frame codon deletion
inframe_insertionIn-frame codon insertion
stop_lostStop codon removed
start_lostStart codon removed