[Integrations](https://spiral.ai/integrations) › [Gemini CLI](https://spiral.ai/integrations/gemini-cli) › [UniProt protein ID mapping](https://spiral.ai/integrations/gemini-cli/uniprot-protein-id-mapping)

# How to Use UniProt protein ID mapping in Gemini CLI

Resolve gene symbols and external database identifiers to UniProtKB accessions. Use it to reconcile a list from a paper or dataset before retrieving protein details.

|  |  |
| --- | --- |
| Model | UniProt protein ID mapping |
| Available through | Alexandria |
| Category | Health |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with UniProt protein ID mapping in Gemini CLI

- Use UniProt protein ID mapping to resolve the human genes TP53, EGFR, and BRCA1, then add the returned accessions to a CSV in this project.
- Use UniProt protein ID mapping to resolve human NCBI Gene identifiers 7157 and 1956, preserving each original identifier beside its returned accession.
- Use UniProt protein ID mapping to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from UniProt protein ID mapping and tell me what changed since last week.
- Check UniProt protein ID mapping and summarize what you find in three bullet points.

## How to set up UniProt protein ID mapping in Gemini CLI

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Or add it to `~/.gemini/settings.json` yourself:

```bash
gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `gemini` and run:

```text
/mcp auth spiral
```

3. **Check it**: In Gemini CLI, run `/mcp`. From your shell:

```bash
gemini mcp list
```

### Use the Spiral skill

1. **Send Gemini CLI this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run UniProt protein ID mapping**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "uniprot-org/proteins/map_ids",
    "input": {
      "ids": [
        "<ids>"
      ]
    }
  }'
```

Then paste one of the prompts above: Gemini CLI finds UniProt protein ID mapping on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/gemini-cli

## UniProt protein ID mapping tools and prices

- [UniProt · Map ids](https://spiral.ai/tools/alexandria/uniprot-org/proteins/map_ids) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| from | gene, ensembl, ncbi_gene, pdb, chembl | gene | Kind of the identifiers: `gene` (gene symbols and synonyms), `ensembl` (ENSG/ENST/ENSP IDs), `ncbi_gene` (Entrez Gene IDs such as `7157`), `pdb` (4-character PDB IDs), `chembl` (ChEMBL target IDs). |
| organism |  | — | Restrict to an organism: NCBI taxonomy ID (`9606` human, `10090` mouse) or name. Strongly recommended for gene symbols. |
| reviewed_only |  | — | Only reviewed Swiss-Prot entries (default). false also returns unreviewed TrEMBL entries, which can be many per gene. |

## What can you do with UniProt protein ID mapping in Gemini CLI?

Add UniProt accessions and biological context to a research project’s gene tables. A coding agent can reconcile identifiers and turn protein functions, locations, and evidence into tables used by the project.

### Annotate a published gene list

Map the gene symbols in a paper to UniProt accessions, search uncertain names, and retrieve protein functions and cellular locations for the resolved records.

### Prepare a protein research brief

Find a protein by name or resolve its external identifier, then summarize its function, location, disease annotations, and links to other research databases.

### Reconcile public research datasets

Convert external identifiers to UniProt accessions, investigate unresolved labels through protein search, and use detailed annotations to check that the matched proteins fit the dataset.

### Build a teaching reference table

Start with protein names or gene symbols and create a table connecting accessions, biological functions, cellular locations, and annotation evidence.

### Connect identifiers across databases

Resolve gene symbols or external identifiers to UniProt accessions so public datasets can use a consistent protein identifier.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Gemini CLI guides](https://spiral.ai/integrations/gemini-cli)

## UniProt protein ID mapping in other agents

- [Amp](https://spiral.ai/integrations/amp/uniprot-protein-id-mapping)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/uniprot-protein-id-mapping)
- [Claude](https://spiral.ai/integrations/claude-desktop/uniprot-protein-id-mapping)
- [Claude Code](https://spiral.ai/integrations/claude-code/uniprot-protein-id-mapping)
- [Cline](https://spiral.ai/integrations/cline/uniprot-protein-id-mapping)
- [Codex](https://spiral.ai/integrations/codex/uniprot-protein-id-mapping)
- [Cursor](https://spiral.ai/integrations/cursor/uniprot-protein-id-mapping)
- [Devin](https://spiral.ai/integrations/devin/uniprot-protein-id-mapping)
- [dots](https://spiral.ai/integrations/dots/uniprot-protein-id-mapping)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/uniprot-protein-id-mapping)
- [Gemini](https://spiral.ai/integrations/gemini/uniprot-protein-id-mapping)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/uniprot-protein-id-mapping)
- [goose](https://spiral.ai/integrations/goose/uniprot-protein-id-mapping)
- [Grok](https://spiral.ai/integrations/grok/uniprot-protein-id-mapping)
- [Grok Build](https://spiral.ai/integrations/grok-build/uniprot-protein-id-mapping)
- [Hermes](https://spiral.ai/integrations/hermes/uniprot-protein-id-mapping)
- [Instinct](https://spiral.ai/integrations/instinct/uniprot-protein-id-mapping)
- [Manus](https://spiral.ai/integrations/manus/uniprot-protein-id-mapping)
- [Muse](https://spiral.ai/integrations/muse/uniprot-protein-id-mapping)
- [Muse Code](https://spiral.ai/integrations/muse-code/uniprot-protein-id-mapping)
- [n8n](https://spiral.ai/integrations/n8n/uniprot-protein-id-mapping)
- [Notion](https://spiral.ai/integrations/notion/uniprot-protein-id-mapping)
- [OpenClaw](https://spiral.ai/integrations/openclaw/uniprot-protein-id-mapping)
- [opencode](https://spiral.ai/integrations/opencode/uniprot-protein-id-mapping)
- [Perplexity](https://spiral.ai/integrations/perplexity/uniprot-protein-id-mapping)
- [Raycast](https://spiral.ai/integrations/raycast/uniprot-protein-id-mapping)
- [VS Code](https://spiral.ai/integrations/vscode/uniprot-protein-id-mapping)
- [Windsurf](https://spiral.ai/integrations/windsurf/uniprot-protein-id-mapping)
- [Zapier](https://spiral.ai/integrations/zapier/uniprot-protein-id-mapping)

## More Gemini CLI guides

- [STRING protein interaction partners](https://spiral.ai/integrations/gemini-cli/string-protein-interaction-partners)
- [UniProt protein details](https://spiral.ai/integrations/gemini-cli/uniprot-protein-details)
- [STRING protein interaction network](https://spiral.ai/integrations/gemini-cli/string-protein-interaction-network)
- [UniProt protein search](https://spiral.ai/integrations/gemini-cli/uniprot-protein-search)
- [STRING protein functional enrichment](https://spiral.ai/integrations/gemini-cli/string-protein-functional-enrichment)
- [dbSNP SNP details](https://spiral.ai/integrations/gemini-cli/dbsnp-snp-details)

## Questions about UniProt protein ID mapping in Gemini CLI

**Can Gemini CLI use UniProt protein ID mapping?**

Yes. Add Spiral to Gemini CLI as an MCP server, and Gemini CLI can find and run UniProt protein ID mapping like any built-in tool.

**How much does UniProt protein ID mapping cost in Gemini CLI?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini CLI plan is separate.

**Do I need an Alexandria account to use UniProt protein ID mapping in Gemini CLI?**

No. Spiral runs UniProt protein ID mapping on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up UniProt protein ID mapping in Gemini CLI?**

About two minutes: add the server, then sign in, then check it.

**Does Gemini CLI wait while UniProt protein ID mapping runs?**

UniProt protein ID mapping runs in the background. Gemini CLI starts the run, checks on it and gives you the json when it's ready.

**Does UniProtKB contain every known protein sequence?**

UniProtKB focuses on reference proteomes and selected additional proteins with experimental or biological importance. Sequences from non-reference proteomes are also available through UniParc and the Proteomes portal.

**What is the difference between reviewed and unreviewed protein records?**

Swiss-Prot records are manually annotated, while TrEMBL records receive computational annotation. Expert review considers both experimental and predicted data, so reviewed status does not mean every annotation was experimentally demonstrated.

**What evidence supports UniProt annotations?**

UniProt uses Evidence and Conclusion Ontology codes to identify annotation origins. These distinguish evidence behind biological statements, including experimental and computational sources.

**What does a protein location annotation describe?**

UniProt’s subcellular location annotations describe the mature protein’s location and topology in the cell. This makes them useful for distinguishing proteins associated with different cellular compartments.

