[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [NCBI Gene search results](https://spiral.ai/integrations/n8n/ncbi-gene-search-results)

# How to Use NCBI Gene search results in n8n

Returns matching NCBI Gene records for discovery, including searches restricted by organism and gene type. Use it to assemble a candidate list before inspecting individual genes or finding counterparts in other species.

|  |  |
| --- | --- |
| Model | NCBI Gene search results |
| Available through | Alexandria |
| Category | Health |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with NCBI Gene search results in n8n

- Every month, use NCBI Gene search results to retrieve current mouse protein-coding genes and report GeneIDs newly appearing in the results.
- Every month, use NCBI Gene search results to retrieve current zebrafish pseudogenes and compare the returned identities with the previous month's results.
- Every Monday at 9am: use NCBI Gene search results to look this up and give me the result as a table.
- Pull the latest numbers from NCBI Gene search results and tell me what changed since last week.
- Check NCBI Gene search results and summarize what you find in three bullet points.

## How to set up NCBI Gene search results in n8n

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

### Use the Spiral skill

1. **Send n8n 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 Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

```text
https://api.spiral.ai/mcp
```

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run NCBI Gene search results in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds NCBI Gene search results, prices it and runs it each time the step fires.

### 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 NCBI Gene search results**: 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": "gene-ncbi-nlm-nih-gov/genes/search",
    "input": {
      "query": "<query>"
    }
  }'
```

Then paste one of the prompts above: n8n finds NCBI Gene search results on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/n8n

## NCBI Gene search results tools and prices

- [NCBI Gene · Search](https://spiral.ai/tools/alexandria/gene-ncbi-nlm-nih-gov/genes/search) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| limit | 1 to 50 | 10 | Results per page. |
| offset | 0 to 1000000 | 0 | Zero-based index of the first result; pass `next_offset` for the next page. |
| organism |  | — | Only genes of this organism: NCBI taxonomy ID (`9606`) or scientific or common name (`Homo sapiens`, `mouse`, `Danio rerio`). Without it, results span all organisms. |
| gene_type | protein_coding, ncrna, pseudogene, trna, rrna, snrna, scrna, snorna, misc_rna, biological_region, other, unknown | — | Only genes of this type. |
| include_discontinued |  | — | Also list replaced and discontinued records (`status` says which; a replaced row names its `current_gene_id`). Default: current genes only. |

## What can you do with NCBI Gene search results in n8n?

Keep a research watchlist current as NCBI gene descriptions and species mappings change. A scheduled agent can compare successive results and report changes to gene identities, summaries and ortholog lists.

### Prepare a model organism shortlist

Find candidate genes in a study species, inspect their NCBI descriptions, and retrieve counterparts in mouse, rat or zebrafish to prepare a comparison for experimental planning.

### Build a comparative gene reference

Assemble an organism-specific gene list, add summaries and genomic locations, and connect the entries to NCBI-calculated counterparts in selected species.

### Check a cross-species analysis

Review candidate records from each organism, verify individual gene identities, and compare the proposed species mappings with NCBI's ortholog relationships.

### Maintain a research gene catalog

Refresh organism-specific discovery lists, compare saved gene descriptions with current records, and flag changes to the ortholog links used by a research catalog.

### Normalize gene annotations

Review candidate records and resolve selected genes to GeneIDs, current symbols and names before joining annotations to a research table.

### Create a comparative genetics exercise

Select genes from an organism-specific result list and build a worksheet comparing names, descriptions, locations and ortholog relationships across species.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All n8n guides](https://spiral.ai/integrations/n8n)

## NCBI Gene search results in other agents

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

## More n8n guides

- [NCBI Gene orthologs](https://spiral.ai/integrations/n8n/ncbi-gene-orthologs)
- [NEVO food groups](https://spiral.ai/integrations/n8n/nevo-food-groups)
- [NCBI Gene details](https://spiral.ai/integrations/n8n/ncbi-gene-details)
- [NEVO food nutrient comparison](https://spiral.ai/integrations/n8n/nevo-food-nutrient-comparison)
- [NCBI GEO study search](https://spiral.ai/integrations/n8n/ncbi-geo-study-search)
- [NEVO food nutrient details](https://spiral.ai/integrations/n8n/nevo-food-nutrient-details)

## Questions about NCBI Gene search results in n8n

**Can n8n use NCBI Gene search results?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run NCBI Gene search results like any built-in tool.

**How much does NCBI Gene search results cost in n8n?**

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

**Do I need an Alexandria account to use NCBI Gene search results in n8n?**

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs NCBI Gene search results on its own Alexandria account.

**How long does it take to set up NCBI Gene search results in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while NCBI Gene search results runs?**

NCBI Gene search results runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

**Where do NCBI Gene records come from?**

NCBI Gene is primarily built from gene models on annotated RefSeq genomes. Its coverage therefore reflects the genomes and annotations represented in that collection.

**How fresh is NCBI Gene?**

Gene and RefSeq records are updated daily when new information arrives from external sources, including model organism databases. An individual record can remain unchanged between those incoming updates.

**Why can a gene record exist but be missing from search?**

A newly public record can be accessible by GeneID before Entrez indexing finishes. NCBI says this discrepancy should last no more than 24 hours.

**Can the same GeneID refer to genes in different species?**

No. GeneIDs are unique across taxa, so genes in different species have distinct identifiers even when their symbols resemble each other.

**Does every gene have a reference assembly location?**

No. NCBI's tabular display omits the reference assembly location when a gene is not annotated on that assembly.

