[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [RCSB PDB ligand details](https://spiral.ai/integrations/claude-code/rcsb-pdb-ligand-details)

# How to Use RCSB PDB ligand details in Claude Code

Fetch a chemical component's identity, formula, molecular weight, chemical descriptors, and available database references from RCSB PDB. Use it to decode a ligand code or prepare compound metadata before investigating structures that contain it.

|  |  |
| --- | --- |
| Model | RCSB PDB ligand 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 ligand details in Claude Code

- Use RCSB PDB ligand details for STI and compare its returned name, synonyms, and formula with the STI row in our compound table. Propose corrections for any mismatch.
- Use RCSB PDB ligand details for HEM and ATP, then add their returned formulas and molecular weights to the project's ligand reference table.
- Use RCSB PDB ligand details for CFF and build a JSON fixture from its returned name, formula, molecular weight, and available chemical descriptors.
- Use RCSB PDB ligand details for STI and add its available external database references to our compound detail view, preserving the source labels.
- Use RCSB PDB ligand details for ATP and compare every returned SMILES description with the ATP descriptors in our dataset. Report the differences before editing anything.

## How to set up RCSB PDB ligand details in Claude Code

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

### Use Spiral's MCP server

1. **Add the hosted server**: This adds Spiral to the current project. Add `--scope user` to use it in every project.

```bash
claude mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `claude`, type `/mcp`, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

### Use the Spiral skill

1. **Send Claude 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 ligand 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/ligands/ligand",
    "input": {
      "url": "<url>"
    }
  }'
```

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

Setup guide in the docs: https://spiral.ai/docs/quickstarts/claude-code

## RCSB PDB ligand details tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| url |  | — | Ligand page URL, e.g. https://www.rcsb.org/ligand/STI. Give this or `comp_id`. |
| comp_id |  | — | Chemical Component Dictionary id, 1 to 5 letters or digits (`STI`, `HEM`, `ATP`). Give this or `url`. Pattern: ^[A-Za-z0-9]{1,5}$. |

## What can you do with RCSB PDB ligand details in Claude Code?

Build a checked compound reference table from the ligand codes in your project. A coding agent can compare RCSB names, formulas, and descriptors with existing records and prepare a reviewable correction.

### Decode ligand codes in a structure report

Turn codes such as STI, HEM, and ATP into a readable glossary with chemical names, synonyms, and formulas.

### Prepare a compound comparison table

Collect names, formulas, and molecular weights for a specified list of PDB ligand codes before reviewing their chemistry.

### Connect compound records across databases

Extract available external references from RCSB ligand records to support matching against resources such as PubChem and DrugBank.

### Prepare chemical descriptors for analysis

Retrieve available SMILES and InChI descriptions for known ligand codes as inputs to a separate chemistry analysis workflow.

### Review changes to a ligand reference table

Recheck selected ligand records weekly and flag changes in names, formulas, descriptors, or external references for a curator.

### Build a structural biology lesson

Create comparison notes for ATP, HEM, and CFF using their returned names, formulas, molecular weights, and chemical descriptors.

### Check compound labels in research files

Compare ligand codes and compound names in a project table against RCSB chemical component records, then report mismatches for review.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Claude Code guides](https://spiral.ai/integrations/claude-code)

## RCSB PDB ligand details in other agents

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

## More Claude Code guides

- [PubMed related articles](https://spiral.ai/integrations/claude-code/pubmed-related-articles)
- [RCSB PDB structure details](https://spiral.ai/integrations/claude-code/rcsb-pdb-structure-details)
- [PubMed article details](https://spiral.ai/integrations/claude-code/pubmed-article-details)
- [RCSB PDB structure search](https://spiral.ai/integrations/claude-code/rcsb-pdb-structure-search)
- [PubMed and PMC literature search](https://spiral.ai/integrations/claude-code/pubmed-and-pmc-literature-search)
- [Reactome pathway details](https://spiral.ai/integrations/claude-code/reactome-pathway-details)

## Questions about RCSB PDB ligand details in Claude Code

**Can Claude Code use RCSB PDB ligand details?**

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

**How much does RCSB PDB ligand details cost in Claude 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 Claude Code plan is separate.

**Do I need an Alexandria account to use RCSB PDB ligand details in Claude Code?**

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

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

**Does Claude Code wait while RCSB PDB ligand details runs?**

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

**Which compounds do RCSB ligand pages cover?**

They cover entries in the wwPDB Chemical Component Dictionary. This is a dictionary of PDB chemical components, so its coverage should not be treated as a catalog of every known compound.

**How often does the underlying dictionary change?**

The Chemical Component Dictionary is updated with each weekly PDB release. A weekly check is useful for maintaining a local collection of ligand metadata.

**Are obsolete ligand records removed?**

Obsoleted components remain in the dictionary and are marked OBS. Finding an existing record therefore does not establish that its definition is current.

**What chemical identifiers and descriptors are available?**

RCSB summaries include names, identifiers, synonyms, SMILES, and InChI information. These help reconcile a short PDB ligand code with a compound name or chemical representation.

**Does a ligand summary provide a complete search of structures containing it?**

RCSB provides a separate search for all PDB entries containing a ligand. Use the chemical component summary to establish identity, then search the structure archive for occurrences.

