BioMCP CLI
If you don't know how to start, run biomcp suggest "<question>" first, then
open the returned biomcp skill <slug> playbook for the full workflow.
Routing rules
- Start with the narrowest command that matches the question.
- Use
biomcp discover "<free text>"when you only have a single biomedical phrase and need the CLI to resolve the first typed command.discoveris a single-entity resolver and single-entity free-text lookup only: use it to resolve the canonical name, ID, or category of one thing. It is not a relational query tool and not a list-question seed. Examples:biomcp discover BRCA1andbiomcp discover dabigatran. Symptom-of-disease prompts, HPO symptom bridges, treatment prompts, gene+disease orientation, and unambiguous gene-plus-topic follow-ups remain supported exceptions. - Relational or multi-entity questions may redirect to
biomcp search all --keyword "<query>"instead of surfacing weak collocation matches as if they were a resolved discover answer. - Use
biomcp search all --gene <gene> --disease "<disease>"when you know the entities but not the next pivot. - Treatment questions:
biomcp search drug --indication "<disease>" --limit 5 - Diagnostic-test questions: use structured pivots first with
biomcp get gene <symbol> diagnosticsorbiomcp get disease "<disease>" diagnostics; usebiomcp list diagnosticfor the full source/filter/section contract; usebiomcp search diagnostic --gene <symbol> --limit 5,biomcp search diagnostic --disease "<disease>" --source all --limit 5, orbiomcp get diagnostic <id>when you need the full search/detail surface. - Symptom or phenotype questions:
biomcp get disease <name_or_id> phenotypes - Gene-function questions:
biomcp get gene <symbol> - Drug-safety questions:
biomcp drug adverse-events <name>andbiomcp get drug <name> safety - Drug-interaction questions:
biomcp drug interactions <name>andbiomcp get drug <name> interactions - EMA and WHO regional drug data are local runtime files that auto-download on first use, DDInter is the local drug-interaction bundle, CDC CVX/MVX is the companion local vaccine-brand bridge for default/EU vaccine searches plus explicit WHO vaccine search, and GTR plus WHO IVD are local diagnostic-test backbones; run
biomcp ddinter sync,biomcp ema sync,biomcp who sync,biomcp cvx sync,biomcp gtr sync, orbiomcp who-ivd syncto force-refresh before freshness-sensitive local-runtime lookups. - Vaccine brand-name questions that miss on MyChem often need
biomcp search drug <brand> --region eu, omitted--region, or explicitbiomcp search drug <brand> --region who --product-type vaccine, which can bridge through CDC CVX/MVX into EMA or WHO vaccine matches. - Review-literature questions:
biomcp search article -k "<query>" --type review --limit 5 - Keyword-only article searches may return
_meta.suggestions[]objects when the whole keyword exactly matches a gene, drug, or disease label/alias; use the suggestedget gene,get drug, orget diseasecommand when structured data may answer before more article paging. - For repeated article keyword searches in one task, use JSON plus
--session <token>with a short non-secret local label. If the next keyword overlaps the previous same-session keyword,_meta.suggestions[]can point to priorarticle batch,discover, or date narrowing instead of more reformulation. - Some first-call JSON responses include
_meta.workflowand_meta.ladder[]; these are static sidecar-backed multi-step ladders. Treat_meta.next_commandsas dynamic one-hop follow-ups and_meta.ladder[]as the worked-example path for the named workflow. - After
search article, default tobiomcp article batch <id1> <id2> ...instead of repeatedget articlecalls. Batch up to 20 shortlisted papers in one call. - Use
biomcp batch gene <GENE1,GENE2,...>when you need the same basic card fields, chromosome, or sectioned output for multiple genes. - For diseases with weak ontology-name coverage, run
biomcp discover "<disease>"first, then pass a resolvedMESH:...,OMIM:...,ICD10CM:...,MONDO:..., orDOID:...identifier tobiomcp get disease. - Multi-hop article follow-up:
biomcp article citations <id> --limit 5andbiomcp article recommendations <id> --limit 5
Section reference
get gene ... protein: UniProt function and localization detailget gene ... hpa: Human Protein Atlas tissue expression and localizationget gene ... expression: GTEx tissue expressionget gene ... diseases: disease associationsget gene ... diagnostics: GTR diagnostic-test pivot for a geneget article ... annotations: PubTator normalized entity mentions for standardized extractionget article ... tldr: Semantic Scholar summary and influenceget disease ... genes: associated genesget disease ... phenotypes: HPO phenotype annotations; source-backed and sometimes incompleteget disease ... pathways: pathways from associated genesget disease ... diagnostics: GTR and WHO IVD diagnostic-test pivot for a conditionget diagnostic ... genes: joined gene names from the GTR detail bundleget diagnostic ... conditions: joined disease or condition names from GTRget diagnostic ... methods: source-native GTR testing methodsget diagnostic ... regulatory: opt-in FDA device 510(k) and PMA overlay for supported diagnostic recordsget drug ... label: FDA label indications, warnings, and dosageget drug ... regulatory: regulatory summaryget drug ... safety: safety context and warningsget drug ... interactions: DDInter-backed structured drug-drug interactions plus source-scoped empty wordingget drug ... targets: ChEMBL and OpenTargets targetsget drug ... indications: OpenTargets indication evidence
Cross-entity pivot rules
gene articles <symbol>andsearch article -g <symbol>are equivalent starting points for gene-filtered literature.- Use helpers when the pivot is obvious:
drug interactions,drug trials,disease trials,variant articles,article citations. - Use sectioned diagnostic pivots for gene or disease contexts:
get gene <symbol> diagnosticsandget disease <name_or_id> diagnostics. Usebiomcp list diagnosticfor source/filter/section details, and inspect returned IDs withget diagnostic <id>rather than inventing accessions or product codes. - Use
search article -d "<disease>" --type review --limit 5when disease phenotypes or drug indications look sparse. - Use
article batchas the default multi-article follow-up aftersearch article; it replaces sequentialget articlecalls and preserves Semantic Scholar enrichment when available. - Use
batch <entity> <id1,id2,...> --sections <s1,s2,...>when you need the same card shape for several entities. - Use
enrich <GENE1,GENE2,...>once you have a real gene set and want pathways or GO-style categories.
How-to reference
For question patterns that need more than a one-line routing hint, start with the executable command or routing phrase below before you improvise the command sequence.
| Question pattern | Start with | Why |
|---|---|---|
| Specific variant pathogenicity or clinical-evidence question | biomcp get variant "<variant>" | Use the bounded variant-pathogenicity workflow instead of mixing ad hoc variant, trial, and article commands |
| Specific drug safety or adverse-event question | biomcp drug adverse-events <name> and biomcp get drug <name> safety | Start with the drug-safety workflow before widening to literature |
| Drug interaction question for a known medication | biomcp drug interactions <name> or biomcp get drug <name> interactions | Start with the DDInter-backed helper when the anchor drug is known, then widen to safety or literature only for nuance |
| Drug approval, licensing, or regulatory-date question | biomcp get drug <name> regulatory | Use the structured-first workflow |