BioMCP-TS

v1.4.3
io.github.yeyuan98/biomcp-ts Checked 4 hours ago Published 2 months ago

Biomedical MCP server: genes, variants, trials, literature, patents, optional SQL/R/biowasm tools.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

gene_get

Get detailed gene information by symbol

ParameterTypeDescription
symbol *stringOfficial HGNC gene symbol (e.g., "BRAF", "TP53", "ERBB2"). Common aliases like "HER2" or "NEU" are NOT accepted unless smart=true is enabled.
limitinteger
sectionsarraySections to include
smartbooleanWhen true, automatically resolves gene aliases and common names to the official HGNC symbol before lookup (e.g., "HER2" → "ERBB2"). Zero overhead when input is already a valid HGNC symbol.

gene_diseases

Get diseases associated with a gene. Requires DISGENET_API_KEY environment variable for DisGeNET data; falls back to OpenTargets gene-disease associations when unavailable.

ParameterTypeDescription
symbol *stringHGNC gene symbol
limitinteger

gene_drugs

Find drugs targeting a gene

ParameterTypeDescription
symbol *stringHGNC gene symbol (e.g., "BRAF", "TP53")

gene_trials

Find clinical trials for a gene

ParameterTypeDescription
symbol *stringHGNC gene symbol

gene_articles

Find articles about a gene

ParameterTypeDescription
symbol *stringHGNC gene symbol

gene_enrich

Perform pathway enrichment analysis for a gene list

ParameterTypeDescription
genes *arrayList of HGNC gene symbols

variant_get

Get detailed variant information with optional sections. Core data (id, gene, rsid, significance) is always returned at the top level. Use sections to request additional data.

ParameterTypeDescription
id *stringVariant ID (rsid, HGVS, or ClinVar ID)
limitinteger
sectionsarraySections to include: core, frequency, predictions, clinical, alphagenome_scores (currently unavailable — returns an error stub pending AlphaGenome gRPC reimplementation)

variant_oncokb

Get OncoKB annotations for a variant in a cancer gene. Requires ONCOKB_TOKEN environment variable.

ParameterTypeDescription
gene *stringGene symbol (e.g., BRAF, EGFR)
protein_change *stringProtein change (e.g., V600E, L858R)

variant_trials

Find clinical trials for a variant

ParameterTypeDescription
variant *stringVariant ID (rsID, HGVS, or variant ID)

drug_get

Get detailed drug information by name

ParameterTypeDescription
name *stringDrug name (e.g., "imatinib", "aspirin")
limitinteger
sectionsarraySections to include (adverse_events = FDA FAERS adverse reactions ranked by report count; limit applies to reaction rows)

drug_trials

Find clinical trials for a drug

ParameterTypeDescription
drug *stringDrug name

disease_get

Get detailed disease information by ID

ParameterTypeDescription
disease_id *stringDisease ID (e.g., "DOID:0060268", "C0018794")
limitinteger
sectionsarraySections to include

disease_drugs

Get drugs for a disease via OpenTargets

ParameterTypeDescription
disease_id *stringDisease ID
limitinteger

disease_trials

Get clinical trials for a disease

ParameterTypeDescription
disease_id *stringDisease ID
limitinteger

article_search

Search literature across multiple backends with federated search and deduplication

ParameterTypeDescription
query *stringSearch query (title, abstract, or keyword). Journal scoping: PubMed matches full journal names and NLM abbreviations; EuropePMC JOURNAL:"..." filters require the NLM abbreviation (e.g. "N Engl J Med")
dateRangestringDate range as YYYY-MM-DD/YYYY-MM-DD. Open-ended: "2020-01-01/" or "/2023-12-31". Only pubmed, europepmc, semantic_scholar support this.
limitintegerMaximum results to return. Applied to final deduplicated results, not per-source. Each source may fetch more internally before deduplication.
offsetintegerResult offset. EuropePMC windows are capped at 1000 rows; use narrower queries or another source for deeper results
sourcestringSpecific source to search

