Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
VMD_BINNoPath to the VMD launcher. Auto-detected from PATH or macOS .app bundle.auto
VMD_MCP_ROOTNoWhere rendered images / scratch are written.~/vmd-mcp/output

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
vmd_infoA

Return the VMD version/banner and the resolved launcher path. Use this first to confirm the server can reach a working VMD.

molecule_infoA

Load a structure (and optional trajectory) and report a summary: total atoms, number of frames, protein/water/backbone atom counts, and the number of distinct chains and residues.

count_atomsB

Count atoms matching a VMD atom-selection expression (e.g. "protein and name CA", "resname LIG", "within 5 of protein").

radius_of_gyrationB

Radius of gyration (nm-scale, in VMD's Angstrom units) of a selection, computed for every frame. Returns a per-frame series plus min/max/mean.

rmsdA

RMSD of a selection across a trajectory relative to a reference frame.

With align=True each frame is first least-squares fitted onto the reference (rigid-body alignment) before measuring RMSD. Returns a per-frame series plus min/max/mean (Angstrom).

sasaB

Solvent-accessible surface area (Angstrom^2) of a selection, per frame. srad is the solvent probe radius (1.4 A ~ water).

rmsfA

Per-atom root-mean-square fluctuation (RMSF) across a trajectory.

Returns one row per selected atom plus min/max/mean RMSF in Angstrom. Use selections such as "protein and name CA" for compact per-residue traces.

distanceA

Distance between the centers of two atom selections.

By default the distance is measured at one frame. Set all_frames=True to return a per-frame series for a trajectory.

contactsA

Find atom-index contact pairs between two selections at one frame.

cutoff is in Angstrom. The total contact count is always returned; the explicit pairs list is clipped to max_pairs to keep MCP responses bounded.

render_imageA

Ray-trace a molecular image HEADLESSLY with VMD's built-in Tachyon and save it as PNG (no display needed).

representation is one of the supported VMD draw methods; coloring is one of the supported VMD color methods. The image is written under VMD_MCP_ROOT by default. Absolute output paths are rejected unless VMD_MCP_ALLOW_ABSOLUTE_OUTPUTS=1 is set.

render_presetC

Render a molecule using a curated publication-oriented visual preset.

Presets reduce brittle representation/coloring choices while still allowing a custom atom selection when needed.

run_tclA

Run an ARBITRARY VMD Tcl script headlessly and return its combined stdout/stderr plus any parsed @@VMDMCP@@ marker lines.

Emit results from your script with: puts "@@VMDMCP@@ key=value ...". Use this for any analysis not covered by a dedicated tool (measure hbonds, measure contacts, custom per-residue loops, cluster analysis, ...). End the script with quit.

Prompts

Interactive templates invoked by user choice

NameDescription
render_moleculePlan a safe headless molecular render with a curated preset.
analyze_trajectoryRun a compact trajectory-analysis workflow with RMSD, RMSF, Rgyr, and SASA.
debug_vmd_failureDiagnose common VMD path, selection, rendering, and Tcl failures.

Resources

Contextual data attached and managed by the client

NameDescription
capabilitiesTool categories, render presets, allowed visual options, and safety defaults.
outputRecent files written below VMD_MCP_ROOT.
examplesShort prompt recipes for common structure, trajectory, and rendering tasks.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Alierkn/vmd-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server