Skip to main content
Glama
BugSigDB Explorer MCP Server

BugSigDB Explorer MCP Server

by seandavi

BugSigDB Explorer

What does the published microbiome literature say about a microbe, a condition, or a study?

BugSigDB Explorer organizes the curated signatures in BugSigDB, lists of taxa reported increased or decreased between groups in published studies, around the things people actually look up: taxa, conditions and studies. It adds physiology traits from bugphyzz, and serves everything as web pages, a REST API and an MCP server for AI agents.

Try it: https://bugsigdb-poc.cancerdatasci.org (a proof of concept: expect changes)

Taxon card for Akkermansia: lineage, signature counts, direction of change, body sites and conditions

What you can do

  • Taxon cards (in the spirit of GeneCards): every signature that names a taxon or any of its descendants, which conditions and body sites they come from, how often the taxon goes up versus down, its bugphyzz traits, and its subtaxa. Example: Akkermansia.

  • Conditions (EFO/MONDO terms): the studies behind a condition and the taxa reported in its signatures, with the up/down split for each. Example: colorectal cancer.

  • Studies, experiments and signatures, linked to each other, to PubMed, and back to BugSigDB. Signature pages list the most similar signatures by shared taxa.

  • One search box for taxa, conditions and studies, tolerant of typos, that also takes exact IDs: NCBI tax ID, PMID, DOI (or its prefix), EFO/MONDO ID, or bsdb:study/experiment/signature.

Related MCP server: hpo-api

Use it from code or an AI agent

REST (read-only JSON; interactive docs at /api/docs):

curl 'https://bugsigdb-poc.cancerdatasci.org/api/search?q=crohn'
curl 'https://bugsigdb-poc.cancerdatasci.org/api/taxa/239934'
curl 'https://bugsigdb-poc.cancerdatasci.org/api/conditions/MONDO:0005180'

MCP (streamable HTTP, no auth), for example in Claude Code:

claude mcp add --transport http bugsigdb https://bugsigdb-poc.cancerdatasci.org/mcp

Tools: search, search_taxa, get_taxon, search_studies, get_study, get_experiment, get_signature, search_conditions, get_condition.

Data, and how to read it

Source

What

License

BugSigDB (exports)

studies, experiments, signatures, taxa, conditions

CC BY 4.0

bugphyzz (exports)

physiology traits, including ones predicted by ancestral state reconstruction

CC BY-SA 4.0

NCBI Taxonomy

names and lineage, as recorded in BugSigDB

public domain

Data served by this app carry those licenses; please attribute BugSigDB and bugphyzz when you reuse it. The database is rebuilt from the public exports, so it can lag BugSigDB by a few days.

Some things to keep in mind:

  • A signature is what one study reported for one comparison. Counts of signatures are not independent evidence: one study can contribute several.

  • BugSigDB records reported changes. Studies that looked for a taxon and found no difference are mostly absent, so "increased in 40, decreased in 5" is not a meta-analysis.

  • Taxon cards roll up descendants (a genus card includes its species' signatures). Condition pages count taxa as curated, without roll-up.

  • Only taxa named in at least one signature, and their ancestors, have pages. Names follow current NCBI taxonomy (Segatella copri, not Prevotella copri).

Found a data error? Correct it on BugSigDB (or report trait errors to bugphyzz); the fix appears here after the next load.

How it works

BugSigDB + bugphyzz exports ──load.py──▶ Postgres (built in a staging schema, swapped in atomically)
                                              │
                               queries.py (every read query)
                              ╱               │               ╲
                    HTML pages            REST /api            MCP /mcp
                 (web.py, Jinja2)        (FastAPI app.py)     (MCP Python SDK)

One FastAPI app, server-rendered HTML with one stylesheet and a small script (no frontend build), and pg_trgm for search. It is read-only by design: BugSigDB is the source of truth.

Run it locally

Needs Docker, uv and just.

git clone https://github.com/seandavi/bugsigdb-app && cd bugsigdb-app
just up      # Postgres + app in Docker; app on http://127.0.0.1:8042
just load    # fetch the public exports and load them (~5 s)
just test

The public deployment runs from deploy/onclappc02/ (Docker Compose behind Traefik and Cloudflare); just release there rebuilds, reloads the data and restarts.

Contributing

Bug reports, ideas and pull requests are welcome: start with an issue. See CONTRIBUTING.md for setup and how the code is organized. Everyone taking part agrees to the Code of Conduct.

Credits and citation

The data are the work of the BugSigDB and bugphyzz curators and maintainers in the Waldron lab and their community. If you use results from this app, please cite BugSigDB and bugphyzz as their sites describe.

License

Code: MIT. Data: see Data above.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to query Human Phenotype Ontology clinical phenotype terms, navigate term hierarchies, and retrieve gene-disease and disease-phenotype annotations through keyless MCP tools.
      69 npm
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      Enables AI assistants to search and retrieve global biodiversity data — species taxonomy, occurrence records, datasets, map tiles, literature citations and controlled vocabularies — through a standard tool interface. It exposes the source's API as dozens of typed, paginated tools that any MCP client can call.
      58
      CC BY-4.0