Skip to main content

Biomedical MCP CLI - query genes, variants, trials, articles, drugs, diseases

Project description

BioMCP

BioMCP is a single-binary CLI and MCP server for querying biomedical databases. One command grammar, compact markdown output, 12 entities across 15+ data sources.

Install

PyPI tool install

uv tool install biomcp-cli
# or: pip install biomcp-cli

This installs the biomcp binary on your PATH.

Binary install

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

Install skills

Install guided investigation workflows into your agent directory:

biomcp skill install ~/.claude --force

MCP clients

{
  "mcpServers": {
    "biomcp": {
      "command": "biomcp",
      "args": ["serve"]
    }
  }
}

From source

cargo build --release --locked

Quick start

biomcp health --apis-only            # verify API connectivity
biomcp list                          # show all entities and commands
biomcp list gene                     # show gene-specific filters and examples

Command grammar

search <entity> [filters]    → discovery
get <entity> <id> [sections] → focused detail
<entity> <helper> <id>       → cross-entity pivots
enrich <GENE1,GENE2,...>     → gene-set enrichment
batch <entity> <id1,id2,...> → parallel gets

Entities and sources

Entity Sources Example
gene MyGene.info, UniProt, Reactome, QuickGO, STRING, CIViC biomcp get gene BRAF pathways
variant MyVariant.info, ClinVar, gnomAD, CIViC, OncoKB, cBioPortal, GWAS Catalog, AlphaGenome biomcp get variant "BRAF V600E" clinvar
article PubMed, PubTator3, Europe PMC biomcp search article -g BRAF --limit 5
trial ClinicalTrials.gov, NCI CTS API biomcp search trial -c melanoma -s recruiting
drug MyChem.info, ChEMBL, OpenTargets, Drugs@FDA, CIViC biomcp get drug pembrolizumab targets
disease Monarch Initiative, MONDO, CIViC, OpenTargets biomcp get disease "Lynch syndrome" genes
pathway Reactome, g:Profiler biomcp get pathway R-HSA-5673001 genes
protein UniProt, InterPro, STRING, PDB/AlphaFold biomcp get protein P15056 domains
adverse-event OpenFDA (FAERS, MAUDE, Recalls) biomcp search adverse-event -d pembrolizumab
pgx CPIC, PharmGKB biomcp get pgx CYP2D6 recommendations
gwas GWAS Catalog biomcp search gwas --trait "type 2 diabetes"
phenotype Monarch Initiative (HPO) biomcp search phenotype "HP:0001250"

Cross-entity helpers

Pivot between related entities without rebuilding filters:

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

Gene-set enrichment

biomcp enrich BRAF,KRAS,NRAS --limit 10

Sections and progressive disclosure

Every get command supports selectable sections for focused output:

biomcp get gene BRAF                    # summary card
biomcp get gene BRAF pathways           # add pathway section
biomcp get gene BRAF civic interactions # multiple sections
biomcp get gene BRAF all                # everything

biomcp get variant "BRAF V600E" clinvar population conservation
biomcp get drug pembrolizumab label targets civic approvals
biomcp get disease "Lynch syndrome" genes phenotypes variants
biomcp get trial NCT02576665 eligibility locations outcomes

API keys

Most commands work without credentials. Optional keys improve rate limits:

export NCBI_API_KEY="..."      # PubTator, PMC OA, NCBI ID converter
export OPENFDA_API_KEY="..."   # OpenFDA rate limits
export NCI_API_KEY="..."       # NCI CTS trial search (--source nci)
export ONCOKB_TOKEN="..."      # OncoKB variant helper
export ALPHAGENOME_API_KEY="..." # AlphaGenome variant effect prediction

Multi-worker deployment

BioMCP rate limiting is process-local. For many concurrent workers, run one shared biomcp serve-http endpoint so all workers share a single limiter budget:

biomcp serve-http --host 0.0.0.0 --port 8080

Skills

14 guided investigation workflows are built in:

