
biogrounder
io.github.djportUCD/biogrounder
Grounds biomedical text to verified ontology terms, IDs and medical codes, linked by the literature
Documentation
BioGrounder
Ever read a description and wondered which disease, gene, function, tissue or medical code it means?
Give BioGrounder the text (an abstract, an assay protocol, a mouse model, a gene summary, a clinical note), or give it to your AI, and ask "What does this refer to?" You get the answer grouped by category, and every ID in it has been checked against its source:
| You read… | You get… |
|---|---|
| "boys lose muscle strength in early childhood" | disease MONDO:0010679 Duchenne muscular dystrophy · phenotype HP:0001324 Muscle weakness |
| "Nrf2", "DMD", "the leptin gene" | gene NCBIGene:4780 NFE2L2 (human), with HGNC, OMIM, Ensembl and UniProt IDs |
| "chloride transport across the apical membrane" | function / process and cell location: GO terms |
| "the Keap1-Nrf2-ARE pathway" | pathway Reactome:R-HSA-9755511 KEAP1-NFE2L2 pathway |
| "HaCaT keratinocytes", "bovine cells" | cell type CL · organism NCBITaxon:9913 Bos taurus |
| "cinnamaldehyde", "CAS 60-18-4" | chemical CHEBI:16731 (E)-cinnamaldehyde · CHEBI:17895 L-tyrosine |
| "a cell viability assay", "genotoxicity testing" | assay / method BAO:0003009 · BAO:0002167 |
| "enzyme replacement therapy", "homozygous", "22q11.2" | medical action MAXO:0000933 · genotype GENO:0000136 · chromosome region CHR:9606-chr22q11.2 |
| "OMIM 219700", "ICD-10 E84.0", "ORPHA:586", "rs113993960" | IDs already in the text, resolved: cystic fibrosis (MONDO:0009061); rs113993960 is in CFTR |
| any disease it finds | its medical codes (OMIM, ICD-10, ICD-11, MeSH, UMLS, SNOMED CT, Orphanet and more), the genes that cause it, curated treatments and its mechanism page |
| any gene it finds | NCBI Gene, HGNC / MGI, OMIM, Ensembl and UniProt IDs, and the diseases it causes |
| all of them together | how they connect in the literature: "cinnamaldehyde cause allergic contact dermatitis (12 papers)", with example PubMed IDs |
- It never makes up an ID. Every ID comes from a live search and is verified before you see it.
- It explains, too: what the thing does, how and why (function, mechanism, purpose), and how the concepts relate (subject → predicate → object).
- It checks its own answers, both ways: each ID at its source, and each term's definition back against the text. See Checking an answer.
- It learns. Confident mappings and corrections go into a learning dictionary, a plain YAML file, so the same phrase is answered better next time. A curator's verdict always wins.
- It runs where you work: as an MCP server (Claude Desktop, Claude Code, any MCP client, or a
one-line Claude Code plugin), a REST API (which also serves MCP at
/mcp) and a command line.
Licence: free for academic research and teaching only. Commercial use needs separate permission. See Licence.
What you can ask
| You want to know | MCP tool | REST | CLI |
|---|---|---|---|
| Everything this text refers to, grouped by category (start here) | what_does_this_refer_to | POST /refer | refer "…" |
| What the IDs already in the text mean (OMIM, ICD-10, Orphanet, MeSH, UMLS, rsID, gene IDs, CAS, Reactome, ontology IDs, PMIDs) | identify_ids | POST /identify | identify "…" |
| The medical codes for a disease or gene it found | in every answer (codes) | same | same |
| How the findings are connected in published papers | find_literature_connections | POST /connections | connect ID ID … or connect --run RUN |
| What one term leads to in the literature (what treats this disease?) | find_literature_neighbours | POST /connections/neighbours | neighbours ID |
| What outside text annotators see (PubTator3, BioPortal) | scan_text_with_sources | POST /sources/scan | – |
| The best ID for one concept you already have | ground_terms | POST /ground | ground "…" |
| Details of one ID | lookup_term | GET /terms/{curie} | lookup ID |
| The equivalent ID in another ontology (MONDO ⇄ DOID, …) | crosswalk_term | GET /crosswalk/{curie} | – |
| What a lab's jargon or abbreviation means (as learned before) | lookup_dictionary | GET /dictionary/lookup | – |
Examples
IDs already in the text (summarised; the CLI prints JSON):
$ biogrounder identify "Cystic fibrosis (OMIM 219700; ICD-10 E84.0; ORPHA:586)
from CFTR rs113993960; HGNC:1884; ENSG00000001626; tyrosine CAS 60-18-4;
MeSH D003550; PMID 31740819."
OMIM 219700 MONDO:0009061 cystic fibrosis
ICD-10 E84.0 MONDO:0009061 cystic fibrosis (matched the parent code E84)
ORPHA:586 MONDO:0009061 cystic fibrosis
rs113993960 dbSNP:rs113993960 in CFTR, CFTR-AS1
HGNC:1884 NCBIGene:1080 CFTR (human)
ENSG00000001626 NCBIGene:1080 CFTR (human)
CAS 60-18-4 CHEBI:17895 L-tyrosine (check digit verified)
MeSH D003550 MONDO:0009061 cystic fibrosis
PMID 31740819 recognised; not something this service resolves
How a gene, a disease and a chemical are connected in PubMed:
$ biogrounder connect NCBIGene:4780 MONDO:0006525 CHEBI:16731
subject relation object papers
(E)-cinnamaldehyde positive_correlate NFE2L2 34
(E)-cinnamaldehyde cause allergic contact dermatitis 12
(E)-cinnamaldehyde associate NFE2L2 8
allergic contact dermatitis associate NFE2L2 5
The full answer from what_does_this_refer_to, for "Lep ob/ob mice make no functional leptin ...
overeat, become severely obese ...":
summary A mouse strain lacking leptin that models monogenic obesity
function Leptin reports fat stores to the brain and suppresses appetite
mechanism Fat cells secrete leptin in proportion to fat mass
why Matches food intake to energy stores
relations Lep loss -causes-> polyphagia; polyphagia -leads to-> obesity
genes "leptin gene" NCBIGene:16846 Lep (mouse), MGI:104663
phenotypes "overeat" MP:0001433 polyphagia
"severely obese" MP:0001261 obese
diseases (implied) MONDO:0013991 obesity due to congenital leptin deficiency
functions "satiety signal" GO:0032099 negative regulation of appetite
literature Lep -associate-> obesity (number of papers, example PMIDs)
Why this exists
Turning a description into "this means MONDO:x / GO:y / OMIM n" usually means asking an AI and hoping the IDs are real, or searching five websites by hand. Existing tools each do part of the job:
| Tool | What it does | What it doesn't do |
|---|---|---|
| OLS, ols-mcp-server, OntoMCP, mondo-link | Look up a term you already have | Read a description and work out function, mechanism or implied concepts |
| OntoGPT / SPIRES | LLM extraction grounded to ontologies | Isn't an MCP server; doesn't learn from curator corrections |
| CurateGPT | AI-assisted curation workbench | Isn't a "what does this refer to?" service |
| PubTator3, BioPortal Annotator | Tag entities in text | Don't reason about meaning, implied concepts or medical codes |
BioGrounder does the whole job: it reads the text, grounds it against live ontologies and biomedical APIs, adds the medical codes and literature links, and learns from corrections.
How it works
flowchart TD
T([Text]) --> S[0 · Spot IDs already in the text]
S --> R[1 · Read: meaning and concepts]
R --> G[2 · Retrieve candidates from live sources]
G --> C[3 · Choose one ID per concept]
C --> V[4 · Verify IDs, add medical codes]
V --> L[5 · Connect through the literature]
L --> F[6 · Save, flag what needs review]
F --> D[7 · Learn confident mappings]
K[(Knowledge files)] -.-> R
D -.-> K
- Spot IDs. Identifiers already in the text (OMIM, ICD, rsID, CAS, …) are resolved. Fast outside annotators run, and PubTator3 starts in the background.
- Read (the model). What the text is about, its function, mechanism and purpose, and the concepts it names or implies, with search queries for each. Similar worked examples, guidelines and dictionary entries are shown to it first.
- Retrieve. A live search of EBI OLS (and MyGene.info for genes), plus the outside helpers for that kind of concept. IDs that several sources agree on rank higher. Confirmed dictionary entries are boosted; rejected ones are pushed down.
- Choose (the model). One ID per concept, only from the retrieved candidates.
- Verify. Every ID is re-checked at its source, and invented or obsolete IDs are dropped. Equivalents (MONDO ⇄ DOID) and medical codes are added.
- Connect. PubTator3 reports how the genes, diseases and chemicals are related in PubMed, and which concepts the annotators found that the reading missed.
- Save. The run is saved with a
run_id. Low-confidence items go to a review queue. - Learn. Confident, exact, unflagged mappings go into the dictionary.
No hard-coded terms. Ontology content always comes live from the sources, so new releases are
picked up automatically. What the service knows how to do is kept as plain files in
knowledge/, which anyone can read, edit and improve with a pull request:
| File | What it is | How it's used |
|---|---|---|
examples/*.yaml | Worked examples: a text and what a good answer looks like | The most similar are shown to the model as examples |
guidelines.yaml | Plain-language rules ("mouse phenotypes go to MP") | Shown to the model on every request |
dictionary.yaml | The learning dictionary: "this phrase → this ID" | Ranking priors and precedent, not a lookup table |
sources.yaml | The outside APIs: what each is good for, keys, terms of use | Read by the AI with list_sources; edit to add or turn off a source |
config.yaml | Ontologies per kind of concept, medical code systems, ID patterns, thresholds | Edit to add an ontology, code system or kind of ID, with no code changes |
Medical codes and identifiers
Codes for what it finds. Diseases are grounded to MONDO, which carries curated
cross-references to other vocabularies. Every answer gets a codes block. For Duchenne muscular
dystrophy:
{"MONDO": ["0010679"], "OMIM": ["310200"], "ICD-10-CM": ["G71.01"], "MeSH": ["D020388"],
"UMLS": ["C0013264"], "SNOMED CT": ["..."], "Orphanet": ["..."], "NANDO": ["..."]}
A disease grounded to another ontology still gets its MONDO code. Genes get NCBI Gene, HGNC / MGI, OMIM, Ensembl and UniProt IDs from MyGene.info.
Links from the Monarch Initiative. Each disease and gene is also looked up in the Monarch Initiative knowledge graph, which adds more codes and its curated causal links: for a gene, the diseases it causes (CFTR → MONDO:0009061 cystic fibrosis); for a disease, the genes that cause it. If Monarch is down, analyses still work without it.
IDs already in the text. identifier_patterns in config.yaml lists the patterns it
recognises and how to resolve each one. ICD-10 sub-codes fall back to their parent code (the answer
says so), and CAS numbers must pass their check digit. To recognise a new kind of ID, add a pattern.
These codes are copied from the sources' cross-references, not issued by this project. Some code systems (SNOMED CT, UMLS, ICD, MedDRA) have licence terms for some uses; see Data licences.
Literature connections (PubTator3)
After an analysis, the genes, diseases and chemicals it found are matched to PubTator3, which reports the relations it has mined from PubMed between each pair (treat, cause, associate, inhibit, stimulate, interact, correlate, …), with the number of papers and example PMIDs.
- Matching. Diseases and chemicals are matched by MeSH code, or else by name (flagged
matched_by: name); genes by NCBI Gene ID or symbol. PubTator3 keys genes by symbol, so mouse Lep and human LEP share evidence. IDs that are the same PubTator3 entity are merged. - Direction. Only a chemical acting on a gene or disease is
directed: true("metformin treat type 2 diabetes"). Symmetric relations, and gene–disease relations, are listed gene first. - Evidence. Relations seen in fewer than
min_publicationspapers (default 3) are left out and counted. Example papers are for the relation itself (the "cause" papers, not every paper on the pair). Terms PubTator3 doesn't cover (GO processes, anatomy) are listed asnot_covered. Only the firstmax_entitiesterms (default 8; genes, chemicals and diseases first) are connected; the rest are listed asskipped_over_limit. - Missed concepts. The PubTator3 text annotator also reads your text in the background; concepts
it finds that the reading missed come back as
possibly_missed.
One hop out (find_literature_neighbours). From one ID, its strongest gene, disease or chemical
neighbours:
- What treats cystic fibrosis?
neighbours MONDO:0009061 --kind chemical --relation treatgives ivacaftor (1,238 papers), tezacaftor, elexacaftor and tobramycin. - What does cinnamaldehyde act on?
--kind genegives TRPA1, TNF, NFE2L2 and more.
It goes one hop only: chains (chemical → gene → disease) run through hubs such as TNF or "inflammation" and produce spurious paths, so chain hops yourself and check each one.
These are relations mined automatically from papers, not curated facts; read the example papers
before you rely on one. Tune or turn them off in config.yaml → literature. The service keeps to
PubTator3's limit of 3 requests a second.
The learning dictionary
Each entry in knowledge/dictionary.yaml looks like this:
- phrase: Nrf2
curie: NCBIGene:4780
status: learned # confirmed | learned | rejected
source: usage # curator | usage (a confident run) | ai (added with learn_term)
kind: gene
label: NFE2L2 (human): NFE2 like bZIP transcription factor 2
count: 3 # times seen; learned entries get stronger as this grows
| Status | Comes from | Effect on ranking |
|---|---|---|
confirmed | A person (refine_feedback, refine_confirm_run, refine_review_entry) | Strong boost; always beats anything learned |
learned | A confident analysis, or an AI calling learn_term | Boost, larger for identical wording and a higher count |
rejected | A person | Strong penalty; never overwritten by learning |
It only learns exact, non-implied matches with confidence of at least learning.min_confidence
(default 0.85) that weren't flagged for review, and only when the phrase differs from the label.
Every ID is verified before it is stored. Curators review what was learned with
refine_list_dictionary status=learned and refine_review_entry. Set learning.auto_learn: false
to turn learning off.
Outside sources
OLS and MyGene.info are always searched. Each concept is also sent to the helpers that cover its
kind. A helper can only add IDs from ontologies that kind allows, or IDs it is the authority for
(such as Reactome pathways), and every chosen ID is still verified. A candidate several sources find
lists them all (source: ols,mydisease,monarch) and ranks higher.
| Source | Helps with | Key |
|---|---|---|
ols (EMBL-EBI Ontology Lookup Service) | Every ontology: search, term details, cross-references | none |
mygene (MyGene.info) | Genes in any species → NCBI Gene, with HGNC / MGI / OMIM / Ensembl / UniProt | none |
mydisease (MyDisease.info) | Diseases → MONDO; reverse lookups from OMIM / Orphanet / ICD / MeSH / UMLS | none |
monarch (Monarch Initiative) | Second opinion on diseases and phenotypes | none |
mychem (MyChem.info) | Chemicals, drug names and CAS numbers → ChEBI, with PubChem / DrugBank | none |
myvariant (MyVariant.info) | Variants (rsIDs) → gene and ClinVar conditions | none |
reactome | Signalling and metabolic pathways → Reactome:R-HSA-… | none |
ncbi_taxonomy (NCBI E-utilities) | Organisms by common name ("bovine", "zebrafish") → NCBITaxon | optional |
pubtator (NCBI PubTator3) | How papers name genes, diseases and chemicals; literature connections | none |
pubtator_text (PubTator3 annotator) | Tags genes, diseases, chemicals, species and variants in your text (slow; runs in the background) | none |
bioportal (NCBO BioPortal) | 1,000+ ontologies, and a fast text annotator | required (free) |
uniprot | Proteins by name. Off by default; a template for adding any JSON API | none |
quickgo (EMBL-EBI QuickGO) | Is a gene annotated to a GO function (including curators' NOT)? | none |
maxo_annotations (Monarch, MAxO) | Curated treatments and diagnostics for a disease, with a PMID | none |
dismech (Monarch DisMech) | A disease's mechanism page and the papers it cites | none |
namo (Monarch NAMO) | Non-animal model systems: organoids, organ-on-chip, cell-free assays, in-silico models → namo: IDs (downloaded daily, searched locally) | none |
Each entry in knowledge/sources.yaml says in plain words what the source
is good and bad at, which kinds of concept it covers, its rate limits and its terms. The AI reads it
with list_sources and can call ask_source itself when a concept is hard to ground. To add a JSON
REST API, copy the uniprot entry and describe its URL and fields.
API keys
Keys are never typed into the AI chat. When a source needs a key, the request_api_key tool
tells the AI to ask you to run a command in your own terminal:
biogrounder keys set bioportal # asks for the key with hidden input
biogrounder keys list # which sources have a key, and where (never the key)
biogrounder keys remove bioportal
Keys are kept in your system's credential store (macOS Keychain, Windows Credential Manager,
GNOME Keyring or KWallet). Where there is none, such as a headless Linux server, they go in
~/.biogrounder/keys.json, readable only by you. An environment variable named in sources.yaml
(such as BIOPORTAL_API_KEY) takes precedence. Each key is sent only to its own service and is never
logged, returned from a tool or stored in the repository.
Checking an answer, both ways
Running a description forward (text → IDs) and backward (IDs → meaning) is a good check. Rewriting the whole text from the IDs would mostly measure writing style, so the backward check is done per term, with evidence you can read:
| Check | What it asks | Tool · REST · CLI |
|---|---|---|
| The ID exists | Every ID is looked up at its source. Obsolete IDs are replaced by their successor; IDs that can't be verified are dropped (id_check). | automatic |
| The text supports it | Is the label, a synonym or the quoted evidence in the text, or was the term implied (text_support)? Unsupported terms go to review. | automatic |
| The definition fits | Each term's definition, synonyms and parents are read against the text. Every quote must appear word for word. | check_support · POST /check/support · check |
| The terms agree | Phenotypes against the disease's or gene's curated profile (Monarch); genes against GO functions (QuickGO); treatments against MAxO annotations. | check_consistency · POST /check/consistency · consistency |
| Against a gold answer | Precision, recall and F1 against the worked examples, which also list forbidden answers. A parent or child of the right term gets half credit. | refine_evaluate, or get_test_cases + score_answer |
| Against expert curators | Accuracy on BC5CDR and CRAFT, two public corpora annotated by experts | run_benchmark · benchmark |
| The knowledge files are sound | The schema, contradictions, and every ID in every file. Runs in CI and weekly. | validate_knowledge · GET /check/knowledge · validate |
For example, for Duchenne muscular dystrophy with proximal muscle weakness, skeletal muscle atrophy,
motor delay and obesity, check_consistency reports that 3 of the 4 phenotypes are among the 39
Monarch has curated for the disease. Obesity matches nothing close, so it is worth a second look.
Missing curation isn't evidence against a term; it may just not be curated yet.
Benchmarks. biogrounder benchmark bc5cdr (or craft) downloads the corpus once and scores
grounding against the curators' choices. BC5CDR has 1,500 PubMed abstracts (chemicals and diseases,
MeSH); CRAFT has 97 full-text articles (ChEBI, CL, GO, MONDO, NCBITaxon, UBERON). The default
--mode normalize grounds each annotated phrase on its own (no model needed) and reports accuracy at
1 and 5; --mode full compares whole-document ID sets with a server-side model.
On samples of 60 BC5CDR and 63 CRAFT phrases, accuracy at 1 is 0.58 and 0.54 (up from 0.53 and
0.49 before the first runs exposed three ranking problems). A phrase on its own has no context, so
abbreviations such as "SRC" are expected misses, and a right concept still counts as a miss when no
cross-reference links it to the curators' MeSH ID. Use --mentions and --docs for larger samples.
Tests anyone can read. The tests are in tests/ and explained in
TESTING.md. A connected AI can read and run them too (list_tests, read_test,
run_tests), and when it finds a problem, propose_change drafts a pre-filled GitHub issue for a
person to submit. The server holds no GitHub credentials, so nothing reaches the repository without
a person and a review.
Export. A saved run can be exported three ways (CLI: export RUN --format kgx, phenopacket
or omop):
- Knowledge graph (
export_run_kgx): KGX nodes and edges in the Biolink Model. Every edge records where it came from: curated (Monarch, MAxO), text-mined (PubTator3) or read by the model (flaggedai_generated). - GA4GH Phenopacket v2 (
export_run_phenopacket): the phenotypes with their supporting words as evidence, diseases, candidate genes, medical actions and the organism. It describes the text, not a patient. Anything that can't be exported cleanly is listed inleft_out. - OMOP CDM (
export_run_omop): oneSOURCE_TO_CONCEPT_MAProw per code in an OMOP vocabulary (SNOMED, ICD10CM, MeSH, HPO, …). The OHDSI vocabularies are licensed per user, so concept IDs are 0 until you pass--athena <folder>with your own Athena download.
All tools
Every MCP tool is marked as read-only, recording or destructive, and as local or calling outside
services, so an MCP client can approve lookups automatically and ask before anything is deleted.
Every tool also publishes an output schema (outputs.py), so a
client knows the shape of each answer in advance.
Analyze (use it)
| MCP tool | REST | Purpose |
|---|---|---|
status | GET /status | Which model is active, knowledge counts, routes |
what_does_this_refer_to | POST /refer | Start here. The grouped answer, or the context and steps for the calling AI |
analyze_text | POST /analyze | The whole pipeline in one call, full detail (needs a server-side model) |
identify_ids | POST /identify | IDs written in the text, and what each refers to |
find_literature_connections | POST /connections | PubTator3 relations between a run's terms or a list of IDs |
find_literature_neighbours | POST /connections/neighbours | One hop out from one ID in PubMed |
get_learning_context | POST /context | Similar examples, guidelines and earlier verdicts for a text |
ground_terms | POST /ground | Ranked live candidates for the concepts you give it |
lookup_term | GET /terms/{curie} | Label, definition, synonyms, cross-references, obsolete status |
crosswalk_term | GET /crosswalk/{curie}?target=DOID | Verified equivalents (MONDO ⇄ DOID, …) |
record_analysis | POST /runs | Save an analysis the calling AI made; IDs verified, codes added |
get_run, list_runs | GET /runs[/{id}] | Past runs; status=needs_review is the review queue |
list_sources | GET /sources | The outside sources and which are on |
ask_source | POST /sources/{id}/ask | Ask one source directly |
scan_text_with_sources | POST /sources/scan | Run the text annotators over the whole text |
get_scan_result | GET /sources/scan/{scan_id} | Collect a background scan (PubTator3 often takes 1–2 minutes) |
request_api_key | GET /sources/{id}/key-help | How a person turns on a source that needs a key |
learn_term | POST /learn | Teach it: "this phrase means this ID" |
lookup_dictionary | GET /dictionary/lookup?phrase=… | What the dictionary knows about a phrase |
check_support | POST /check/support | Does each term's definition fit the text? |
check_consistency | POST /check/consistency | Do the terms agree with curated knowledge? |
get_test_cases, score_answer | GET /check/cases, POST /check/score | Answer the worked examples yourself and get scored |
validate_knowledge | GET /check/knowledge | Check the knowledge files and every ID in them |
list_tests, read_test | – | Read the published tests |
export_run_kgx | GET /runs/{id}/kgx | A run as KGX / Biolink nodes and edges |
export_run_phenopacket | GET /runs/{id}/phenopacket | A run as a GA4GH Phenopacket v2 |
export_run_omop | GET /runs/{id}/omop | A run's codes as OMOP SOURCE_TO_CONCEPT_MAP rows |
Refine (make it better)
| MCP tool | REST | Purpose |
|---|---|---|
refine_feedback | POST /refine/feedback | "For this mention, the right ID is X / Y was wrong, because …" |
refine_confirm_run | POST /refine/runs/{id}/confirm | Mark a run correct; its mappings become confirmed |
refine_promote_to_example | POST /refine/runs/{id}/promote | Turn a reviewed run into a worked example |
refine_add_example / _update_ / _delete_ / _list_ / _get_ | /refine/examples | Manage worked examples |
refine_add_guideline / _remove_ / _list_ | /refine/guidelines | Manage plain-language rules |
refine_list_dictionary | GET /refine/dictionary?status=learned | Inspect the dictionary |
refine_review_entry | POST /refine/dictionary/review | Confirm or reject a dictionary entry |
refine_remove_entry | DELETE /refine/dictionary | Forget an entry |
refine_update_source | PATCH /refine/sources/{id} | Turn a source on or off, or note what it is good or bad at |
refine_evaluate | POST /refine/evaluate | Re-run every worked example and report precision and recall |
run_tests | – | Run the offline tests and return the results |
run_benchmark | – | Score grounding against BC5CDR or CRAFT (small samples) |
share_improvements | – | Draft one proposal from what you improved locally |
propose_change, list_proposals | – | Save a proposed fix and get a pre-filled GitHub issue link |
MCP prompts: curate (the full workflow for the calling AI, including the backward check),
diagnose (find out why an answer was wrong and propose a fix) and review_queue (work through
flagged runs).
The learning loop: analyze → review the queue and learned entries → confirm or correct → promote good runs to examples → evaluate.
Any LLM: a subscription, an API key, or a local model
A model does two steps: reading the text, and choosing among the candidate IDs. Everything else
(searching, verifying, codes, connections, learning) is the same whichever model you use, and the
model can never invent an ID. A server-side model can only choose from candidates the sources
returned. In client mode, record_analysis accepts any ID that exists at its source and drops the
rest.
| How you pay | Set BIOGROUNDER_BRAIN to | What happens |
|---|---|---|
| A chat subscription (Claude, ChatGPT, …) | client (the default) | The AI app you already use does the reading and choosing, through MCP. No key, no extra cost. |
| An API key (pay per token) | anthropic, openai, gemini, mistral, groq, deepseek, xai, openrouter, together | The server calls the model itself, so one call does everything, from MCP, REST or the CLI. |
| A model on your own computer | ollama, lmstudio, llamacpp, vllm | The same, with nothing leaving your machine but the ontology lookups. No key. |
| Any other OpenAI-compatible server | openai-compatible | Give its URL in BIOGROUNDER_LLM_URL. |
With client, what_does_this_refer_to gives your AI the IDs found in the text, the context and
the steps. It reads the text, calls ground_terms, then record_analysis, which keeps only IDs
that exist. The curate prompt walks it through.
# An API key, typed with hidden input into your credential store (never into a chat)
biogrounder keys set openai
export BIOGROUNDER_BRAIN=openai BIOGROUNDER_MODEL=<a model your account offers>
# A local model: start Ollama and pull a model, then
export BIOGROUNDER_BRAIN=ollama # uses the loaded model, or set BIOGROUNDER_MODEL
biogrounder llm list # providers, stored keys, which is in use
biogrounder llm models # what the chosen provider offers (spends no tokens)
biogrounder status # the model in use, or what is missing
- Claude goes through the official Anthropic SDK, with structured outputs, adaptive thinking and
prompt caching. The default model is
claude-opus-5-5. - Every other provider goes through the OpenAI-compatible chat API, asking for JSON that matches a schema, with fallbacks for servers that don't support that.
- Every answer is validated. A wrong one is sent back once with the errors to fix.
- Small local models make more mistakes. Run
biogrounder evaluateto see how a model scores on the worked examples before relying on it.
vLLM's default port, 8000, is also the REST API's, so start vLLM with --port 8001 (the vllm
preset expects that). If the chosen model isn't available, the server still starts, and status
says what is missing.
Quick start
It needs Python 3.15 or newer and runs on Linux, macOS and Windows. With
uv there is nothing to install first. It is on
PyPI and in the
MCP Registry as io.github.djportUCD/biogrounder:
uvx biogrounder status # the latest release
# or the latest code on main
uvx --from git+https://github.com/djportUCD/biogrounder biogrounder status
On first use it copies its starter knowledge to ~/.biogrounder/knowledge, where your saved runs
and learned terms are kept too.
From a checkout (uv sync installs the exact versions in uv.lock):
git clone https://github.com/djportUCD/biogrounder.git
cd biogrounder
uv sync
. .venv/bin/activate
biogrounder identify "OMIM 310200, ICD-10 G71.0, rs113993960"
biogrounder ground "Duchenne muscular dystrophy" --kind disease
biogrounder connect NCBIGene:1756 MONDO:0010679
Use it from Claude Code
As a plugin, which adds the ontology-grounding skill (which tool to use when, and how to check an
answer). It needs uv:
/plugin marketplace add djportUCD/biogrounder
/plugin install biogrounder@biogrounder
Or just the MCP server:
claude mcp add biogrounder -- uvx biogrounder mcp
Use it from Claude Desktop
Add this to claude_desktop_config.json (Settings → Developer → Edit Config):
{
"mcpServers": {
"biogrounder": {
"command": "uvx",
"args": ["biogrounder", "mcp"]
}
}
}
If Claude Desktop can't find uvx, give its full path (which uvx, or where uvx on Windows).
Claude Desktop then does the reasoning on your subscription. To have the server use its own model,
add "env": {"BIOGROUNDER_BRAIN": "ollama"} (or a provider whose key you stored).
Then ask it things like:
What does this abstract refer to? …
Which disease is "ORPHA:586", and what are its ICD-10 and MeSH codes?
How are the genes and chemicals in that run connected in the literature?
That run mapped "loss of speech" to Aphasia; the right term is HP:0002371. Record that feedback.
Remember that in our assay descriptions "IVM" means in vitro maturation.
REST API
biogrounder api --port 8000 # docs at http://localhost:8000/docs
curl -s localhost:8000/identify -H 'content-type: application/json' \
-d '{"text": "OMIM 219700 and CAS 60-18-4"}'
curl -s localhost:8000/connections -H 'content-type: application/json' \
-d '{"curies": ["NCBIGene:1080", "MONDO:0009061"]}'
Command line
Most commands print JSON. Run biogrounder <command> --help for its options.
| Command | What it does |
|---|---|
mcp, api | Run the MCP server; run the REST API (which also serves /mcp) |
refer, analyze | What a text refers to; the full pipeline (both need a server-side model for the full answer) |
identify | IDs written in a text, resolved |
ground, lookup | Candidates for one concept; details of one ID |
connect, neighbours | Literature connections between IDs; one hop out from one ID |
check, consistency | The backward check; do the terms agree with curated knowledge |
score, evaluate | Score an answer against a worked example; score the server's model on all of them |
validate, schemas | Check the knowledge files; write their JSON Schemas |
export | A saved run as KGX, a GA4GH Phenopacket or OMOP rows |
benchmark | Score grounding against BC5CDR or CRAFT |
share | Draft one suggestion for the project from what you improved locally (nothing is sent) |
sources, ask | The outside sources and which are on; ask one directly |
status, llm, keys | Configuration; model providers and their models; API keys |
A shared server (MCP over HTTP)
biogrounder api serves MCP at /mcp as well as the REST API, so MCP clients can connect to
http://localhost:8000/mcp. To serve MCP on its own:
BIOGROUNDER_ROUTES=analyze biogrounder mcp \
--transport streamable-http --host 0.0.0.0 --port 8765
The server only answers requests addressed to an allowed host name (localhost by default; add yours
with BIOGROUNDER_ALLOWED_HOSTS), and refuses requests sent by web pages on other sites. This
protects against DNS rebinding.
Running it for others: the refine tools and learning write files. On a shared server, expose only
analyze, or set BIOGROUNDER_ADMIN_TOKEN (needed by /refine/*, and by /mcp while the refine
route is on), and consider auto_learn: false. The stand-alone MCP server warns at start-up if it
would expose the refine tools beyond this computer without a token.
For more than a token, put it behind a reverse proxy.
Linux container (Podman)
The repository's Containerfile builds a Debian image that runs as an unprivileged user and installs
exactly the versions in uv.lock. Build and run it with Podman:
podman build -t biogrounder .
podman run --rm -p 8000:8000 -e BIOGROUNDER_BRAIN=anthropic -e ANTHROPIC_API_KEY=... \
-e BIOGROUNDER_ADMIN_TOKEN=change-me biogrounder
podman run --rm -p 8765:8765 biogrounder \
biogrounder mcp --transport streamable-http --host 0.0.0.0 --port 8765
To keep learned entries and saved runs between containers, mount the knowledge folder (with
rootless Podman, add --userns=keep-id):
podman run --rm -p 8000:8000 --userns=keep-id -v ./knowledge:/app/knowledge:Z \
-e BIOGROUNDER_ADMIN_TOKEN=change-me biogrounder
Pass API keys as environment variables, never inside the image. To use a model on the host, add
-e BIOGROUNDER_BRAIN=ollama -e BIOGROUNDER_LLM_URL=http://host.containers.internal:11434/v1.
Configuration
| Variable | Default | Meaning |
|---|---|---|
BIOGROUNDER_BRAIN | client (anthropic if ANTHROPIC_API_KEY is set) | Who reasons: client, or a provider (see Any LLM) |
BIOGROUNDER_MODEL | claude-opus-5-5 for Claude; the loaded model locally | The model at that provider |
BIOGROUNDER_LLM_URL | the provider's usual address | Base URL of an OpenAI-compatible server |
BIOGROUNDER_LLM_KEY | – | Key for an openai-compatible server, if it needs one |
BIOGROUNDER_MAX_TOKENS | – | Output token limit for OpenAI-compatible servers |
ANTHROPIC_API_KEY (or ANTHROPIC_AUTH_TOKEN), OPENAI_API_KEY, GEMINI_API_KEY, MISTRAL_API_KEY, GROQ_API_KEY, DEEPSEEK_API_KEY, XAI_API_KEY, OPENROUTER_API_KEY, TOGETHER_API_KEY | – | Provider keys (or store them with keys set <provider>) |
BIOGROUNDER_EFFORT | high | Claude's reasoning effort: low / medium / high / xhigh / max |
BIOGROUNDER_FALLBACKS | default | If Claude declines a request, retry on a fallback model; off disables this |
BIOGROUNDER_KNOWLEDGE_DIR | ./knowledge, else the checkout's, else ~/.biogrounder/knowledge | Where examples, guidelines, the dictionary and runs live |
BIOGROUNDER_BENCHMARK_DIR | ~/.biogrounder/benchmarks | Where downloaded benchmark corpora are kept |
BIOGROUNDER_ROUTES | analyze,refine | Which routes to expose; use analyze on a public server |
BIOGROUNDER_ADMIN_TOKEN | – | If set, /refine/* (and /mcp when the refine route is on) need Authorization: Bearer <token> |
BIOGROUNDER_ALLOWED_HOSTS | localhost, 127.0.0.1, [::1] (any port) | Host names the HTTP server answers, comma-separated (name:* for any port; * for any host, only behind a proxy that checks it) |
BIOGROUNDER_OLS_URL | EBI OLS4 | A local OLS instance, if you run one |
BIOGROUNDER_MYGENE_URL | https://mygene.info/v3 | Another MyGene.info instance |
BIOGROUNDER_HTTP_TIMEOUT | 30 | Seconds before an outside service is given up on (each is retried first) |
BIOPORTAL_API_KEY, NCBI_API_KEY | – | Keys for outside sources (or store them with keys set) |
knowledge/config.yaml holds the rest: learning, literature, code systems and ID patterns.
The outside sources are free public services. Each has a rate limit in sources.yaml, and the client
caches results, limits concurrency and retries with backoff. A lookup that still fails is reported as
a warning and the run is flagged for review, so a failure never looks like "no such term".
Contributing
The quickest way to help is a pull request that adds a worked example to
knowledge/examples/, a rule to guidelines.yaml, or a code system, ID
pattern or source to the other knowledge files. See CONTRIBUTING.md and
TESTING.md.
uv sync
uv run pytest -m "not live" # offline: every outside service and model is faked
uv run pytest -m live # calls the real services
uv run ruff check && uv run ruff format --check
Giving back what you improve
Using BioGrounder improves it on your machine: corrections, new worked examples and guidelines are
saved to ~/.biogrounder/knowledge. Those help everyone, so sending them back is easy:
share_improvements(CLI:biogrounder share) gathers what the project doesn't have yet into one proposal with a pre-filled GitHub issue link. Nothing is sent: you read it and submit it if you agree. Tools that teach it add ashare_hintwhen there is something to share.- For code, open a pull request, or let an AI draft one with
propose_change. Ideas and questions are welcome in Discussions. - A weekly check lists public forks with changes that aren't in
main, so the maintainers can invite their authors to open a pull request.
Keeping up with outside sources
BioGrounder depends on services, files and links it doesn't control. Downloaded files (MAxO annotations, DisMech, NAMO) are refreshed daily, and the last good copy is kept if a download fails. For the rest, the repository watches itself:
| What changes | How it is noticed | What happens |
|---|---|---|
| A Python package or GitHub Action has a new release | Dependabot, weekly | A pull request |
| A link moved, or the CRAFT corpus or uv image has a new release | Upstream watch, weekly (check_upstream.py) | A fix offered as a pull request |
| A link is gone, or a source changed its answers or file format | Upstream watch: the live tests and the link check | An issue labelled upstream naming the source or link |
| An ID in the knowledge files was retired or relabelled | Knowledge check, weekly | The check fails, naming the ID |
Nothing is merged automatically. To run the watch by hand:
uv run python scripts/check_upstream.py (add --fix to apply the fixes) and uv run pytest -m live.
Limitations
- Not for clinical use. The answers are machine-generated and can be wrong. Anything below
review_threshold, ungrounded, dropped or obsolete is flagged for review. - Medical codes are only as complete as the sources' cross-references. Phenotype terms (HP, MP) often have none, so they usually carry only their own ID.
- OLS search needs every word of a query to match, so "thyroid hormone synthesis" doesn't find GO's "thyroid hormone generation". The reading step suggests alternative queries, and helpers such as Reactome fill some of the gap. Some general concepts ("cardiac arrhythmia" as a disease) have no single MONDO term.
- Literature connections come from text mining: two things can appear together for many reasons. The PubTator3 text annotator is slow (a minute or two) and sometimes picks an unexpected species for a gene.
- Outside sources are only as current as their services. If one fails, the failure is noted and the core search still runs.
- The bundled examples are a starting point, not a gold standard.
Sources and citations
This project stands on the work below. If you use biogrounder in published work, please cite the sources you relied on as well as this repository. Licences and terms are summarised here; the source's own page is authoritative.
Ontologies (searched live through OLS)
| Ontology | Used for | Cite | Licence |
|---|---|---|---|
| MONDO (Mondo Disease Ontology) | diseases; source of the disease medical-code cross-references | Vasilevsky NA et al. (2026) Genetics 232(4):iyaf215. doi:10.1093/genetics/iyaf215 | CC BY 4.0 |
| DO (Human Disease Ontology) | diseases, MONDO ⇄ DOID | Baron JA et al. (2026) Nucleic Acids Res 54(D1):D1425–D1436. doi:10.1093/nar/gkaf1213 | CC0 1.0 |
| GO (Gene Ontology) | functions, processes, cell locations | Ashburner M et al. (2000) Nat Genet 25(1):25–29. doi:10.1038/75556; The Gene Ontology Consortium (2026) Nucleic Acids Res 54(D1):D1779–D1792. doi:10.1093/nar/gkaf1292 (correction doi:10.1093/nar/gkag678) | CC BY 4.0; please report the GO release used |
| HPO (Human Phenotype Ontology) | human phenotypes | Gargano MA et al. (2024) Nucleic Acids Res 52(D1):D1333–D1346. doi:10.1093/nar/gkad1005 | HPO licence: free to use with attribution and the version shown; do not modify the ontology |
| MP (Mammalian Phenotype Ontology) | mouse and other mammalian phenotypes | Bello SM et al. (2025) Dis Model Mech 18(10):dmm052385. doi:10.1242/dmm.052385; Smith CL, Eppig JT (2012) Mamm Genome 23(9–10):653–668. doi:10.1007/s00335-012-9421-3 | CC BY 4.0 |
| Uberon | tissues and anatomy | Mungall CJ et al. (2012) Genome Biol 13(1):R5. doi:10.1186/gb-2012-13-1-r5; Haendel MA et al. (2014) J Biomed Semantics 5:21. doi:10.1186/2041-1480-5-21 | CC BY 3.0 |
| CL (Cell Ontology) | cell types | Tan SZK et al. (2026) Sci Data 13(1):946. doi:10.1038/s41597-026-07173-8; Diehl AD et al. (2016) J Biomed Semantics 7(1):44. doi:10.1186/s13326-016-0088-7 | CC BY 4.0 |
| ChEBI | chemicals | Malik A et al. (2026) Nucleic Acids Res 54(D1):D1768–D1778. doi:10.1093/nar/gkaf1271 | CC BY 4.0 |
| NCBI Taxonomy | organisms | Schoch CL et al. (2020) Database baaa062. doi:10.1093/database/baaa062 | Public domain (US government work) |
| BAO (BioAssay Ontology) | assays and test methods | Glenny-Pescov J et al. (2026) J Biomed Semantics 17(1):6. doi:10.1186/s13326-025-00342-5; Abeyruwan S et al. (2014) J Biomed Semantics 5(Suppl 1):S5. doi:10.1186/2041-1480-5-S1-S5 | CC BY 4.0 |
| OBI (Ontology for Biomedical Investigations) | assays, methods, instruments | Bandrowski A et al. (2016) PLoS One 11(4):e0154556. doi:10.1371/journal.pone.0154556 | CC BY 4.0 |
| MAxO (Medical Action Ontology) | treatments, procedures, diagnostic actions | Carmody LC et al. (2023) Med 4(12):913–927.e3. doi:10.1016/j.medj.2023.10.003 | CC BY 4.0 |
| GENO (Genotype Ontology) | zygosity, genotypes, allele types | github.com/monarch-initiative/GENO-ontology (Monarch Initiative) | See the repository |
| CHR (chromosome and band ontology) | chromosome regions such as 22q11.2 | OLS: chr (Monarch Initiative) | See the OLS page |
Any other ontology you add in config.yaml keeps its own citation and licence.
Services and databases queried
| Service | Used for | Cite | Terms |
|---|---|---|---|
| EMBL-EBI Ontology Lookup Service (OLS4) | ontology search, term details, cross-references | McLaughlin J et al. (2025) Bioinformatics 41(5):btaf279. doi:10.1093/bioinformatics/btaf279 | Software Apache-2.0; EMBL-EBI terms of use |
| BioThings APIs: MyGene.info, MyDisease.info, MyChem.info, MyVariant.info | genes, diseases and reverse code lookups, chemicals and CAS numbers, variants | Xin J et al. (2016) Genome Biol 17(1):91. doi:10.1186/s13059-016-0953-9; Lelong S et al. (2022) Bioinformatics 38(7):2077–2079. doi:10.1093/bioinformatics/btac017; Wu C et al. (2013) Nucleic Acids Res 41(D1):D561–D565. doi:10.1093/nar/gks1114 | Scripps Research terms of use (no open licence); aggregated data keep each source's licence |
| NCBI Gene (via MyGene.info) | gene IDs | Brown GR et al. (2015) Nucleic Acids Res 43(D1):D36–D42. doi:10.1093/nar/gku1055 | Public domain |
| dbSNP (via MyVariant.info) | rsIDs | Sherry ST et al. (2001) Nucleic Acids Res 29(1):308–311. doi:10.1093/nar/29.1.308 | Public domain |
| ClinVar (via MyVariant.info) | variant–condition links | Landrum MJ et al. (2018) Nucleic Acids Res 46(D1):D1062–D1067. doi:10.1093/nar/gkx1153 | Public domain |
| Monarch Initiative | diseases and phenotypes (second opinion); extra disease and gene codes; gene–disease causal links; curated phenotype profiles of diseases and genes | Putman TE et al. (2024) Nucleic Acids Res 52(D1):D938–D949. doi:10.1093/nar/gkad1082 | Software BSD-3-Clause; data under each source's licence |
| Monarch semantic similarity (semsimian over PHENIO, served by the Monarch API) | near misses across species; phenotypes vs a disease's or gene's curated profile | semsimian, PHENIO; with Putman TE et al. (2024) above | Software BSD-3-Clause; data under each source's licence |
| QuickGO (GO annotations) | is this gene annotated to this function, including curators' "NOT" | Binns D et al. (2009) Bioinformatics 25(22):3045–3046. doi:10.1093/bioinformatics/btp536; GO citations above | Annotations CC BY 4.0; EMBL-EBI terms of use |
| maxo-annotations | curated treatments of a disease's phenotypes, with PMIDs | github.com/monarch-initiative/maxo-annotations; Carmody LC et al. (2023) above | CC BY 4.0 |
| DisMech | links from a disease to its mechanism page and cited papers | dismech.monarchinitiative.org, github.com/monarch-initiative/dismech. Entries are drafted by AI agents and reviewed by people; not medical advice | Repository BSD-3-Clause; parts contain LOINC content under LOINC's terms. Only links, summaries and PMIDs are shown |
| Reactome | pathways | Ragueneau E et al. (2026) Nucleic Acids Res 54(D1):D673–D681. doi:10.1093/nar/gkaf1223 | CC0 |
| NCBI E-utilities | NCBI Taxonomy queries | Entrez Programming Utilities Help, NCBI, ncbi.nlm.nih.gov/books/NBK25497; Sayers EW et al. (2026) Database resources of the NCBI, Nucleic Acids Res 54(D1):D20–D27. doi:10.1093/nar/gkaf1060 | Public domain; NCBI usage policies |
| PubTator3 | entity names, literature relations, example papers, text annotation | Wei CH et al. (2024) Nucleic Acids Res 52(W1):W540–W546. doi:10.1093/nar/gkae235 | Public domain; at most 3 requests/second |
| PubMed | the papers PubTator3 links to (PMIDs) | National Library of Medicine, pubmed.ncbi.nlm.nih.gov | Citations are public; article text keeps its publisher's copyright |
| NCBO BioPortal and its Annotator (optional, needs a key) | 1,000+ ontologies, text annotation | Vendetti J et al. (2025) Nucleic Acids Res 53(W1):W84–W94. doi:10.1093/nar/gkaf402; Whetzel PL et al. (2011) Nucleic Acids Res 39:W541–W545. doi:10.1093/nar/gkr469; Jonquet C, Shah NH, Musen MA (2009) Summit Transl Bioinform 2009:56–60 (PMID 21347171) | BioPortal terms; each ontology keeps its own licence |
| UniProt (optional, off by default) | protein names | The UniProt Consortium (2025) Nucleic Acids Res 53(D1):D609–D617. doi:10.1093/nar/gkae1010 | CC BY 4.0 |
| NAMO (Monarch New Approach Methodology Ontology and Schema) | model systems that replace animal testing (namo: IDs) | github.com/monarch-initiative/namo | BSD-3-Clause |
| BC5CDR (BioCreative V CDR corpus; benchmark only, downloaded on request) | expert-annotated chemicals and diseases in 1,500 PubMed abstracts | Li J et al. (2016) Database 2016:baw068. doi:10.1093/database/baw068; Wei CH et al. (2016) Database 2016:baw032. doi:10.1093/database/baw032 | Public domain (NCBI); abstracts keep their publishers' copyright |
| CRAFT (Colorado Richly Annotated Full-Text corpus v5.2.0; benchmark only, downloaded on request) | expert concept annotations in 97 full-text articles | Bada M et al. (2012) BMC Bioinformatics 13:161. doi:10.1186/1471-2105-13-161; github.com/lhunter-lab/CRAFT | Annotations CC BY 3.0; articles under their own open-access licences |
| Anthropic Claude (optional server-side brain) | reading the text and choosing among candidates | Anthropic API | Anthropic terms |
| Other model providers (optional server-side brain): OpenAI, Google Gemini, Mistral AI, Groq, DeepSeek, xAI, OpenRouter, Together AI, or a local server (Ollama, LM Studio, llama.cpp, vLLM) | the same two steps, through the OpenAI-compatible chat API | Each provider's own API documentation | Each provider's own terms; a local model keeps its own model licence |
Code systems passed through as cross-references
These identifiers are not looked up from the code systems themselves. They are copied from the
cross-references that MONDO, the Monarch Initiative, MyGene.info and MyChem.info publish, and named by code_systems in
config.yaml. They belong to their owners, and some need a licence for some uses:
OMIM (Johns Hopkins University) ·
Orphanet (INSERM) ·
ICD-10 / ICD-11 (WHO) and ICD-10-CM / ICD-9-CM (CDC/NCHS) ·
MeSH (NLM) ·
UMLS (NLM; UMLS licence) ·
SNOMED CT (SNOMED International; affiliate licence) ·
NCI Thesaurus (NCI) ·
MedDRA (ICH; subscription) ·
MedGen (NCBI) ·
GARD (NIH NCATS) ·
NANDO (Nanbyo Disease Ontology, Japanese intractable diseases; DBCLS) ·
NCBI Gene (NCBI) ·
HGNC ·
MGI ·
Ensembl ·
CAS Registry (American Chemical Society) ·
DrugBank (restricted licence) ·
PubChem ·
KEGG (licence for some uses) ·
HMDB ·
FMA.
Standards and inspiration
- Model Context Protocol specification, modelcontextprotocol.io/specification/2026-07-28.
- RE-Place (re-place.be), the Belgian platform for New Approach
Methodologies coordinated by Sciensano and the Vrije Universiteit Brussel. Its way of describing
test methods (in vitro, ex vivo, in chemico, in silico, lower-organism in vivo) inspired the
test-methodsguideline and theassayconcept kind. No RE-Place content is copied or scraped. - OntoGPT / SPIRES and CurateGPT (Monarch Initiative), as prior work on LLM-assisted, ontology-grounded curation. The ID statuses and the check that each term is supported by the text follow OntoGPT's approach.
- Biolink Model, the schema of the KGX export: Unni DR et al. (2022) Clin Transl Sci
15(8):1848–1855. doi:10.1111/cts.13302. KGX
(github.com/biolink/kgx), the exchange format; the Monarch
Initiative's practice of flagging model-inferred edges as
ai_generated. - GA4GH Phenopacket schema v2, the Phenopacket export: Jacobsen JOB et al. (2022) Nat Biotechnol 40(6):817–820. doi:10.1038/s41587-022-01357-4. Its evidence codes come from ECO, the Evidence and Conclusion Ontology: Nadendla S et al. (2022) Nucleic Acids Res 50(D1):D1515–D1521. doi:10.1093/nar/gkab1025 (CC0 1.0).
- OMOP Common Data Model and the OHDSI standardized vocabularies, the OMOP export: Hripcsak G et al. (2015) Stud Health Technol Inform 216:574–578 (PMID 26262116); ohdsi.github.io/CommonDataModel. The vocabularies are not included: each user downloads their own from Athena under its licences. mondo2omop (Monarch Initiative, MIT) showed the route from cross-references to OMOP concepts through "Maps to".
Software
Built with Python, the MCP Python SDK (MIT), the Anthropic Python SDK (MIT), FastAPI (MIT), Uvicorn (BSD-3-Clause), HTTPX (BSD-3-Clause), Pydantic (MIT), PyYAML (MIT) and keyring (MIT); tested with pytest (MIT) and RESPX (BSD-3-Clause); linted and formatted with Ruff (MIT) and locked with uv (MIT / Apache-2.0).
Data licences
This project's licence covers its own code and knowledge files only. Everything it fetches stays under its source's licence and terms, as summarised above. In particular: BioThings APIs are provided under Scripps Research's terms of use; HPO must not be modified and its version should be shown; DrugBank, SNOMED CT, UMLS, MedDRA, KEGG and some ICD uses need their own licences. Check these before you redistribute results.
Licence
Academic Research and Education Use Licence 1.1: see LICENSE.
- ✅ Free for non-commercial academic research, teaching and scholarly publication by individuals and non-profit academic or research institutions.
- ✅ You may modify it and share it under the same licence; cite it and the sources you used.
- 🔁 Share improvements back: if you share a modified version, or let others use one over a network, offer your changes to the project too (a pull request, or an issue linking to them). Changes you only use yourself are welcome but not required.
- ✍️ Contributions come in under the same licence; sign your commits off (
git commit -s). - ❌ No commercial use (companies, paid services, contract research) without separate written permission from the copyright holders.
- No warranty. Not for clinical decisions.
This is not an OSI open-source licence, because it restricts the field of use.
biogrounderpip install biogrounder