/atomistic-skills:chem-solution-mdfrom Atomistic Skills
Builds solvation boxes with Packmol, runs NPT/NVT molecular dynamics using MLIPs (MACE, MatGL, FairChem), and analyzes trajectories for RDFs, coordination numbers, density convergence, and MSD.
Ships in Atomistic Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
[!NOTE] Steps written
server.toolare MCP tool calls:mace.load_modelis theload_modeltool of themaceserver (mcp__mace__load_model, ormcp__plugin_atomistic-skills_mace__load_modelwhen installed as a plugin). Without a connected server, run the same tools from the shell. Tools named in one command share a process, so a model loaded byload_modelstays loaded:${CLAUDE_SKILL_DIR}/../../venv/run mlip python -m src.mcp_server.cli mace load_model key=value run_md key=value
Set up and run molecular dynamics (MD) simulations of molecules in explicit solvent. This skill covers three stages: (1) building a solvation box with Packmol, (2) running NPT/NVT MD using MLIPs, and (3) analyzing the trajectory for radial distribution functions (RDFs), coordination numbers, density convergence, and mean-square displacement (MSD).
[!IMPORTANT] This skill bridges gas-phase
chem-*skills and condensed-phasemat-*skills by providing workflows for solvation dynamics, liquid structure characterization, and dissolution studies.
PATH for the cpu environment.cpu environment (for SMILES → 3D geometry).Refer to the foundation-potentials skill for model selection.
[!NOTE]
- Organic solvents: Use
MACE-MH-1withomolhead, orUMAwithomoltask.- Aqueous inorganic systems: Use
MACE-MH-1withomat_pbehead, or MatGL/CHGNet.- Mixed organic-inorganic: Use
UMAwhich handles both.
Use the box-building script to create a solvated system with Packmol:
# Pure solvent box (64 water molecules)
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/build_solvation_box.py \
--solvent water \
--num_solvent 64 \
--output_dir research/my_folder/solvation_box
# Solute in solvent (NaCl in 64 water molecules)
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/build_solvation_box.py \
--solute_smiles "[Na+].[Cl-]" \
--solvent water \
--num_solvent 64 \
--output_dir research/my_folder/solvation_box
Key Parameters:
| Argument | Description |
|---|---|
--solvent | Pre-defined solvent name (see available solvents below) |
--solvent_smiles | SMILES string for custom solvent |
--solvent_file | Path to solvent structure file |
--solute_smiles | SMILES string for solute (optional) |
--solute_file | Path to solute structure file (optional) |
--num_solvent | Number of solvent molecules (default: 64) |
--box_size | Cubic box side in Å (auto-calculated from density if omitted) |
--tolerance | Minimum inter-molecular distance in Å (default: 2.0) |
--output_dir | Output directory |
Available pre-defined solvents: water, methanol, ethanol, acetonitrile, dmso, dmf, thf, toluene, acetone, dichloromethane, chloroform, hexane
Output files:
solvated_box.cif — Periodic structure for MDsolvated_box.xyz — Non-periodic XYZ for visualizationbox_metadata.json — Box size, atom counts, solute indicesUse MCP run_md tools for NPT equilibration followed by NVT production.
NPT Equilibration (stabilize density):
mace.load_model(
model_name="MACE-MH-1",
task_name="omol"
)
mace.run_md(
structure_data="research/my_folder/solvation_box/solvated_box.cif",
temperature=300,
ensemble="npt",
pressure=1.01325, # 1 atm in bar
steps=5000, # 2.5 ps at 0.5 fs timestep
timestep=0.5, # 0.5 fs for systems with water (fast O-H vibrations)
log_interval=10,
monitor=True,
monitor_type=["explosion", "volume"],
output_dir="research/my_folder/npt_equilibration"
)
NVT Production (use the equilibrated structure):
mace.run_md(
structure_data="research/my_folder/npt_equilibration/final_structure.cif",
temperature=300,
ensemble="nvt",
steps=20000, # 10 ps at 0.5 fs timestep
timestep=0.5,
log_interval=10,
monitor=True,
monitor_type="explosion",
output_dir="research/my_folder/nvt_production"
)
Run the analysis script on the production trajectory:
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/analyze_solution_md.py \
--trajectory research/my_folder/nvt_production/trajectory.traj \
--rdf_pairs "Na-O,Cl-O,O-O" \
--msd_elements "Na,Cl" \
--log_interval_fs 5.0 \
--output_dir research/my_folder/analysis
Key Parameters:
| Argument | Description |
|---|---|
--trajectory | Path to ASE .traj trajectory file |
--rdf_pairs | Comma-separated element pairs for RDF, e.g. "Na-O,Cl-O" |
--rmax | Maximum RDF distance in Å (default: 8.0) |
--start_frame | First frame to include in analysis (default: 0) |
--stride | Frame stride (default: 1) |
--log_interval_fs | Time between frames in fs (default: 10.0) |
--msd_elements | Comma-separated elements for MSD (optional) |
Output files:
solution_analysis.json — Full results (RDF data, coordination numbers, density, MSD)rdf_plots.png — RDF plots for each element pairdensity_convergence.png — Density vs. timemsd_plot.png — MSD for specified elements (if requested)${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/build_solvation_box.py \
--solvent water --num_solvent 64 \
--output_dir ${CLAUDE_SKILL_DIR}/examples/pure_water
Expected: 192 atoms (64 × 3), box ~12.4 Å
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/build_solvation_box.py \
--solute_smiles "[Na+].[Cl-]" --solvent water --num_solvent 64 \
--output_dir ${CLAUDE_SKILL_DIR}/examples/NaCl_in_water
After MD + analysis, expected RDF peak positions:
cpu for box building and analysis scriptsAuthor: Bowen Deng Contact: GitHub @learningmatter-mit
examples/Li_EC_MACE-MH-1/README.md (opens in a new tab)examples/Li_EC_MACE-MH-1/box_metadata.json (opens in a new tab)examples/Li_EC_MACE-MH-1/density_convergence.png (opens in a new tab)examples/Li_EC_MACE-MH-1/rdf_plots.png (opens in a new tab)examples/Li_EC_MACE-MH-1/solution_analysis.json (opens in a new tab)examples/pure_water_MACE-MH-1/README.md (opens in a new tab)examples/pure_water_MACE-MH-1/box_metadata.json (opens in a new tab)examples/pure_water_MACE-MH-1/density_convergence.png (opens in a new tab)examples/pure_water_MACE-MH-1/rdf_plots.png (opens in a new tab)examples/pure_water_MACE-MH-1/solution_analysis.json (opens in a new tab)resources/common_solvents.yaml (opens in a new tab)scripts/analyze_solution_md.py (opens in a new tab)scripts/build_solvation_box.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub learningmatter-mit/atomisticskills --plugin atomistic-skills133 skills in this plugin
/chem-bond-dissociationCalculate homolytic and heterolytic bond dissociation energies (BDEs) for all single bonds in a molecule using MLIPs with RDKit fragmentation./chem-conformer-searchGenerate molecular conformers with RDKit ETKDG, relax with MLIPs, and rank by energy with Boltzmann weighting./chem-db-mofQuery multiple MOF databases (QMOF via MPContribs; ARC-MOF DB7/Majumdar et al. via Materials Cloud) and download CIF structures with optional element or identifier filters./chem-db-qmofQuery the Quantum MOF (QMOF) database via Materials Project's MPContribs platform for DFT-computed properties (bandgap) and optimized crystal structures of Metal-Organic Frameworks./chem-db-spectraSearch and download experimental InfraRed (IR), Mass spectra, and UV-Vis spectra data (JCAMP-DX format) for molecules./chem-dft-orca-advanced-calculationWrite and run custom ORCA input files for advanced electronic structure methods or settings not available through the SCINE wrapper, including multi-reference methods, excited states, relativistic effects, advanced SCF, NMR/EPR, and more.Other plugins' skills for the same job