Home › For LLMs & API

For LLMs & API

Ask an AI assistant to search the catalog for you. Paste the prompt below into ChatGPT, Claude, Gemini or any assistant that can open web links, then add your question at the end.

Prompt to paste
Refer to https://microbiome-repo.colorado.edu/llms.txt for instructions on how to access the Microbiome Repo. My question: 

Example questions: probiotic trials where both treated and placebo samples have metagenomes · ulcerative colitis FMT projects · adult colorectal cancer cohorts with healthy controls · infant samples from Finland with exact ages.

How the search works

  1. Start from a ready-made selection. Small files list the projects for one intervention, health condition or age group:
  2. Combine. Every project record has the same keys — e.g. take by-intervention/probiotic.json and keep projects whose health_conditions include crohns_disease: that is "Crohn's + probiotic".
  3. Open the samples. api/samples/<ACCESSION>.csv lists every sample with its arm (intervention: probiotic / placebo / no_intervention …), condition, age, country and sequencing depth.

The same filters are on the Projects (health condition × intervention × design × "treated & control arms") and Samples.

MCP server

An assistant that speaks the Model Context Protocol can query one release on your own machine instead of reading files from this site. microbiome_repo-mcp (the Python package is called microbiome-repo-mcp) is a small Python package that reads the unpacked data package with DuckDB and answers six kinds of question: find projects, filter samples, summarise a condition, prevalence of a taxon per body site, how to cite, and the coded values a filter accepts. It is pinned to one release, downloads nothing and writes nothing; every answer names the release it came from. Installation and the list of tools are in its README.

Endpoints

filecontents
llms.txtplain-text instructions an assistant reads first (the prompt points here)
api/index.jsonendpoint list, meaning of every key, counts
api/vocabularies.jsoncodes and labels: health conditions, interventions, designs, age categories
api/projects.jsonall 5,086 projects (≈ 2 MB; better for scripts)
api/by-intervention/<code>.json · api/by-condition/<code>.json · api/by-age/<category>.jsonthe selections above
api/by-condition/<MONDO_0005011>.jsonone file per condition identifier (783); the name is the identifier with the colon written as an underscore, as on the Condition explorer. It selects the samples whose label was mapped to that condition, where by-condition/<code>.json selects the catalog's own health-condition code.
api/samples/<ACCESSION>.csvper-project sample sheet (plain CSV, key columns)
data/catalog_sample_metadata_wide.parquetevery sample, every field (for DuckDB / pandas / R)
data/catalog_studies.parquetone row per project
Downloads & releasesthe whole data package and every table

The API is a set of static files regenerated with every release (release R2026.44); URLs are stable. No key and no rate limit. Values are evidence-linked claims — the evidence for each is on the project page.

Licence: curated values CC-BY-4.0; archive metadata under INSDC terms; Sandpiper community profiles CC-BY. Cite: Microbiome Repo, release R2026.44 (data package 1.35.0), Olm Lab, University of Colorado Boulder, 2026-11-25. DOI 10.5281/zenodo.23087712 Please also cite the primary study of each project.

Project record keys

accessionBioProject accession
titleproject title
n_samplescatalog samples; in a selection file this and every other count below are the project's own totals, over all its samples, not only the samples of the selection
gbp_per_sample_medianmedian sequencing depth per sample (Gbp)
health_conditionscode -> number of samples
age_categorieslife stage -> number of samples
countriescountry -> number of samples
sexsex -> number of samples
interventionsinterventions the project ADMINISTERED (project level, from abstract / description; [] = none stated)
intervention_designrandomized_controlled_trial | non_randomized_controlled | crossover | single_arm_before_after | observational_with_procedure | none | unknown
intervention_detailshort free text naming agent / regimen
trial_population_conditionunderlying condition of the trial population
sample_intervention_armscode -> number of samples whose own archive record states the arm (placebo / no_intervention = controls / baselines)
has_cases_and_healthy_controls>= 3 healthy_control samples and >= 3 samples with a disease code
has_treated_and_control_arms>= 3 samples in an active arm and >= 3 placebo / no_intervention samples (archive attributes)
papersup to 5 linked papers
urlspage, samples_csv (plain CSV), samples_full_csv_gz, evidence_csv_gz, ena

The file an assistant reads: llms.txt.