/atomistic-skills:mat-dft-vaspfrom Atomistic Skills
Prepares VASP input files (INCAR, POTCAR, KPOINTS, POSCAR) for DFT calculations, runs them locally or remotely via atomate2, and parses output files to extract energies, forces, stress, and geometries.
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:atomate2.run_atomate2_vasp_calculationis therun_atomate2_vasp_calculationtool of theatomate2server (mcp__atomate2__run_atomate2_vasp_calculation, ormcp__plugin_atomistic-skills_atomate2__run_atomate2_vasp_calculationwhen 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 cpu python -m src.mcp_server.cli atomate2 run_atomate2_vasp_calculation key=value
To prepare VASP input files (INCAR, POTCAR, KPOINTS, POSCAR) locally for a structure or list of structures, and to parse the resulting VASP output files (vasprun.xml, OUTCAR) to extract the final energies, forces, stress, and geometries.
[!TIP] Atomate2 Recommendation: It is highly recommended to run VASP through the
atomate2MCP server/tools instead of manually using this skill.atomate2natively handles automatic SLURM job submission, dynamic error handling and on-the-fly corrections, automated result parsing, and MongoDB cloud storage.
Use the prepare_vasp_inputs.py script to generate local input files from a structure (CIF, XYZ, POSCAR) or a directory of structures.
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/prepare_vasp_inputs.py \
<structure-path> \
<output-dir> \
--preset_type matpes-r2scan \
--calculation_type relaxation
Parameters:
structure_path: Path to a single structure or a directory of structures.output_dir: Location to write the inputs. If structure_path is a directory, subdirectories will be created.--preset_type: Standard VASP presets. Options include omat, mp, matpes-pbe, and matpes-r2scan.--calculation_type: Defaults to relaxation. Use static for SCF static single-point.(Note: Once inputs are generated, you can submit the VASP jobs to an HPC or local cluster. If you instead want to run VASP jobs automatically through Jobflow on configured remote resources, consider using the atomate2.run_atomate2_vasp_calculation MCP tool).
After the VASP calculation has concluded, extract the output data (energy, forces, stress, structure) using parse_vasp_results.py. This handles both single directories (containing a vasprun.xml) and root directories with multiple subdirectories.
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/parse_vasp_results.py \
<vasp-output-dir> \
--save_to_file parsed_results.json
cpu environment.vasprun.xml to succeed. OUTCAR is read supplementary.prepare_vasp_inputs.py relies on pymatgen to write POTCAR files, which requires your PMG_DEFAULT_FUNCTIONAL or .pmgrc.yaml to point to a valid POTCAR directory.VaspInput.write_input may skip writing KPOINTS (the script prints it as saved anyway, and vis.kpoints stays None). Verify KPOINTS exists after generation; if missing, write the Gamma-centered mesh manually (e.g. Kpoints.gamma_automatic(lattice, kpts=0.22) from pymatgen.io.vasp.outputs) before submitting.mcp__atomate2__run_atomate2_vasp_calculation is the preferred submission path, but it can only target hosts registered in ~/.config/jobflow-remote/jobflow_remote.yaml To submit to another cluster, add a worker entry for it there first.Author: Bowen Deng Contact: GitHub @learningmatter-mit
examples/vasp-workflow/README.md (opens in a new tab)examples/vasp-workflow/Si.cif (opens in a new tab)examples/vasp-workflow/vasp_inputs/INCAR (opens in a new tab)examples/vasp-workflow/vasp_inputs/POSCAR (opens in a new tab)scripts/parse_vasp_results.py (opens in a new tab)scripts/prepare_vasp_inputs.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.Other plugins' skills for the same job