article_get

Get article by PMID/PMCID/DOI. Citation: fast mode (~4s, 4 providers, auto-fallback to PubMed) or full mode (~15-30s, all 5 providers incl. PubMed). Forward citation lists come from Europe PMC, Semantic Scholar, and OpenCitations; Crossref provides counts and references only.

ParameterTypeDescription
id *stringArticle identifier: PMID (numeric, e.g. "12345"), PMCID (e.g. "PMC1234567"), or DOI (e.g. "10.1038/s41586-021-03819-2")
citation_directionstringCitation direction: "forward" (articles citing this one), "backward" (references), "both" (default)
citation_modestringFast: Europe PMC, Semantic Scholar, OpenCitations, Crossref counts/references (~4s). Full: All 5 providers incl. PubMed (~15-30s). Fast mode auto-falls back to PubMed when other providers return no it…
limitintegerMaximum items per section (e.g., 20 citations)
sectionsarraySections to include. Use ["citation"] for citation data, ["all"] for everything.

trial_get

Get detailed trial information by NCT ID

ParameterTypeDescription
nct_id *stringNCT ID (e.g., "NCT01234567")
limitinteger
sectionsarraySections to include

discover

Free-text concept resolution - find entities matching a free-text query

ParameterTypeDescription
query *stringFree-text query (e.g., "BRAF V600E", "lung cancer", "imatinib")

batch_get

Get multiple entities in parallel

ParameterTypeDescription
inputs *arrayList of entity requests

pdb

Access the Protein Data Bank (RCSB PDB) for macromolecular structure data. SEARCH: Provide "query" to find structures (e.g., "kinase inhibitor", "hemoglobin"). GET: Provide "pdb_id" to retrieve entry metadata with optional detail sections. DOWNLOAD: Provide "pdb_id" + download=true to save the structure file and get the file path.

ParameterTypeDescription
downloadbooleanSave the structure file to disk and return the file path. Only used with pdb_id.
formatstringFile format: "cif" (mmCIF, recommended, always available) or "pdb" (legacy format, may not exist for some entries). Only used with download=true.
limitintegerMax search results
offsetintegerSearch result offset
pdb_idstringPDB identifier (e.g., "1CRN", "4HHB"). Required for get/download.
querystringFree-text search query to find PDB entries. Omit pdb_id when searching.
sectionsarrayMetadata sections: polymer_entities (chains and sequences), ligands (small molecules and ions), assembly (biological assembly), experiment (method, resolution), citation (publication). Use "all" for e…

patent_get

Get patent details by publication number (e.g. "US11027025B2", "EP3904939B1", "US20260240819A1"). Sections: abstract, claims (US fulltext via USPTO Public Search; EP/WO via EPO OPS), citations (backward + forward), family, classifications.

ParameterTypeDescription
patent_id *stringPublication number, e.g. "US11027025B2"
limitintegerMax entries per section array
sectionsarraySections to include (default: core only)

geo_get

Get the full SOFT record details for a GEO entry: series (GSE...), sample (GSM...), or platform (GPL...). A series detail includes summary, organisms, platform_ids, a sample preview, supplementary file URLs, and cross-references for chaining: sra → sra_get(SRP.../SRR...), pubmed_ids → article_get, samples → geo_get(GSM...), platform_ids → geo_get(GPL...). download=true additionally saves the first supplementary file (.gz/.csv/.txt, subject to max_bytes) to a local temp path and returns its path, size, and source URL.

ParameterTypeDescription
accession *stringGEO accession (GSE series, GSM sample, or GPL platform; GDS curated DataSets return guidance pointing at the underlying GSE/GSM)
downloadbooleanDownload the first supplementary file (.gz) to a local temp path
max_bytesintegerSize cap in bytes for the downloaded supplementary file (default 52428800 = 50 MB)

sra_get

