# Ensembl: genes, variants and homologs

Ensembl REST: look up a gene by symbol or Ensembl ID \(location, biotype, canonical transcript\), predict the consequence of a variant with the Variant Effect Predictor, get dbSNP variant details, and find orthologs in other species.

- No API key needed to call
- Source: [Ensembl](https://www.ensembl.org/)
- Licence and terms: [no restrictions \(see source\)](https://www.ensembl.org/info/about/legal/disclaimer.html)
- Coverage: vertebrate and model organism genomes
- Answers are shared and cached for 43200 seconds.

## Questions you can ask

- Where is human BRCA2 located in the genome? (operation `ensembl_gene_by_symbol`)
- Which gene is ENSG00000139618? (operation `ensembl_lookup_id`)
- What does the variant ENST00000366667:c.803C\>T do to the protein? (operation `ensembl_variant_effect`)
- What are the alleles and frequency of rs56116432? (operation `ensembl_variant_by_rsid`)
- What is the mouse ortholog of human BRCA2? (operation `ensembl_orthologs`)

## Operations

### Gene by symbol and species

Answers: what is the Ensembl gene ID, genomic location, strand, biotype and canonical transcript of this gene symbol in this species?

- `species`: required, string, Ensembl species name such as homo\_sapiens, mus\_musculus, danio\_rerio.
- `symbol`: required, string, Gene symbol.

Example: Where is human BRCA2 located in the genome?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"ensembl","operation":"ensembl_gene_by_symbol","params":{"species":"homo_sapiens","symbol":"BRCA2"}}}
```

Over HTTP:

```
curl '/v1/connectors/ensembl/ensembl_gene_by_symbol?species=homo_sapiens&symbol=BRCA2'
```

### Look up an Ensembl ID

Answers: what is this Ensembl gene, transcript or protein ID \(symbol, species, location, biotype\)?

- `id`: required, string, Ensembl stable ID such as ENSG..., ENST..., ENSP....

Example: Which gene is ENSG00000139618?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"ensembl","operation":"ensembl_lookup_id","params":{"id":"ENSG00000139618"}}}
```

Over HTTP:

```
curl '/v1/connectors/ensembl/ensembl_lookup_id?id=ENSG00000139618'
```

### Predict a variant's consequence (VEP)

Answers: what is the predicted effect \(consequence, impact, amino acid change, SIFT and PolyPhen\) of this variant written in HGVS notation, and is it known in ClinVar?

- `species`: required, string, Species name such as human, mouse.
- `hgvs`: required, string, HGVS expression, for example ENST00000366667:c.803C\>T or 9:g.22125504G\>C.

Example: What does the variant ENST00000366667:c.803C\>T do to the protein?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"ensembl","operation":"ensembl_variant_effect","params":{"species":"human","hgvs":"ENST00000366667:c.803C>T"}}}
```

Over HTTP:

```
curl '/v1/connectors/ensembl/ensembl_variant_effect?species=human&hgvs=ENST00000366667%3Ac.803C%3ET'
```

### Variant details by rs ID

Answers: what are the alleles, genomic positions, minor allele frequency, variant class and most severe consequence of this dbSNP variant?

- `species`: required, string, Species name such as human.
- `rsid`: required, string, dbSNP rs identifier.

Example: What are the alleles and frequency of rs56116432?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"ensembl","operation":"ensembl_variant_by_rsid","params":{"species":"human","rsid":"rs56116432"}}}
```

Over HTTP:

```
curl '/v1/connectors/ensembl/ensembl_variant_by_rsid?species=human&rsid=rs56116432'
```

### Orthologs of a gene in another species

Answers: what is the ortholog of this gene in another species \(for example the mouse gene for human BRCA2\), with percent identity and ortholog type?

- `species`: required, string, Source species name.
- `symbol`: required, string, Gene symbol.
- `target_taxon`: optional, integer, NCBI taxonomy ID of the target species, for example 10090 for mouse, 7955 for zebrafish.

Example: What is the mouse ortholog of human BRCA2?

Over MCP:

```
{"tool":"call_connector_operation","arguments":{"connector":"ensembl","operation":"ensembl_orthologs","params":{"species":"human","symbol":"BRCA2","target_taxon":10090}}}
```

Over HTTP:

```
curl '/v1/connectors/ensembl/ensembl_orthologs?species=human&symbol=BRCA2&target_taxon=10090'
```

## Source notice

Source: Ensembl \(EMBL-EBI and Wellcome Sanger Institute\). Terms: "Ensembl imposes no restrictions on access to, or use of, the data provided and the software used to analyse and present it."

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