ui_show_protein_structure shows a protein from its amino-acid sequence.
It returns a PNG preview and, in clients that support MCP Apps, an interactive Mol* viewer.
Changing the view inside the viewer doesn’t call the server again.
View a protein structure
How a view is built
1
Look up the sequence
The server looks up the exact sequence in the ESM Atlas and uses the stored structure if there is one.
2
Predict a structure on a miss
If the ESM Atlas has no stored structure and the sequence is 700 residues or fewer, it predicts one for this request.
A longer sequence without a stored structure returns
sequence_too_long_to_fold.3
Render and deliver
The server renders a PNG preview and sends the exact PDB file, with per-residue confidence, to the viewer.
Inputs
The sequence follows the same rules as the ESM Atlas tools.
view_options
Display settings change only what you see. They never change the PDB file.hotspot-facing turns the highlighted residues toward you, opposite shows the other side, and side looks from 90 degrees.
hotspot-facing needs at least one highlight or a camera.
Each entry in highlights names a residue by its number in the structure:
This example colors GB1 by confidence and turns Trp43 toward you:
camera object sets an exact Mol* camera pose in angstroms.
It needs position, target, and up (each three numbers), radius, and radius_max.
projection defaults to orthographic, fov to about 0.785 radians, and viewport to 1024 by 768 pixels.
The result includes the camera used for the preview, so you can pass it back to reproduce a view.
When you set camera, it replaces the orientation preset.
What the tool returns
Every successful result contains:- A text block with a JSON summary of the view.
- A PNG preview, when rendering succeeds.
- The same summary as structured content.
- The PDB file and per-residue annotations, delivered to the viewer app in the result metadata rather than in the text your assistant reads.
A missing preview doesn’t fail the call.
The viewer still receives the structure, but your assistant has no image to look at, so it shouldn’t make visual claims about the structure.
The viewer app
The interactive viewer is an MCP App resource that the tool links to in its metadata.
The app loads no external resources, and it asks the host only for clipboard access.
What your client shows
- Clients that support MCP Apps render the interactive Mol* viewer inline. ChatGPT shows it in developer mode.
- Other clients show the text result, and the PNG preview if they display images.
- Switch Style between cartoon and surface, and Color between chain and confidence.
- Choose a View: overview, selected patch, opposite, or side.
- Show or hide chains.
- Click residues to highlight them, up to 32, and clear them again.
- Read the sequence, which the viewer shows alongside the 3D model.
Export
- Download PDB saves the complete original file. The viewer checks its size and SHA-256 before it displays or exports it.
- The image download saves a PNG of the current view, keeping its aspect ratio, at up to 1,600 pixels per side and about one megapixel in total.
- Both need a client that supports file downloads. Elsewhere, Download PDB is disabled, no image download is offered, and the viewer notes that the client doesn’t support file downloads.
- Every PDB file, stored or predicted, is released under the CC BY 4.0 license, as noted in its header.
Limits
Errors
See Troubleshooting for what to do about each one.