[Integrations](https://spiral.ai/integrations) › [VS Code](https://spiral.ai/integrations/vscode) › [dbSNP SNP details](https://spiral.ai/integrations/vscode/dbsnp-snp-details)

# How to Use dbSNP SNP details in VS Code

Returns a full RefSNP record with sequence placements, gene and protein annotations, study frequencies, ClinVar assertions, and publication references where available. Use it to investigate an rsID beyond its population frequency.

|  |  |
| --- | --- |
| Model | dbSNP SNP details |
| 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 dbSNP SNP details in VS Code

- Use dbSNP SNP details for rs334 and rs6025, then add their returned alleles, gene annotations, and sequence placements to this project's research fixtures.
- Use dbSNP SNP details for rs429358 and rs7412 to check whether our parser preserves separate transcript and protein annotations.
- Use dbSNP SNP details for rs1801133 and compare its study frequency annotations with the rows produced by our annotation script.
- Use dbSNP SNP details to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from dbSNP SNP details and tell me what changed since last week.

## How to set up dbSNP SNP details in VS Code

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

### Use Spiral's MCP server

1. **Add the hosted server**: Use Add to VS Code on the console's Agents & MCP page, or run:

```bash
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
```

2. **Sign in**: VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

### Use the Spiral skill

1. **Send VS Code 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 dbSNP SNP details**: 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": "snp-ncbi-nlm-nih-gov/variants/get",
    "input": {
      "rsid": "<rsid>"
    }
  }'
```

Then paste one of the prompts above: VS Code finds dbSNP SNP details on Spiral, shows the price and runs it.

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

## dbSNP SNP details tools and prices

- [dbSNP (NCBI) · Get](https://spiral.ai/tools/alexandria/snp-ncbi-nlm-nih-gov/variants/get) (Alexandria): $0.00873 per call.

## What can you do with dbSNP SNP details in VS Code?

Build research tables that join public rsIDs to dbSNP alleles and frequency evidence. A coding agent can add those lookups to an annotation script and check its output against NCBI records.

### Add frequency context to a research shortlist

Look up public rsIDs from a paper and add the available study or population frequencies to a comparison table.

### Screen a public SNP panel by frequency

Apply a research frequency threshold to a supplied list of rsIDs, keeping each allele tied to its reported study or population.

### Prepare a genetics teaching exercise

Use public rsIDs such as rs334 and rs4988235 to build exercises comparing alleles and their reported frequencies.

### Check a frequency annotation pipeline

Compare a pipeline's frequency output with NCBI records for a fixed set of public rsIDs, checking allele identity and study or population labels.

### Review changes between retrieved records

Refresh a public research panel periodically and report changes in its returned allele frequencies or counts.

### Prepare a manuscript frequency table

Create an allele frequency table for specified rsIDs, separating results by study or population so readers can compare the evidence.

### Investigate sequence consequences

Inspect an rsID's genomic, transcript, and protein placements alongside available ClinVar assertions and publication references.

## Overview

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

## dbSNP SNP details in other agents

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

## More VS Code guides

- [UniProt protein search](https://spiral.ai/integrations/vscode/uniprot-protein-search)
- [dbSNP population allele frequencies](https://spiral.ai/integrations/vscode/dbsnp-population-allele-frequencies)
- [UniProt protein details](https://spiral.ai/integrations/vscode/uniprot-protein-details)
- [gnomAD allele frequencies](https://spiral.ai/integrations/vscode/gnomad-allele-frequencies)
- [UniProt protein ID mapping](https://spiral.ai/integrations/vscode/uniprot-protein-id-mapping)
- [gnomAD gene constraint](https://spiral.ai/integrations/vscode/gnomad-gene-constraint)

## Questions about dbSNP SNP details in VS Code

**Can VS Code use dbSNP SNP details?**

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run dbSNP SNP details like any built-in tool.

**How much does dbSNP SNP details cost in VS Code?**

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

**Do I need an Alexandria account to use dbSNP SNP details in VS Code?**

No. Spiral runs dbSNP SNP details on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up dbSNP SNP details in VS Code?**

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

**Does VS Code wait while dbSNP SNP details runs?**

dbSNP SNP details runs in the background. VS Code starts the run, checks on it and gives you the json when it's ready.

**Does dbSNP cover species other than humans?**

The current dbSNP resource covers human genetic changes, including single nucleotide changes, microsatellites, and small insertions and deletions. Its scope extends beyond single nucleotide SNPs.

**How many populations does ALFA cover?**

ALFA assigns sample ancestries to 12 population categories, including European, Hispanic, African, and Asian categories. These are study ancestry categories rather than country-by-country coverage.

**How often does dbSNP publish updated records?**

NCBI describes new and updated RefSNP records as becoming public with dbSNP builds about once per quarter. That is a publication cadence, not a promise that each rsID changes every quarter.

**Does ALFA include every submitted genetic site?**

ALFA excludes sites and subjects with call rates below 95%. Its frequency data therefore reflects quality-filtered input rather than every submitted observation.

**Can I retrieve an individual's genotype from ALFA?**

ALFA provides pooled population frequency data. Individual-level genotypes and associated data require authorized access through dbGaP.

