# CAIROME (Cancer AI Ready Omics for Modeling and Exploration) — guide for AI agents

Processed multiomics data (genomics, transcriptomics, proteomics, phosphoproteomics) from public tumor cohorts, with tools for enrichment (Enrichr) and drug discovery (Perturb-Seqr). A Ma'ayan Lab and Pei Wang Lab (Mount Sinai) collaboration, part of the NIH BioGenesis project.

> Research use only. Nothing here is clinical advice.

## Connect

MCP endpoint (Streamable HTTP, no authentication): https://cairome.k8s.maayanlab.cloud/api/mcp

```json
{
  "mcpServers": {
    "biogenesis": {
      "type": "http",
      "url": "https://cairome.k8s.maayanlab.cloud/api/mcp"
    }
  }
}
```

Server card: https://cairome.k8s.maayanlab.cloud/.well-known/mcp.json

### Quick start for coding agents

**Claude Code**

```sh
claude mcp add --transport http biogenesis https://cairome.k8s.maayanlab.cloud/api/mcp
```

Add --scope user to use it in every project, or --scope project to share it through .mcp.json.

**OpenAI Codex CLI**

```sh
codex mcp add biogenesis --url https://cairome.k8s.maayanlab.cloud/api/mcp
```

Or add to `~/.codex/config.toml`:

```toml
[mcp_servers.biogenesis]
url = "https://cairome.k8s.maayanlab.cloud/api/mcp"
```

**Gemini CLI**

```sh
gemini mcp add --transport http biogenesis https://cairome.k8s.maayanlab.cloud/api/mcp
```

Or add to `~/.gemini/settings.json`:

```json
{
  "mcpServers": {
    "biogenesis": {
      "httpUrl": "https://cairome.k8s.maayanlab.cloud/api/mcp"
    }
  }
}
```

**Cursor**

Add to `.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "biogenesis": {
      "url": "https://cairome.k8s.maayanlab.cloud/api/mcp"
    }
  }
}
```

Use ~/.cursor/mcp.json instead to enable it in every project.

**VS Code (GitHub Copilot agent mode)**

Add to `.vscode/mcp.json`:

```json
{
  "servers": {
    "biogenesis": {
      "type": "http",
      "url": "https://cairome.k8s.maayanlab.cloud/api/mcp"
    }
  }
}
```

## Skills

Read the relevant skill before using a resource's tools (also available through the `read_skill` tool):

- [biogenesis-data](https://cairome.k8s.maayanlab.cloud/skills/biogenesis-data): How the CAIROME processed tumor-cohort assets are organized (cohorts, omics layers, signature methods, subtypes, clinical variables, file formats) and which tools answer which questions. Read first for any data question.
- [enrichr](https://cairome.k8s.maayanlab.cloud/skills/enrichr): Gene-set enrichment analysis with Enrichr — when to use it, which libraries to pick, and how to interpret and report results from the run_enrichr tool.
- [perturb-seqr](https://cairome.k8s.maayanlab.cloud/skills/perturb-seqr): Connectivity-map drug and gene-perturbation search with Perturb-Seqr — finding perturbations that reverse (candidate therapeutics) or mimic a patient or subtype signature via find_patient_drugs / run_perturbseqr.

## Tools

- `list_cancer_types`: List the cancer types in the portal with organ, number of cohorts and patients.
- `search_cohorts`: Find cohorts by free-text query, cancer type id and/or omics layer.
- `get_cohort`: Cohort metadata: description, layers, signature methods per layer, UMAPs, attribute tables, subtypes (with sizes), featured clinical variables (use search_clinical_variables for the rest) and the downloadable files.
- `summarize_clinical`: Summarize a column of the clinical table (numeric: mean/sd/median; categorical: counts; NA values are counted as missing), optionally grouped by another clinical variable (e.g. overall_survival by TCGA_subtype_v2). Find variable names with search_clinical_variables.
- `search_clinical_variables`: Find clinical-table variables by name fragment and/or group. Clinical tables can have 1000+ columns (mutations as <GENE>_somatic_type, copy number as <GENE>_cnv, deconvolution, scores…).
- `get_gene_expression`: One gene's values from a layer's attribute table (expression z-scored across genes within each sample), summarized per group of patients defined by a clinical variable (default: the cohort's subtype column).
- `get_differential_expression`: Top differentially expressed genes for a subtype vs the other subtyped patients, computed on the fly from the attribute table (Welch t-test on z-scores, BH-adjusted).
- `find_gene_across_cohorts`: For one gene, in every cohort: somatic mutation frequency and the share of patients whose up/down/modified signature (per layer and method) contains it.
- `get_gene_sets`: Read per-patient gene sets: up/down signatures (transcriptomics, proteomics), modified-site gene sets (phosphoproteomics) for a layer and method, or somatic mutations (from the clinical table). Optionally filter to one patient.
- `query_knowledge_graph`: Search knowledge-graph assertions (Patient→upregulated_gene/downregulated_gene/upregulated_protein/downregulated_protein/modified→Gene or phosphorylated_site, and Gene→site→phosphorylated_site). Filter by a node id or label (a gene, patient or site such as "BRAF_S365"), relation substring, node type, cohort, layer and method.
- `get_patient_signature`: A patient's signature for a layer and method: up and down genes (transcriptomics, proteomics) or modified-site genes (phosphoproteomics).
- `run_enrichr`: Gene-set enrichment analysis of a gene list with Enrichr. Returns the top terms per library and a shareable Enrichr link. Read the "enrichr" skill first.
- `run_perturbseqr`: Find drug and gene perturbations that reverse or mimic an up/down gene signature using Perturb-Seqr. Read the "perturb-seqr" skill first.
- `find_patient_drugs`: Perturb-Seqr reversers/mimickers of one patient's up/down signature (transcriptomics or proteomics; phosphoproteomics sets have no direction). Read the "perturb-seqr" skill first.
- `get_file_url`: Download URLs for cohort files, optionally filtered by format (gmt = per-patient signatures, kg = assertions, attributes = genes × samples attribute table, clinical, umap, json), layer and/or method.
- `list_skills`: List the resource-specific skill guides (name + description).
- `read_skill`: Read a resource-specific skill guide (SKILL.md) before using the corresponding tools.

## Files

Every asset can be downloaded from `https://cairome.k8s.maayanlab.cloud/api/files/<path>`. The catalog is at https://cairome.k8s.maayanlab.cloud/api/files/catalog.json, and each cohort's file list is in `cohorts/<id>/metadata.json`.
