Spiral gives your agent every tool with one account. Browse the tools →

Codex · Health

How to Use UniProt protein search in Codex

Find UniProtKB protein records matching a name, gene, or biological query. Use it to discover accessions and compare candidate matches before requesting detailed annotations.

Prompts to try with UniProt protein search in Codex

Copy an example into Codex, or ask in your own words.

Use UniProt protein search to find human insulin receptor records and save the returned accessions and names as a project data file.

UniProt protein searchCodex
Try asking
  • Use UniProt protein search to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from UniProt protein search and tell me what changed since last week.

  • Check UniProt protein search and summarize what you find in three bullet points.

  • Pull the newest data from UniProt protein search and give me the result as a table.

How to set up UniProt protein search in Codex

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

Use Spiral's MCP server

  1. Add the hosted server
    codex mcp add spiral --url https://api.spiral.ai/mcp
  2. Sign in

    Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.

    codex mcp login spiral

Use the Spiral skill

  1. Send Codex 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.

    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 search

    One request; the result comes back by polling or a webhook.

    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/search",
        "input": {
          "query": "<query>"
        }
      }'

Then paste one of the prompts above: Codex finds UniProt protein search on Spiral, shows the price and runs it.

UniProt protein search providers and prices

Spiral runs UniProt protein search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaHealth
UniProt · Search
uniprot-org/proteins/search

Settings you can ask for

Ask Codex for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Limit1 to 10010

Results per page.

Reviewedon or off

true: only reviewed Swiss-Prot entries (curated, the usual choice); false: only unreviewed TrEMBL entries. Omit for both.

Every API field of UniProt · Search is on its tool page: open its card above.

What can you do with UniProt protein search in Codex?

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.

Check cellular compartment annotations

Find proteins of interest and inspect their location annotations and supporting evidence before selecting records for a compartment-specific research comparison.

Questions about UniProt protein search in Codex

Can Codex use UniProt protein search?

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run UniProt protein search like any built-in tool.

How much does UniProt protein search cost in Codex?

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

Do I need an Alexandria account to use UniProt protein search in Codex?

No. Spiral runs UniProt protein search 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 search in Codex?

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

Does Codex wait while UniProt protein search runs?

UniProt protein search runs in the background. Codex 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.

Get started

Start using UniProt protein search in Codex

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Codex:

Set up Codex

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options