# NCBI Datasets: genes, genome assemblies and taxonomy

NCBI Datasets reports: gene records by symbol or Gene ID \(location, aliases, Ensembl, UniProt and OMIM cross references\), genome assembly statistics, and taxonomy nodes with lineage and record counts.

- No API key needed to call
- Source: [NCBI Datasets](https://www.ncbi.nlm.nih.gov/datasets/)
- Licence and terms: [US government work \(see source\)](https://www.ncbi.nlm.nih.gov/home/about/policies/)
- Coverage: all organisms in NCBI RefSeq and GenBank
- Answers are shared and cached for 21600 seconds.

## Questions you can ask

- What is the genomic location and Ensembl ID of human BRCA1? (operation `ncbi_datasets_gene_by_symbol`)
- Which gene is NCBI Gene ID 672? (operation `ncbi_datasets_gene_by_id`)
- How large is the GRCh38.p14 human genome assembly and what is its N50? (operation `ncbi_datasets_assembly`)
- Which reference genome assemblies exist for Escherichia coli? (operation `ncbi_datasets_taxon_assemblies`)
- What is the taxonomic lineage of NCBI taxon 9606? (operation `ncbi_datasets_taxon`)
- What taxa have names starting with escherichia? (operation `ncbi_datasets_taxon_suggest`)

## Operations

### Gene record by symbol and taxon

Answers: what is the NCBI Gene ID, type, chromosome, genomic location, aliases and cross references \(Ensembl, UniProt, OMIM, HGNC\) of this gene symbol in this organism?

- `symbol`: required, string, Gene symbol.
- `taxon`: required, string, NCBI taxonomy ID \(9606 is human\) or organism name.

Example: What is the genomic location and Ensembl ID of human BRCA1?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"ncbi_datasets","operation":"ncbi_datasets_gene_by_symbol","params":{"symbol":"BRCA1","taxon":"9606"}}}
```

Over HTTP:

```
curl '/v1/connectors/ncbi_datasets/ncbi_datasets_gene_by_symbol?symbol=BRCA1&taxon=9606'
```

### Gene record by NCBI Gene ID

Answers: which gene is NCBI Gene ID N, and what are its symbol, organism, location and cross references?

- `gene_id`: required, string, NCBI Gene ID.

Example: Which gene is NCBI Gene ID 672?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"ncbi_datasets","operation":"ncbi_datasets_gene_by_id","params":{"gene_id":"672"}}}
```

Over HTTP:

```
curl '/v1/connectors/ncbi_datasets/ncbi_datasets_gene_by_id?gene_id=672'
```

### Genome assembly report by accession

Answers: what are the organism, assembly level, size, contig and scaffold N50, GC percent and annotation of this genome assembly accession \(GCF\_ or GCA\_\)?

- `accession`: required, string, Assembly accession such as GCF\_000001405.40.

Example: How large is the GRCh38.p14 human genome assembly and what is its N50?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"ncbi_datasets","operation":"ncbi_datasets_assembly","params":{"accession":"GCF_000001405.40"}}}
```

Over HTTP:

```
curl '/v1/connectors/ncbi_datasets/ncbi_datasets_assembly?accession=GCF_000001405.40'
```

### Reference genome assemblies for a taxon

Answers: which complete reference genome assemblies exist for this organism or taxon \(accession, strain, level, release date, size\)?

- `taxon`: required, string, NCBI taxonomy ID or organism name.
- `reference_only`: optional, boolean, default true, Only RefSeq reference or representative assemblies.
- `page_size`: optional, integer, default 5, Assemblies to return.

Example: Which reference genome assemblies exist for Escherichia coli?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"ncbi_datasets","operation":"ncbi_datasets_taxon_assemblies","params":{"taxon":"562","page_size":3}}}
```

Over HTTP:

```
curl '/v1/connectors/ncbi_datasets/ncbi_datasets_taxon_assemblies?taxon=562&page_size=3'
```

### Taxonomy node by ID or name

Answers: what is the rank, scientific name, common name, lineage and number of genes and assemblies of this NCBI taxonomy node?

- `taxon`: required, string, NCBI taxonomy ID or organism name.

Example: What is the taxonomic lineage of NCBI taxon 9606?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"ncbi_datasets","operation":"ncbi_datasets_taxon","params":{"taxon":"9606"}}}
```

Over HTTP:

```
curl '/v1/connectors/ncbi_datasets/ncbi_datasets_taxon?taxon=9606'
```

### Find taxa by name prefix

Answers: which organisms or taxa have a name starting with these letters, and what are their NCBI taxonomy IDs and ranks?

- `name`: required, string, Start of a scientific or common name.

Example: What taxa have names starting with escherichia?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"ncbi_datasets","operation":"ncbi_datasets_taxon_suggest","params":{"name":"escherichia"}}}
```

Over HTTP:

```
curl '/v1/connectors/ncbi_datasets/ncbi_datasets_taxon_suggest?name=escherichia'
```

## Source notice

Source: National Center for Biotechnology Information \(NCBI\), US National Library of Medicine. Terms were not quoted here: see the terms page. NCBI describes content created by or for the US government as free of copyright; some linked records carry their own submitter terms.

## Missing something?

Tell us what data, endpoint or feature you wish we had. It is free and needs no signup: call the MCP tool request_capability, or POST a short description to https://agentnative.dennery.ai/v1/capabilities/request.
