[Integrations](https://spiral.ai/integrations) › [VS Code](https://spiral.ai/integrations/vscode) › [RCSB PDB structure details](https://spiral.ai/integrations/vscode/rcsb-pdb-structure-details)

# How to Use RCSB PDB structure details in VS Code

Returns a PDB record with chains, ligands, available UniProt mappings, citation information, and coordinate download links. Use it to inspect a known structure or check a search result before choosing it for analysis.

|  |  |
| --- | --- |
| Model | RCSB PDB structure 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 RCSB PDB structure details in VS Code

- Use RCSB PDB structure details for https://www.rcsb.org/structure/4HHB. Create a Markdown reference in this project with its chains, ligands, experimental method, and citation.
- Use RCSB PDB structure details for https://www.rcsb.org/structure/1IEP. Add its available UniProt mappings and coordinate download links to the project's structure manifest.
- Use RCSB PDB structure details for https://www.rcsb.org/structure/6VSB. Populate our research page with its structure description, experimental method, chains, and available citation.
- Use RCSB PDB structure details to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from RCSB PDB structure details and tell me what changed since last week.

## How to set up RCSB PDB structure 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 RCSB PDB structure 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": "rcsb-org/structures/structure",
    "input": {
      "url": "<url>"
    }
  }'
```

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

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

## RCSB PDB structure details tools and prices

- [RCSB Protein Data Bank · Structure](https://spiral.ai/tools/alexandria/rcsb-org/structures/structure) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| url |  | — | Structure page URL, e.g. https://www.rcsb.org/structure/4HHB. Give this or `pdb_id`. |

## What can you do with RCSB PDB structure details in VS Code?

Build a structure reference table for a research project from PDB identifiers, experimental methods, ligands, and citations. A coding agent can turn retrieved records into project documentation or a collection of coordinate download links.

### Select structures for a target review

Find entries for human EGFR, then inspect their experimental methods, ligands, and citations to choose structures for a research discussion.

### Build a ligand-bound structure collection

Find entries containing ATP, then read their records to organize the collection by protein, organism, and experimental method.

### Prepare a weekly structural biology digest

Find newly released Cas9 entries and inspect their records to produce a digest with PDB identifiers, structure descriptions, and available citations.

### Compare experimental approaches

Find ribosome structures determined by different methods, then compare their composition and experimental metadata in a reading table.

### Prepare molecular visualization examples

Find hemoglobin structures, inspect their chains and ligands, and collect coordinate download links for a classroom visualization exercise.

### Connect structures to the literature

Search for structures of citrate synthase, then collect each selected entry's available primary citation to build a structural biology reading list.

## Overview

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

## RCSB PDB structure details in other agents

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

## More VS Code guides

- [RCSB PDB ligand details](https://spiral.ai/integrations/vscode/rcsb-pdb-ligand-details)
- [RCSB PDB structure search](https://spiral.ai/integrations/vscode/rcsb-pdb-structure-search)
- [PubMed related articles](https://spiral.ai/integrations/vscode/pubmed-related-articles)
- [Reactome pathway details](https://spiral.ai/integrations/vscode/reactome-pathway-details)
- [PubMed article details](https://spiral.ai/integrations/vscode/pubmed-article-details)
- [Reactome pathway enrichment](https://spiral.ai/integrations/vscode/reactome-pathway-enrichment)

## Questions about RCSB PDB structure details in VS Code

**Can VS Code use RCSB PDB structure details?**

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

**How much does RCSB PDB structure 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 RCSB PDB structure details in VS Code?**

No. Spiral runs RCSB PDB structure 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 RCSB PDB structure details in VS Code?**

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

**Does VS Code wait while RCSB PDB structure details runs?**

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

**How often does the PDB archive change?**

New and modified entries are released weekly, with the Wednesday archive update scheduled by 00:00 UTC.

**Does a PDB structure cover the entire protein?**

A structure can cover only a folded domain or another partial sequence. PDB structures can also contain engineered mutations or sequence artifacts introduced for the experiment.

**Are coordinates available for every atom?**

Most PDB entries omit coordinates for some atoms. A deposited structure therefore does not guarantee a complete atomic model of the identified molecule.

**Does the coordinate file show the biological assembly?**

For crystal structures, the primary coordinate file typically contains one asymmetric unit. That unit may differ from the biologically relevant assembly, so check which representation you need.

**Can I retrieve coordinates before a structure is released?**

Unreleased coordinate sets are distributed only to the entry's authors. Selected metadata may become public before release when the author gives permission.

