1. Conduid
  2. Healthcare
  3. MCPymol
MCP server · Healthcare

MCPymol

mcp server for pymol for conversational protein display

Unclaimed healthcare
49Fair

Scored 21 hours ago · breakdown

About MCPymol

MCPymol is an MCP server published by chemrich in the Healthcare category: mcp server for pymol for conversational protein display. Conduid read 135 tools from its source: align, alter, alter_state, altloc_view, angle, as and 129 more. No package is published for it, so it installs from a source checkout.

The repository has 17 stars and 1 forks, and its last commit was on 29 Nov 2026. Conduid has no tagged release on record for it. Its topics include healthcare.

Install

From source
git clone https://github.com/chemrich/MCPymol

Tools (135)

alignAligns one selection to another
ParameterTypeDescription
mobile *stringSelection to move.
optionsstringExtra arguments, e.g. ``cycles=0`` to disable outlier rejection.
targetstringSelection to align onto; this one stays put.
alterAlters atomic properties in a selection
ParameterTypeDescription
expression *stringAssignment over atom properties, e.g. ``b=0``, ``chain='B'``, ``resi=str(int(resi)+100)``.
selection *stringAtoms to modify.
alter_stateAlters atomic coordinates in a state
ParameterTypeDescription
expression *stringAssignment over coordinates, e.g. ``x=x+10``.
selection *stringAtoms to modify.
state *stringState to modify.
altloc_viewShow every altloc group at once, one colour per group, occupancies labelled.
ParameterTypeDescription
labelbooleanLabel each alternate location with its occupancy value (default True)
obj_name *stringPyMOL object name (e.g. "1ejg")
angleMeasures the angle between three selections and returns it in degrees.
ParameterTypeDescription
namestringName for the angle object.
selection1stringFirst selection (one arm).
selection2stringSecond selection (the vertex).
selection3stringThird selection (the other arm).
asShows one representation while hiding all others for the specified selection
ParameterTypeDescription
representation *stringThe one representation to leave visible: ``cartoon``, ``sticks``, ``spheres``, ``surface``, ``lines``, ``ribbon``, ``dots``, ``mesh``.
selectionstringPyMOL selection string, e.g. "1abc and chain A". See the module note for syntax.
atom_propertiesReads per-atom properties, which nothing else in the tool set can reach.
ParameterTypeDescription
max_atomsintegerHow many atoms to list. Any omitted are counted.
propertiesstringComma-separated PyMOL atom properties. Common ones: chain, resi, resn, name, elem, b (B-factor or pLDDT), q (occupancy), alt (altloc), formal_charge, partial_charge, ss, segi, index. Each one is evaluated as a Python expression per atom inside PyMOL, so pass property names, not text from an untrusted source.
selection *stringAtoms to read, e.g. "1hsg and chain A and resi 25". Narrow this: a whole protein is thousands of atoms.
backwardGoes back one frame
bfactor_viewColors the structure by crystallographic B-factor (temperature factor).
ParameterTypeDescription
obj_name *stringPyMOL object name (e.g. "1abc")
bondCreates a bond between two atoms
ParameterTypeDescription
atom1 *stringFirst atom, as a selection matching exactly one atom.
atom2 *stringSecond atom, as a selection matching exactly one atom.
orderstringBond order: ``1`` single, ``2`` double, ``3`` triple, ``4`` aromatic.
cartoonSets the cartoon type for the specified selection
ParameterTypeDescription
item_type *stringCartoon style: ``automatic``, ``tube``, ``loop``, ``rectangle``, ``oval``, ``arrow``, ``dumbbell``, ``putty``, ``skip``. ``tube`` ignores secondary structure and runs unbroken through the backbone.
selectionstringPyMOL selection string, e.g. "1abc and chain A". See the module note for syntax.
cdChanges the current directory
ParameterTypeDescription
path *stringDirectory to change into. PyMOL resolves relative paths from here.
centerCenters the view on a selection
ParameterTypeDescription
selectionstringWhat to centre the camera on.
cinematic_viewConfigures PyMOL for a depth-cued, cinematic look with dramatic lighting.
ParameterTypeDescription
obj_name *stringPyMOL object name (e.g. "1abc")
clipAdjusts the clipping planes
ParameterTypeDescription
distancestringHow far to move the plane, in Angstrom. Negative moves the other way.
mode *stringWhich plane to move: ``near``, ``far``, ``move`` (both), ``slab``, ``atoms``.
colorSets the color for a selection.
ParameterTypeDescription
color_name *stringA PyMOL color. Common names: ``red``, ``blue``, ``green``, ``yellow``, ``magenta``, ``cyan``, ``orange``, ``salmon``, ``marine``, ``forest``, ``palegreen``, ``skyblue``, ``violet``, ``grey50``, ``white``, ``black``. Use ``atomic`` to color non-carbon atoms by element while leaving carbons untouched.
selectionstringPyMOL selection string.
composition_viewColour parts of a structure by the fraction of particles containing them.
ParameterTypeDescription
labelbooleanWrite each part's presence fraction next to it
obj_name *stringThe object the table's selections apply to
table *stringPresence fractions, inline as "chain A=0.4, chain B=1.0" or a path to a file of selection<TAB>fraction lines
transparencybooleanAlso make rarely-present parts transparent in proportion, so half-present reads as half there
conservation_viewColors the structure by evolutionary conservation using Shannon entropy.
ParameterTypeDescription
chainstringSpecific chain ID to analyze. If None, uses the first protein chain found.
force_refreshbooleanIf True, bypass the cache and re-fetch the MSA from the MMseqs2 server even if scores are cached.
obj_name *stringPyMOL object name (e.g. "1ubq")
scalestringColor scaling mode. "relative" (default) maps the color gradient to the actual min/max entropy range of this protein, maximizing visual contrast. "absolute" uses the full theoretical entropy range (0 to log2(20)), useful when comparing conservation across different proteins.
selectionstringPyMOL selection to analyze (default "all")
server_urlstringOverride the MMseqs2 server URL (defaults to ColabFold public API, or MCPYMOL_MMSEQS_URL env var)
use_envbooleanSearch environmental databases in addition to UniRef (default True, gives deeper MSAs)
contact_reportLists the residues in contact across two selections, with distances and types.
ParameterTypeDescription
cutoffnumberMaximum heavy-atom separation to count as a contact, in Angstrom. 4.0 captures the interactions above; raise toward 5.0 for a looser survey.
include_waterbooleanInclude waters, for water-mediated contacts. Off by default, as ordered waters otherwise dominate the list.
max_pairsintegerHow many residue pairs to list, closest first. The count of any omitted pairs is always reported.
selection1 *stringOne side, e.g. "1hsg and resn MK1" (a ligand).
selection2 *stringThe other side, e.g. "1hsg and polymer".
count_atomsCounts the atoms matching a selection.
ParameterTypeDescription
selectionstringPyMOL selection string to count.
createCreates a new object from a selection
ParameterTypeDescription
name *stringName for the new object.
selectionstringAtoms to copy into it. The original is left in place.
source_statestringState to copy from.
crosslink_viewHighlights structural cross-links: disulfide bonds, metals, and their coordination.
ParameterTypeDescription
obj_name *stringPyMOL object name (e.g. "1abc")
deformation_viewColour and arrow a model by how far each residue moved between two states.
ParameterTypeDescription
arrow_scalenumberMultiply arrow length; above 1.0 this is an exaggeration and is labelled as one
arrowsbooleanDraw CGO arrows from each residue's start to its end position
as_puttybooleanAlso scale cartoon tube width by displacement
end_stateintegerThe state to measure displacement to (defaults to the last)
max_arrowsintegerCeiling on arrows drawn; anything dropped is reported
obj_name *stringA multi-state object whose states are conformations
preserve_bfactorsbooleanStash the original B-factors before overwriting them (default True)
start_stateintegerThe state to measure displacement from
uncertainty_pathstringPath to a 'chain resi value' table of half-set uncertainty; colours the arrows when supplied
deleteDeletes objects or selections
ParameterTypeDescription
name *stringObject or named selection to delete. Accepts wildcards, e.g. ``tmp*``; ``all`` clears everything.
density_viewDraw an isomesh around a selection, stating the contour level in both units.
ParameterTypeDescription
carvenumberCarve radius in Ångström around the selection (default 2.0)
levelnumberContour level. If omitted, 1.5 sigma is used and labelled as generic.
map_obj *stringA volume already loaded through the load_map tool
namestringMesh object name (defaults to "<map_obj>_mesh")
selection *stringPyMOL selection to carve the mesh around (e.g. "chain A")
unitsstringUnits of `level`: "sigma" (what PyMOL contours in) or "absolute" (what EMDB publishes). An absolute level is converted.
deselectClears the current selection
dihedralMeasures the dihedral (torsion) angle between four selections, in degrees.
ParameterTypeDescription
namestringName for the dihedral object.
selection1stringFirst atom of the torsion. For a backbone phi angle this is the preceding C.
selection2stringSecond atom; the first of the two forming the rotatable bond.
selection3stringThird atom; the second of the two forming the rotatable bond.
selection4stringFourth atom, at the far end of the torsion.
distanceMeasures the distance between two selections and returns it in Angstrom.
ParameterTypeDescription
name *stringName for the distance object (used to delete/recolor later).
selection1 *stringFirst selection.
selection2 *stringSecond selection.
drawUses OpenGL renderer (faster but lower quality)
ParameterTypeDescription
heightstringImage height in pixels.
widthstringImage width in pixels.
electrostatic_viewColors the molecular surface by approximate residue-based electrostatics.
ParameterTypeDescription
modestringCharge assignment strategy. "atomic" (default) — charges assigned only to terminal charged atoms (e.g. ARG NH1/NH2/NE, LYS NZ, ASP OD1/OD2, GLU OE1/OE2, HIS ND1/NE2). Produces localized color at charge centers with natural falloff to white. "residue" — charges assigned uniformly to all atoms in each charged residue. Produces saturated patches; useful for quickly locating charged regions.
obj_name *stringPyMOL object name (e.g. "1abc")
ensemble_spread_viewColour and thicken a multi-state object by how much its states disagree.
ParameterTypeDescription
as_puttybooleanRender as a putty cartoon so spread reads as tube width as well as colour (default True)
obj_name *stringMulti-state PyMOL object name (e.g. an NMR or EM ensemble)
execute_pymol_commandExecutes a raw PyMOL command string (PyMOL CLI syntax). PREFER the dedicated tools when one
ParameterTypeDescription
command *stringA PyMOL command line, e.g. `set ray_shadow, 0`. Lines starting with `/` and `python ... python end` blocks run as Python inside PyMOL.
extractExtracts a selection to a new object
ParameterTypeDescription
name *stringName for the new object.
selectionstringAtoms to move into it. Unlike create, these are *removed* from the original object.
fabCreates a peptide chain from a sequence
ParameterTypeDescription
optionsstringExtra arguments, e.g. ``ss=1`` to build it as a helix.
sequence *stringOne-letter amino acid sequence, e.g. "ACDEFGH".
fetch_alphafoldFetches a predicted structure from AlphaFold DB by UniProt accession.
ParameterTypeDescription
fragmentintegerFragment number for long proteins split across models (F1, F2, …). Most entries only have F1.
model_versionintegerPin a specific AlphaFold model version. Leave unset (the default) to use whichever version the database currently serves — old versions are retired and stop resolving.
obj_namestringOptional custom name for the object in PyMOL.
replacebooleanClear the session first, so this is the only structure loaded. Pass False to add to what is already loaded — which is how you get two structures into one session for superposition_view.
uniprot_id *stringUniProt accession (e.g. "P69905" for human haemoglobin alpha). An "AF-" prefix is accepted and stripped.
fetch_structureFetches a protein structure from the PDB, or a predicted model from AlphaFold DB.
ParameterTypeDescription
multimer_cutoffnumberDistance (A) between chains to keep them in the same multimer. Default 8.0A is suitable for most functional assemblies.
obj_namestringOptional custom name for the object in PyMOL
pdb_code *string4-letter PDB code (e.g. "1abc"), or an AlphaFold identifier (e.g. "P69905", "af-P69905").
replacebooleanClear the session first, so this is the only structure loaded. Pass False to add to what is already loaded — which is how you get two structures into one session for superposition_view.
forwardAdvances one frame
fragmentLoads a molecular fragment
ParameterTypeDescription
name *stringBuilt-in fragment name, e.g. "benzene", "ala", "formamide".
frameSets or queries the current frame
ParameterTypeDescription
frame_numberstringFrame to jump to. Omit to query the current frame.
full_screenToggles fullscreen mode
get_sequenceReturns the amino-acid sequence of a loaded structure, in FASTA.
ParameterTypeDescription
chainstringChain to extract. Omit for every chain in the object.
obj_name *stringPyMOL object (e.g. "1hsg").
h_addAdds hydrogens to a selection
ParameterTypeDescription
selectionstringWhere to add hydrogens.
h_fillFills open valences on the currently picked atom with hydrogens.
helpShows help for a command
ParameterTypeDescription
commandstringPyMOL command to describe. Omit for general help.
hideHides a graphical representation for a given selection.
ParameterTypeDescription
representation *stringSame vocabulary as :func:`show`, plus ``everything`` to hide all reps for the selection.
selectionstringPyMOL selection string.
hydrophobic_surface_viewColors the molecular surface by amino acid hydrophobicity.
ParameterTypeDescription
obj_name *stringPyMOL object name (e.g. "1abc")
interface_reportMeasures how large a protein-protein interface is, and which residues form it.
ParameterTypeDescription
chain_a *stringFirst chain ID (e.g. "A").
chain_b *stringSecond chain ID (e.g. "D").
max_residuesintegerHow many of the most-buried residues to list per chain.
obj_name *stringPyMOL object holding the complex (e.g. "1brs").
interface_viewHighlights the protein-protein binding interface between two chains.
ParameterTypeDescription
chain_a *stringFirst chain ID (e.g. "A")
chain_b *stringSecond chain ID (e.g. "B")
obj_name *stringPyMOL object name (e.g. "1abc")
intra_fitFits all states within an object
ParameterTypeDescription
selection *stringObject whose states to fit onto its first state.
intra_rmsCalculates RMSD between states within an object
ParameterTypeDescription
selection *stringObject whose states to compare.
isomeshCreates a mesh isosurface
ParameterTypeDescription
level *stringContour level in sigma, e.g. ``1.0`` for 2Fo-Fc density.
map_object *stringName of a loaded map (e.g. a CCP4 or DX density map).
name *stringName for the mesh object.
selectionstringRestrict the mesh to the region around this selection.
isosurfaceCreates a solid isosurface
ParameterTypeDescription
level *stringContour level in sigma.
map_object *stringName of a loaded map.
name *stringName for the surface object.
selectionstringRestrict the surface to the region around this selection.
labelAdds labels to atoms in the selection
ParameterTypeDescription
expressionstringPython expression over atom properties, e.g. ``"%s%s" % (resn, resi)`` or ``resi``.
selection *stringAtoms to label. Use ``name CA`` to get one label per residue rather than one per atom.
latent_traverse_viewStep through an ensemble's conformations as a contoured trajectory.
ParameterTypeDescription
build_moviebooleanWire the frames to PyMOL's movie timeline so they can be stepped and played
colorstringOne colour for every frame; a per-frame spectrum would encode frame index as if measured
ensemble_name *stringAn ensemble previously loaded through the load_ensemble tool
levelnumberContour level. If omitted, 1.5 sigma against the first frame is used.
namestringPrefix for the isosurfaces (defaults to "<ensemble>_surf")
unitsstringUnits of `level`: "sigma" (read against frame 1) or "absolute"
ligand_viewShows a binding-site view focused on a ligand.
ParameterTypeDescription
ligand_resn *string3-letter residue name of the ligand (e.g. "ATP", "HEM", "LIG")
obj_name *stringPyMOL object name (e.g. "1abc")
list_chainsLists the chain IDs present in an object (or in all objects).
ParameterTypeDescription
obj_namestringObject to inspect. Defaults to every loaded object.
list_ligandsLists the small-molecule (organic) ligand residue names in an object.
ParameterTypeDescription
obj_name *stringObject to inspect for organic ligands.
list_objectsLists all loaded PyMOL objects.
load_ensembleLoad a cryo-EM heterogeneity job's volumes in trajectory order.
ParameterTypeDescription
directory *stringPath to a heterogeneity job directory (cryoDRGN, 3DVA, RECOVAR, 3DFlex, DynaMight)
max_volumesintegerCeiling on frames loaded; any excess is reported, not hidden
methodstringDeclare the generating method instead of detecting it: "cryodrgn", "3dva", "recovar", "3dflex", "dynamight", "cryospire"
namestringPrefix for the loaded frame objects (defaults to the directory name)
provenancestringHow the volumes came to exist. Defaults to "generated" because heterogeneity output is decoder output or subspace interpolation.
trust_picklebooleanPermit reading a .pkl latent table. Off by default because unpickling runs arbitrary code from the file.
load_mapLoad a volume into PyMOL, recording where it came from and reporting its geometry.
ParameterTypeDescription
namestringPyMOL object name (defaults to a sanitised filename stem)
path *stringPath to an MRC/CCP4 volume (.mrc/.map/.ccp4, optionally gzipped)
provenancestringHow this volume came to exist: "measured", "sharpened", "nn_enhanced", "generated", or "unknown". Defaults to "unknown" and is NEVER inferred.
load_sessionRestores a PyMOL session from a .pse file.
ParameterTypeDescription
filename *stringPath to the .pse file to open.
mergebooleanAdd to the current session rather than replacing it.
load_structureLoads a structure from a local file path and applies the BFS multimer heuristic.
ParameterTypeDescription
file_path *stringPath to the structure file (PDB, MMCIF, etc.)
multimer_cutoffnumberDistance (A) between chains to keep them in the same multimer. Default 8.0A is suitable for most functional assemblies.
obj_name *stringName for the object in PyMOL
replacebooleanClear the session first, so this is the only structure loaded. Pass False to add to what is already loaded — which is how you get two structures into one session for superposition_view.
local_resolution_view
ParameterTypeDescription
breaksarrayAscending resolution breakpoints in Ångström. Defaults to the resolution map's own observed range.
carvenumberCarve radius in Ångström; ignored without a selection
levelnumberContour level for the isosurface. If omitted, 1.5 sigma is used.
map_obj *stringThe density volume to draw, loaded through the load_map tool
namestringSurface object name (defaults to "<map_obj>_localres")
palettearrayOne PyMOL colour per breakpoint. Defaults to blue (best) through red (worst).
ramp_namestringRamp object name (defaults to "<res_obj>_ramp")
res_obj *stringA local-resolution volume (values in Ångström), loaded through the load_map tool
selectionstringRestrict the surface to a carve around this PyMOL selection
unitsstringUnits of `level` only: "sigma" or "absolute". Ramp breakpoints are always in Ångström.
validate_onlybooleanRun the grid check and report, creating nothing
lsLists files in the current directory
ParameterTypeDescription
pathstringDirectory or glob to list. Omit for the current directory.
map_infoReport an MRC/CCP4 map's geometry, above all its voxel size.
ParameterTypeDescription
path *stringPath to an MRC/CCP4 map file (.mrc/.map/.ccp4, optionally gzipped)
morph_statesInterpolate between states, refusing when interpolation is ill-posed.
ParameterTypeDescription
namestringName for the morph object (defaults to "<obj_name>_morph")
obj_name *stringMulti-state PyMOL object name to interpolate
stepsintegerNumber of interpolated frames to generate (default 30)
validate_onlybooleanRun the topology check and report, without creating a morph
moveMoves the camera along an axis
ParameterTypeDescription
axis *stringCamera axis to translate along: ``x``, ``y`` or ``z``.
distancestringDistance in Angstrom.
mplayStarts playing the movie
mpngSaves a series of PNG images for movie frames
ParameterTypeDescription
prefix *stringFilename prefix; PyMOL appends a zero-padded frame number.
msetDefines a sequence of states for movie playback
ParameterTypeDescription
specification *stringFrame-to-state mapping, e.g. "1 x30" to hold state 1 for 30 frames, or "1 -30" to sweep states 1 through 30.
mstopStops the movie
mutation_viewHighlights mutated residues on the protein structure.
ParameterTypeDescription
mutations *stringComma-separated mutation list (e.g. "A123G,V45L,T200S")
obj_name *stringPyMOL object name (e.g. "1abc")
occupancy_viewColour and scale a structure by per-atom crystallographic occupancy (q).
ParameterTypeDescription
obj_name *stringPyMOL object name (e.g. "1ejg")
preserve_bfactorsbooleanStash the original B-factors before overwriting them so restore_bfactors can put them back (default True)
orientOrients the view to align with principal axes of the selection
ParameterTypeDescription
selectionstringWhat to orient on. PyMOL aligns the longest axis of this selection with the screen's x-axis.
pharmacophore_viewColors a ligand by pharmacophore feature type.
ParameterTypeDescription
obj_name *stringPyMOL object name (e.g. "1abc")
resn *stringLigand residue name (e.g. "ATP", "LIG", "ANP")
plddt_viewColors an AlphaFold model by pLDDT confidence, using the official palette.
ParameterTypeDescription
obj_name *stringPyMOL object name (e.g. "AF_P69905")
pngSaves a PNG image
ParameterTypeDescription
filename *stringOutput path for the PNG.
optionsstringExtra arguments such as width, height, dpi, ray.
pocket_viewVisualizes the binding pocket cavity around a ligand as a colored surface.
ParameterTypeDescription
obj_name *stringPyMOL object name (e.g. "1abc")
resn *stringLigand residue name (e.g. "ATP", "LIG", "ANP")
pointillist_viewRenders the structure as an artistic, abstract pointillist/starfield cloud.
ParameterTypeDescription
obj_name *stringPyMOL object name (e.g. "1abc")
poisson_boltzmann_viewColors the molecular surface by true Poisson-Boltzmann electrostatic potential.
ParameterTypeDescription
obj_name *stringPyMOL object name (e.g. "1abc")
print_export
ParameterTypeDescription
bodiesstring"all" (default) keeps every separate piece of a group, e.g. both dimers of 4hhb's ribbon or all four hemes, and the result says it prints as N pieces. "largest" keeps only the biggest piece and reports what it dropped, with a WARNING when that is over 1% of the volume. Either way enclosed cavities are filled and stray fragments under 8 faces removed.
groups *stringSemicolon-separated ``label=selection`` pairs, one per colour. Example: "protein=polymer.protein; nucleic=polymer.nucleic". In cartoon and displayed modes each group names whole objects, e.g. "barrel=(barrel or barrel_spine)".
methodstring"auto" (light cleanup if the export is already watertight apart from stray fragments, else poisson with voxel fallback), "poisson" (keeps detail, best for bulky surfaces; cannot merge sticks and spheres), or "voxel" (robust for thin cartoons, tubes and nucleic acids).
mm_per_angstromnumberPrint scale in millimetres per Ångström. 1.0 (default) prints 1 Å as 1 mm; 3.0 makes a 40 Å protein 120 mm across. Applied after repair to every group about the same origin, so the parts stay aligned; voxel_pitch stays in Å. Raise it when the result warns that a part is small enough for a slicer to mistake it for inches.
obj_name *stringPyMOL object the groups are taken from (e.g. "1abc"); the STL files are named after it.
out_dirstringDirectory for the STL files (default: current directory).
poisson_depthintegerScreened-Poisson octree depth; higher = more detail.
representationstringWhat geometry to export. "surface" (default) isolates each group as its own temporary object and exports its molecular surface. "cartoon" exports the cartoon and surface triangles the group's objects *display*, keeping per-residue rep flags and per-object cartoon type (e.g. a `cartoon tube` spine from print_ribbon_view); it leaves out sticks, spheres, lines and dashes and names what it left out. "displayed" exports everything PyMOL draws for the group's objects: those triangles plus sticks, spheres, lines, ribbon and distance dashes (as solid rods), merged exactly. In cartoon and displayed modes groups are isolated by object visibility, so each group names whole object(s), one colour per object (e.g. "1abc or 1abc_spine"); name measurement and CGO objects in the group too.
undo_voxel_growthbooleanVoxel method only: move every surface back in by 0.62 x voxel_pitch, the amount voxelising grows it (a 0.33 Å rod came out 0.38 Å at 0.1 Å pitch). Default true. Gaps narrower than about 2.5 x voxel_pitch fuse while voxelising and cannot be reopened, so where a clearance matters use voxel_pitch <= gap / 2.5.
voxel_pitchnumberVoxel size in Ångström for the voxel method; it stays in Å whatever mm_per_angstrom is. Use about one third of the thinnest feature you need to keep: 0.7 keeps a ~10 Å helix, print_ribbon_view ribbons want 0.2, thin rods 0.1. The result warns when a displayed cartoon feature is under 3 voxels across. Halving it costs about 5x the time.
print_ribbon_view
ParameterTypeDescription
bridge_modifiedbooleanCarry the spine through residues that are peptide-linked on both sides but have no CA atom, such as GFP's chromophore (CRO), which otherwise break it. Done on the spine only, with per-atom cartoon_trace_atoms and PyMOL's no_smooth flag on the Cα either side; no atom is renamed or renumbered. Default true.
obj_name *stringPyMOL object name (e.g. "1abc").
spine_in_strandsbooleanTrue (default) runs the spine through the strands as well, where it shows as bumps along thin ones. False takes it out of each strand's interior, keeping strand_overlap residues at each end so the loops still fuse to the strands.
spine_radiusnumberRadius (Å) of the continuous backbone tube. Larger values give more internal reinforcement. Default 0.9.
strand_overlapintegerWith spine_in_strands=False, the residues of spine kept at each end of a strand, where it fuses with the loop. At least 2: with 1, 10 of GFP's 22 strand ends lost their junction.
strand_thicknessnumberβ-strand thickness setting (PyMOL's cartoon_rect_width). PyMOL draws the strand √2 times this thick: the default 2.0 is about 2.8 Å, 1.0 about 1.4 Å.
strand_widthnumberβ-strand width setting (PyMOL's cartoon_rect_length). PyMOL draws the strand √2 times this wide: the default 2.8 is about 4.0 Å. 2.0 (2.8 Å) opens the gaps in a β-barrel.
putty_viewVisualizes protein flexibility using a putty (tube-width) representation.
ParameterTypeDescription
obj_name *stringPyMOL object name (e.g. "1abc")
pwdPrints the current directory
qscore_viewColour a model by per-residue Q-score parsed from its wwPDB validation report.
ParameterTypeDescription
obj_name *stringPyMOL object name (e.g. "9c0k")
preserve_bfactorsbooleanStash the original B-factors before overwriting them (default True)
validation_path *stringPath to a wwPDB validation report (mmCIF or XML, optionally gzipped) for this entry
rayPerforms ray-tracing
ParameterTypeDescription
heightstringImage height in pixels.
widthstringImage width in pixels. Omit to use the viewport size.
rebuildRegenerates all displayed geometry
ParameterTypeDescription
selectionstringWhat to regenerate. Needed after altering coordinates or B-factors for the change to show.
refreshRefreshes the display
removePermanently removes the atoms matching the selection. This deletes atoms; it does not just
ParameterTypeDescription
selection *stringAtoms to delete permanently. To hide them instead, use hide.
renderRenders the current scene and returns the image, so you can see it.
ParameterTypeDescription
filenamestringOptional path to also keep the PNG at. Without it the render goes to a temporary file that is cleaned up afterwards — except when the image is too large to inline, where the file is kept so you still have the render.
heightintegerImage height in pixels.
ray_tracebooleanKept for compatibility and ignored — every render is ray-traced, because PyMOL's unshaded OpenGL capture does not work over this bridge. Use a smaller width/height to render faster.
widthintegerImage width in pixels. Larger costs render time and context.
resetResets the view, optionally resetting an object's matrix
ParameterTypeDescription
objstringObject whose matrix to reset. Omit to reset only the camera.
restore_bfactorsRestore the B-factors a Wiggles view overwrote.
ParameterTypeDescription
obj_name *stringPyMOL object whose original B-factors should be put back
rms_curMeasures RMSD between two selections *without* moving anything.
ParameterTypeDescription
mobile *stringFirst selection.
target *stringSecond selection, same number of atoms.
rockToggles a rocking animation
sasaMeasures solvent-accessible surface area, in square Angstrom.
ParameterTypeDescription
selectionstringWhat to measure (e.g. "1brs and chain A").
statestringObject state to measure. "1" is the first/only state.
saveSaves data to a file
ParameterTypeDescription
filename *stringOutput path. The extension picks the format: ``.pdb``, ``.cif``, ``.sdf``, ``.mol2``, ``.obj``, or ``.pse`` for a full session.
selectionstringWhat to write out.
statestringWhich state to save. "-1" is the current state, "0" writes all states.
save_sessionSaves the entire PyMOL session to a .pse file.
ParameterTypeDescription
filename *stringPath to write. A ``.pse`` extension is added if missing.
sceneManages scenes for later recall
ParameterTypeDescription
actionstring``store`` to save the current view, ``recall`` to restore it, ``clear``, ``update``, ``rename``, ``delete``, ``next``, ``previous``.
key *stringScene name, e.g. "F1", or "auto" to use the next free slot.
scene_orderSets the order of scenes
ParameterTypeDescription
scene_list *stringSpace-separated scene names in the order wanted, e.g. "F2 F1 F3".
sculpt_activateActivates sculpting mode for an object
ParameterTypeDescription
obj *stringObject to enable real-space sculpting on.
sculpt_deactivateDeactivates sculpting mode for an object
ParameterTypeDescription
obj *stringObject to stop sculpting.
sculpt_iteratePerforms sculpting iterations
ParameterTypeDescription
iterationsstringNumber of relaxation cycles to run, e.g. "10".
obj *stringObject to relax.
statestringState to relax. "-1" is the current state.
selectCreates (or replaces) a named selection for later reuse.
ParameterTypeDescription
name *stringIdentifier you'll refer to later (e.g. ``active_site``).
selection *stringPyMOL selection expression to assign to that name.
setSets a PyMOL setting to a specified value.
ParameterTypeDescription
selectionstringLimit the setting to this object or selection. Omit to set it globally.
setting *stringPyMOL setting name, e.g. "cartoon_transparency", "ray_shadow", "sphere_scale". Hundreds exist; see the PyMOL settings reference.
value *stringThe value as a string, e.g. "0.5", "1", "black".
set_symmetrySets symmetry parameters for an object
ParameterTypeDescription
a *stringUnit cell edge a, in Angstrom.
alpha *stringUnit cell angle alpha, in degrees.
b *stringUnit cell edge b, in Angstrom.
beta *stringUnit cell angle beta, in degrees.
c *stringUnit cell edge c, in Angstrom.
gamma *stringUnit cell angle gamma, in degrees.
selection *stringObject to assign the unit cell to.
showShows a graphical representation for a given selection.
ParameterTypeDescription
representation *stringOne of ``cartoon``, ``sticks``, ``spheres``, ``surface``, ``lines``, ``ribbon``, ``dots``, ``mesh``, ``nb_spheres``, ``labels``.
selectionstringPyMOL selection string. See module-level note for syntax.
spectrumColors selection in a spectrum
ParameterTypeDescription
expression *stringAtom property to colour by: ``b`` (B-factor or pLDDT), ``q`` (occupancy), ``count``, ``resi``, ``pc`` (partial charge).
palettestringColour ramp, e.g. ``rainbow``, ``blue_white_red``, ``cyan_white_magenta``, ``green_yellow_red``.
selectionstringPyMOL selection string, e.g. "1abc and chain A". See the module note for syntax.
spheroidDisplays atoms as smooth spheres
ParameterTypeDescription
objstringObject to render as smoothed spheres. This is an object name, not a selection expression — cmd.spheroid resolves it as an object and reports 'Object not found' for anything else. The default is the empty string, which cmd.spheroid takes to mean every object; passing "all" is an error, because no object is named that.
structure_infoSummarises what a loaded structure actually is, in one call.
ParameterTypeDescription
obj_name *stringPyMOL object to describe (e.g. "1hsg").
pdb_idstringPDB code to look up, if the object was renamed and its name no longer matches the entry.
superSuperimposes one selection onto another
ParameterTypeDescription
mobile *stringSelection to move.
optionsstringExtra PyMOL arguments.
targetstringSelection to superimpose onto; this one stays put.
superposition_viewSuperposes two structures and colors the mobile one by per-residue shift.
ParameterTypeDescription
max_deviationnumberAngstrom value mapped to full red. Defaults to the largest observed shift, which maximises contrast; set it explicitly to compare two different pairs on one scale.
methodstring"super" (default) is sequence-independent and handles low identity or different folds; "align" uses a sequence alignment first and is better for near-identical sequences.
mobile *stringObject to move and color (e.g. "1ake").
target *stringObject to superpose onto and leave in place (e.g. "4ake").
symexpGenerates symmetry-related copies
ParameterTypeDescription
cutoffstringDistance in Angstrom out to which to generate mates.
obj_name *stringObject holding the crystal symmetry. Separate from the selection below: cmd.symexp needs both.
prefix *stringPrefix for the generated symmetry-mate objects.
segistringOptional segment identifier for the new objects.
selection *stringSelection whose crystallographic neighbours to build.
systemExecutes a system command
ParameterTypeDescription
command *stringShell command to run on the machine PyMOL is running on.
textbook_viewConfigures PyMOL for a crisp, cel-shaded illustrative look ("Textbook Illustration").
ParameterTypeDescription
obj_name *stringPyMOL object name (e.g. "1abc")
turnRotates the camera around an axis
ParameterTypeDescription
anglestringRotation in degrees. Negative reverses direction.
axis *stringCamera axis to rotate about: ``x``, ``y`` or ``z``.
turntableRenders a full 360° rotation as a numbered PNG sequence.
ParameterTypeDescription
framesintegerNumber of frames over the full 360°. 36 gives 10° steps.
heightintegerFrame height in pixels.
obj_namestringObject to centre the rotation on (default: the whole scene).
out_dirstringDirectory to write the PNG sequence into.
prefixstringFilename prefix; frames are ``<prefix>_0000.png`` and up.
ray_tracebooleanKept for compatibility and ignored — every frame is ray-traced, because PyMOL's unshaded OpenGL capture does not work over this bridge.
widthintegerFrame width in pixels.
unbondRemoves a bond between two atoms
ParameterTypeDescription
atom1 *stringFirst atom of the bond to remove.
atom2 *stringSecond atom of the bond to remove.
util_cbabColors by atom, slate carbons (Color By Atom, slateBLue)
ParameterTypeDescription
selectionstringWhat to recolour. Defaults to everything.
util_cbacColors by atom, cyan carbons (Color By Atom, Cyan)
ParameterTypeDescription
selectionstringWhat to recolour. Defaults to everything.
util_cbagColors by atom, green carbons (Color By Atom, Green)
ParameterTypeDescription
selectionstringWhat to recolour. Defaults to everything.
util_cbakColors by atom, pink carbons (Color By Atom, pinK)
ParameterTypeDescription
selectionstringWhat to recolour. Defaults to everything.
util_cbamColors by atom, magenta carbons (Color By Atom, Magenta)
ParameterTypeDescription
selectionstringWhat to recolour. Defaults to everything.
util_cbaoColors by atom, orange carbons (Color By Atom, Orange)
ParameterTypeDescription
selectionstringWhat to recolour. Defaults to everything.
util_cbapColors by atom, purple carbons (Color By Atom, Purple)
ParameterTypeDescription
selectionstringWhat to recolour. Defaults to everything.
util_cbasColors by atom, salmon carbons (Color By Atom, Salmon)
ParameterTypeDescription
selectionstringWhat to recolour. Defaults to everything.
util_cbawColors by atom, white carbons (Color By Atom, White)
ParameterTypeDescription
selectionstringWhat to recolour. Defaults to everything.
util_cbayColors by atom, yellow carbons (Color By Atom, Yellow)
ParameterTypeDescription
selectionstringWhat to recolour. Defaults to everything.
util_cbcColors by chain (Color By Chain)
ParameterTypeDescription
selectionstringWhat to recolour. Defaults to everything.
util_chainbowColors chains in rainbow gradient (CHAINs in rainBOW)
ParameterTypeDescription
selectionstringWhat to recolour. Defaults to everything.
util_color_by_elementColors atoms by their element
ParameterTypeDescription
selectionstringWhat to recolour. Defaults to everything.
util_color_secondaryColors secondary structure elements
ParameterTypeDescription
selectionstringWhat to recolour. Defaults to everything.
util_rainbowColors residues in rainbow from N to C terminus
ParameterTypeDescription
selectionstringWhat to recolour. Defaults to everything.
util_ssColors by secondary structure
ParameterTypeDescription
selectionstringWhat to recolour. Defaults to everything.
viewportSets the viewport size
ParameterTypeDescription
height *stringViewport height in pixels.
width *stringViewport width in pixels.
zoomZooms the view on a selection
ParameterTypeDescription
bufferstringExtra padding around the selection, in Angstrom.
selectionstringWhat to fill the view with.

Security checks

6 checks have not been run yet.

Questions

About MCPymol

How do I install MCPymol?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is MCPymol safe to use with an AI agent?

Its trust score is 49 out of 100 (fair). Conduid hasn't run static security checks on this repository yet, so review the source yourself before granting it credentials. It has no ConduID identity yet, so agent calls to it are not receipted.

Is MCPymol still maintained?

Yes — the last commit was 3 days ago. The repository has 17 stars and 1 forks.

What tools does MCPymol provide?

Conduid read 135 tools from the source: align, alter, alter_state, altloc_view, angle, as, atom_properties, backward and 127 more. 124 of them publish their parameters, listed under Tools above.