biomcp skill list
biomcp skill show 03
# Skill Focus
01 variant-to-treatment Variant annotation to treatment options
02 drug-investigation Drug mechanism, safety, alternatives
03 trial-searching Trial discovery and patient matching
04 rare-disease Rare disease evidence and trial strategy
05 drug-shortages Shortage monitoring and alternatives
06 advanced-therapies CAR-T and checkpoint therapy workflows
07 hereditary-cancer Hereditary cancer syndrome workup
08 resistance Resistance mechanisms and next-line options
09 gene-function-lookup Gene-centric function and context
10 gene-set-analysis Enrichment, pathway, and interaction synthesis
11 literature-synthesis Evidence synthesis with cross-entity checks
12 pharmacogenomics PGx gene-drug interactions and dosing
13 phenotype-triage Symptom-first rare disease workup
14 protein-pathway Protein structure and pathway deep dive

Ops

biomcp version          # show version and build info
biomcp health           # check all API connectivity
biomcp update           # self-update to latest release
biomcp update --check   # check for updates without installing
biomcp uninstall        # remove biomcp from ~/.local/bin

Documentation

Full documentation at biomcp.org.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

biomcp_cli-0.8.13-py3-none-win_amd64.whl (14.4 MB view details)

Uploaded Python 3Windows x86-64

biomcp_cli-0.8.13-py3-none-manylinux_2_34_x86_64.whl (15.6 MB view details)

Uploaded Python 3manylinux: glibc 2.34+ x86-64

biomcp_cli-0.8.13-py3-none-macosx_11_0_arm64.whl (13.6 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

biomcp_cli-0.8.13-py3-none-macosx_10_12_x86_64.whl (15.1 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file biomcp_cli-0.8.13-py3-none-win_amd64.whl.

File metadata

  • Download URL: biomcp_cli-0.8.13-py3-none-win_amd64.whl
  • Upload date:
  • Size: 14.4 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for biomcp_cli-0.8.13-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 b06e45b3190ca92faa30615314c6e5f9b801f90aec0c69f54db912f05cd6327f
MD5 c136bc406ecb31bb36450ff07c70d192
BLAKE2b-256 1e6921bddefad3fd0c2f3a1ea570b04b2c1b944500e0c631826ab4249b029b2c

See more details on using hashes here.

Provenance

The following attestation bundles were made for biomcp_cli-0.8.13-py3-none-win_amd64.whl:

Publisher: release.yml on genomoncology/biomcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file biomcp_cli-0.8.13-py3-none-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for biomcp_cli-0.8.13-py3-none-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 3622d3f5faf7a2fc7cbdff4a505a49bca85d64dcd52e27767243fbf72de77f50
MD5 7006768ba26a1b6d462334896e04d022
BLAKE2b-256 6bbd1ff7e44b7da6a7fdd975ce8e214105780db97fa8d3ff6ae58324d7c15f53

See more details on using hashes here.

Provenance

The following attestation bundles were made for biomcp_cli-0.8.13-py3-none-manylinux_2_34_x86_64.whl:

Publisher: release.yml on genomoncology/biomcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file biomcp_cli-0.8.13-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for biomcp_cli-0.8.13-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 100917055bab9cfc9f6fd681aacce14efa1cbbea7645e0ba5b1ebcefcc3d2f8f
MD5 d9320213240fd12f2694d65e03485821
BLAKE2b-256 b358b3ee5c15931b2d64cfb9aaeb9ef0b11a65a186da4cd0c06f2e72804c0435

See more details on using hashes here.

Provenance

The following attestation bundles were made for biomcp_cli-0.8.13-py3-none-macosx_11_0_arm64.whl:

Publisher: release.yml on genomoncology/biomcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file biomcp_cli-0.8.13-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for biomcp_cli-0.8.13-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8512b485a4c09f32e2185b0303f8db0fe732a9744183276d78b905d9fa6b6a24
MD5 3bf2377b5e26353b7588f8dbf9d64d4d
BLAKE2b-256 a7b0f52bf1007789171535f92a897c361e1460c064c4d877a5a9a1b0b01028ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for biomcp_cli-0.8.13-py3-none-macosx_10_12_x86_64.whl:

Publisher: release.yml on genomoncology/biomcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page