# NCBI Entrez: search and summaries across NCBI databases

NCBI Entrez E-utilities over about 30 NCBI databases \(PubMed, Gene, Protein, Nucleotide, dbSNP, ClinVar, Taxonomy, MeSH, Structure, BioSample, SRA, GEO and more\): search by Entrez query, get document summaries for identifiers, and follow links between databases.

- No API key needed to call
- Source: [NCBI Entrez \(E-utilities\)](https://www.ncbi.nlm.nih.gov/)
- Licence and terms: [US government work \(see source\)](https://www.ncbi.nlm.nih.gov/home/about/policies/)
- Coverage: worldwide biomedical and molecular records
- Answers are shared and cached for 21600 seconds.

## Questions you can ask

- What is the NCBI Gene ID of human BRCA1? (operation `ncbi_entrez_search`)
- Give the NCBI Gene summary for gene ID 672. (operation `ncbi_entrez_summary`)
- Which ClinVar records are linked to NCBI Gene 672? (operation `ncbi_entrez_links`)

## Operations

### Search an NCBI database

Answers: how many records match this Entrez query in this NCBI database, and what are the first identifiers? Supports Entrez field tags such as BRCA1\[sym\] AND human\[orgn\] or 2024\[dp\].

- `db`: required, string, pubmed \| pmc \| gene \| protein \| nuccore \| snp \| taxonomy \| clinvar \| mesh \| structure \| biosample \| bioproject \| sra \| gds \| medgen \| nlmcatalog \| books \| assembly \| genome \| dbvar \| gtr \| cdd \| biosystems \| pccompound \| pcassay \| popset \| nucest \| nucgss \| proteinclusters \| geoprofiles, NCBI database name.
- `term`: required, string, Entrez query text with optional \[field\] tags.
- `retmax`: optional, integer, default 10, How many identifiers to return.

Example: What is the NCBI Gene ID of human BRCA1?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"ncbi_entrez","operation":"ncbi_entrez_search","params":{"db":"gene","term":"BRCA1[sym] AND human[orgn]","retmax":3}}}
```

Over HTTP:

```
curl '/v1/connectors/ncbi_entrez/ncbi_entrez_search?db=gene&term=BRCA1%5Bsym%5D+AND+human%5Borgn%5D&retmax=3'
```

### Document summaries for NCBI identifiers

Answers: what are the summary fields \(name, description, accession, organism, dates\) of these NCBI records? Give the database and up to 10 numeric identifiers; returns the scalar summary fields of each.

- `db`: required, string, pubmed \| pmc \| gene \| protein \| nuccore \| snp \| taxonomy \| clinvar \| mesh \| structure \| biosample \| bioproject \| sra \| gds \| medgen \| nlmcatalog \| books \| assembly \| genome \| dbvar \| gtr \| cdd \| biosystems \| pccompound \| pcassay \| popset \| nucest \| nucgss \| proteinclusters \| geoprofiles, NCBI database name.
- `ids`: required, string, Comma separated numeric UIDs, up to 10.

Example: Give the NCBI Gene summary for gene ID 672.

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"ncbi_entrez","operation":"ncbi_entrez_summary","params":{"db":"gene","ids":"672"}}}
```

Over HTTP:

```
curl '/v1/connectors/ncbi_entrez/ncbi_entrez_summary?db=gene&ids=672'
```

### Linked records in another NCBI database

Answers: which records in a second NCBI database are linked to this record \(for example the PubMed articles about a gene, or ClinVar records for a gene\)? Returns link counts per link type and the first identifiers.

- `dbfrom`: required, string, gene \| pubmed \| protein \| nuccore \| snp \| taxonomy \| clinvar \| structure \| biosample \| bioproject \| assembly \| pmc, Database of the source record.
- `db`: required, string, pubmed \| gene \| protein \| nuccore \| snp \| taxonomy \| clinvar \| structure \| biosample \| bioproject \| assembly \| pmc \| medgen \| omim, Database to find links in.
- `id`: required, string, One numeric UID in the source database.
- `limit`: optional, integer, default 10, How many linked identifiers to return per link type.

Example: Which ClinVar records are linked to NCBI Gene 672?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"ncbi_entrez","operation":"ncbi_entrez_links","params":{"dbfrom":"gene","db":"clinvar","id":"672","limit":5}}}
```

Over HTTP:

```
curl '/v1/connectors/ncbi_entrez/ncbi_entrez_links?dbfrom=gene&db=clinvar&id=672&limit=5'
```

## 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.
