A Claude Code plugin for creating Nanome molecular visualization workspaces. Load structures from RCSB PDB, AlphaFold, PubChem, ChEMBL, SWISS-MODEL, and COD, organize them into scenes with custom visualizations, and get a shareable workspace URL.
nanome:nanome-auth-- Opens your browser to create an API key at mara.nanome.ai/settings and saves it automatically. No manual config needed.nanome:nanome-workspace-- High-level workspace builder. Describe what you want to visualize and it resolves structures, builds a scene with sensible defaults, and delivers a shareable workspace URL. Creates one focused scene by default; ask for multiple if needed.
claude --plugin-dir /path/to/nanome-pluginUse /reload-plugins inside a session to pick up changes without restarting.
- Python 3 and curl (for API calls and config management)
- A Nanome account (free to create)
Just ask Claude to create a workspace:
Create a Nanome workspace with PDB 1IEP
If you're not authenticated, the plugin will automatically open your browser and walk you through login. After that, the workspace is built and you get a URL like:
https://mara.nanome.ai/workspaces/abc123-...
The plugin handles auth automatically. When no valid API key is found, the nanome-auth skill:
- Opens your browser to
mara.nanome.ai/settings - You log in, go to the System tab, and click Create under API Keys
- The key is auto-copied to your clipboard
- Paste it back in Claude -- it's saved to
~/.nanome/config.json
API keys are long-lived, so you rarely need to re-authenticate. To set up auth manually or re-authenticate, tell Claude:
set up nanome auth
If you prefer to set up auth manually, create ~/.nanome/config.json:
{
"api_base": "https://workspaces.nanome.ai",
"token": "your-api-key-here"
}Environment variables NANOME_API_BASE and NANOME_TOKEN override the config file.
nanome-plugin/
.claude-plugin/
plugin.json # Plugin manifest
skills/
nanome-auth/
SKILL.md # Authentication skill
nanome-workspace/
SKILL.md # Workspace creation skill
README.md
| Database | Identifier | Example |
|---|---|---|
| RCSB PDB | 4-char PDB code | 1HVR, 6LU7, 5CEO |
| AlphaFold | UniProt accession | P00533, Q9Y6K9 |
| PubChem | CID number | 2244 (aspirin) |
| ChEMBL | ChEMBL ID | CHEMBL25 |
| SWISS-MODEL | UniProt accession | P00533 |
The workspace skill supports these visualization types:
- Ribbon/Cartoon -- secondary structure visualization
- Ball-and-stick -- atomic detail with bonds
- Molecular surface -- solvent-accessible surface with adjustable opacity
- Wire -- minimal bond representation
- Van der Waals -- space-filling spheres
- Residue labels -- text annotations
- Interactions -- hydrogen bonds, hydrophobic contacts, salt bridges, pi-stacking, and more
Coloring options include element type, chain, B-factor, secondary structure, residue type, and custom uniform colors.
MIT