Get full details for an NCBI SRA accession: SRR run (instrument, spots, bases, size), SRX experiment (library design), SRP study (experiment list), or SRS sample. Chain from geo_get (sra field) or sra_search (experiment_accession / first_run_accession). European (ERP/ERR) and DDBJ (DRP/DRR) accessions are NOT indexed in NCBI SRA — use ENA (https://www.ebi.ac.uk/ena) for those.

ParameterTypeDescription
accession *stringNCBI SRA accession: SRP (study), SRX (experiment), SRR (run), or SRS (sample), e.g. SRR14432476

genbank_get

Fetch a GenBank/RefSeq nucleotide record as text (GenBank flat file or FASTA). Whole-record fetches are capped at 2,000,000 bp — larger records require a seq_start/seq_stop region (1-based, inclusive, up to 10 Mb span; set strand=2 for a reverse-strand slice where seq_start > seq_stop — the region field echoes the request as given, while NCBI's text shows complement(min..max)). Output guard: sequence_text is truncated to its first 200,000 characters when oversized — request a narrower region for the full text.

ParameterTypeDescription
accession *stringGenBank/RefSeq accession, versioned or bare — NC_000023.11, NG_017013.2, KJ668569.2
formatstringRecord format: genbank flat file (default) or fasta
max_response_bytesintegerHard cap on the raw NCBI response in characters (default 30,000,000) — oversized responses error instead of truncating
seq_startintegerRegion start (1-based, inclusive) — required with seq_stop for records over 2 Mb
seq_stopintegerRegion stop (1-based, inclusive)
strandnumberStrand: 1=plus (default), 2=minus (reverse slice; allows seq_start > seq_stop)

genbank_genes

Map a GenBank/RefSeq nucleotide accession to its NCBI Gene IDs (elink nuccore→gene). The returned gene_ids are entrezgene IDs usable directly with MyGene-backed gene tools (gene_get, gene_search). Useful bridge from a sequence record to gene-level annotation.

ParameterTypeDescription
accession *stringGenBank/RefSeq accession, versioned or bare — e.g. NG_017013.2, NC_000023.11

gtex_expression

Get median gene expression across GTEx tissues (GTEx Analysis v10, 54 tissue sites, TPM, sorted highest first). Accepts an HGNC symbol (TP53) or Ensembl gene ID (ENSG00000141510, versioned or bare). Optionally filter to a single tissue via its tissueSiteDetailId (e.g. Brain_Cortex, Whole_Blood).

ParameterTypeDescription
gene *stringHGNC symbol (TP53) or Ensembl gene ID (ENSG00000141510, versioned or bare)
limitintegerMaximum tissues to return (highest expression first)
tissuestringGTEx tissueSiteDetailId filter, e.g. Brain_Cortex, Whole_Blood

gtex_eqtl

Get significant cis-eQTL associations for a gene in a specific GTEx tissue (GTEx Analysis v10): variant_id, p_value, and NES (effect direction/size), sorted by ascending p-value. tissue is a required GTEx tissueSiteDetailId (e.g. Whole_Blood, Brain_Cortex).

ParameterTypeDescription
gene *stringHGNC symbol (TP53) or Ensembl gene ID (ENSG00000141510, versioned or bare)
tissue *stringGTEx tissueSiteDetailId — required, e.g. Whole_Blood
limitintegerMaximum associations to return

ensembl_lookup

Resolve a gene in Ensembl terms for ANY Ensembl species (356 available): stable ID (ENSG…), symbol↔ID mapping, versioned identifier, canonical transcript, and coordinates on the current assembly (GRCh38 human, GRCm39 mouse, …). With expand=true, returns all transcripts with translation/protein IDs. Accepts an HGNC symbol (BRAF) or Ensembl gene ID (ENSG00000157764, versioned or bare — versions are resolved to the current record). Species accepts scientific names or aliases ('homo_sapiens'/'human', 'mus_musculus'/'mouse'). For rich human gene annotation (summary, pathways, drugs, diseas…

ParameterTypeDescription
gene_or_id *stringHGNC symbol (BRAF) or Ensembl gene ID (ENSG00000157764, versioned or bare)
expandbooleanInclude all transcripts with translation/protein IDs
speciesstringSpecies name or alias — 'human' (default), 'mouse', 'mus_musculus', 'rat', …

ensembl_homology

Find orthologues or paralogues of a gene across species (Ensembl Compara) — the cross-species gene mapping source in biomcp. Returns target stable IDs, species, taxonomy level, and percent identity, sorted by identity. Accepts an HGNC symbol or Ensembl gene ID; scope to one species with target_species ('mouse') or target_taxon (10090). Use it for conservation questions ('is this gene conserved?', 'what is the mouse orthologue of BRAF?').

ParameterTypeDescription
gene *stringGene symbol (BRAF) or Ensembl gene ID (ENSG00000157764)
limitintegerMaximum homologies to return (sorted by percent identity)
speciesstringSource species — 'human' (default), 'mouse', …
target_speciesstringRestrict results to one species, e.g. 'mouse'
target_taxonintegerRestrict results to a taxon ID, e.g. 10090 (Mus musculus)
typestringHomology type to fetch

ensembl_consequence

Predict the functional consequence of a variant on demand via Ensembl VEP — works even for NOVEL variants absent from every database, and for non-human species. Input forms: HGVS c./p./g. notation ("NM_004333:c.1799T>A", "ENST00000288602:c.1799T>A") or a dbSNP rsID ("rs113488060"). Prefer HGVS over rsIDs when both are available — rsIDs are resolved through dbSNP's coordinate mapping, which can yield less specific consequences. Returns the most severe consequence plus per-transcript effects (impact, codon/amino-acid change, SIFT/PolyPhen where available) and co-located known variants (Clin…

ParameterTypeDescription
variant *stringHGVS notation (NM_004333:c.1799T>A) or dbSNP rsID (rs113488060)
limitintegerMax transcript consequences returned (sorted by impact severity)
speciesstringSpecies — 'human' (default), 'mouse', …

ensembl_region

Query what lives in a genomic interval on the current assembly (GRCh38 for human): genes/transcripts (stable IDs, symbols, biotypes) and known variants (rsIDs, alleles, consequence terms, clinical significance). Ideal for locus triage — "what genes and known variants sit in this GWAS hit interval?". Keep spans modest (<1 Mb recommended); output is capped at limit with a truncated marker. For sequence text use genbank_get; for entity-level annotation chain IDs into gene_get / variant_get.

ParameterTypeDescription
region *stringGenomic region chr:start-end (1-based, GRCh38 for human) — e.g. 7:140450000-140480000
featuresarrayFeature types to include
limitintegerMaximum features returned
speciesstringSpecies — 'human' (default), 'mouse', …

biomcp_configure

Inspect and configure biomcp — unified observability and restricted controllability for every parameter. **What it covers:** three optional feature groups (database, analysis_r, analysis_biowasm) whose knobs live in the .biomcp.json project config file (written by this tool, loaded at server startup — a restart applies changes), plus every environment-only parameter (API keys, proxy, security boundaries), which is query-only. **Actions:** - status (default; call with {}): per-feature running state (with each feature's settable_keys), config file health, conflicts (e.g. an env var vetoing…

ParameterTypeDescription
actionstringstatus = inspect (default, works with no other arguments); set = create/modify file parameters; reset = remove.
confirm_sensitivebooleanRequired true when set/reset touches sensitive keys (connection targets, mirrors, credentials).
dry_runbooleanValidate and diff without writing (set/reset).
filterstringFor status: "file" | "env" | feature id | dotted-id prefix — returns detailed rows (effects, how-to-set).
targetFor reset: a feature id ("database" | "analysis_r" | "analysis_biowasm") removes the whole section, or a list of dotted file-param ids removes those keys.
valuesobjectFor set: {"<dotted file-param id>": <value|null>} — e.g. {"features.analysis_r.enabled": true}. null removes the key. Valid ids are listed by status.