/atomistic-skills:chem-db-moffrom Atomistic Skills
Queries QMOF and ARC-MOF DB7 databases for Metal-Organic Framework crystal structures, downloads CIF files with optional element or identifier filters.
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.
Provide a unified interface for retrieving Metal-Organic Framework (MOF) crystal structures from multiple curated databases. Currently supported:
| Database | Alias | Size | Access | Structures |
|---|---|---|---|---|
| Quantum MOF (QMOF) | qmof | ~20,000 DFT-relaxed | MPContribs API | DFT-optimized CIFs + bandgaps |
| ARC-MOF DB7 (Majumdar et al.) | arcmof-majumdar | 23,891 hypothetical (ddmof_1–ddmof_23891) | Materials Cloud archive | CIFs with EQeq partial charges + mof_data.csv metadata |
cpu (commands run through venv/run cpu ...)mpcontribs-client, requests, pandas, pymatgenMP_API_KEY environment variable (required for qmof only)Decide which database to query and which element/identifier filters to apply.
For QMOF — best for DFT-validated, experimentally-derived MOFs:
--formula for element filtering (e.g., Zn or Cu,N,O)--identifier for a specific CSD refcode (e.g., KAXQIL)For ARC-MOF DB7 (Majumdar et al.) — best for diverse hypothetical MOFs with underrepresented inorganic SBUs:
--elements for element filtering (e.g., Zn, or Zn,F for fluorinated Zn MOFs); by default every listed element must be present, while --element-match any keeps structures containing at least one of them--identifier for a specific structure name (e.g., ddmof_559); a full name matches exactly, anything else matches as a substringmof_data.tar.gz (~149 MB) from Materials Cloud to ~/.cache/arcmof/ — one-time only; subsequent runs are fast# QMOF — 10 Zn-containing MOFs
MP_API_KEY=<your_key> ${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/query_mof_db.py \
--database qmof \
--formula Zn \
--max-results 10 \
--output-dir ./research/<date>_<task>/structures/qmof
# ARC-MOF DB7 (Majumdar) — 20 Zn-containing hypothetical MOFs
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/query_mof_db.py \
--database arcmof-majumdar \
--elements Zn \
--max-results 20 \
--output-dir ./research/<date>_<task>/structures/arcmof_db7
# ARC-MOF DB7 — retrieve a specific structure by identifier
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/query_mof_db.py \
--database arcmof-majumdar \
--identifier ddmof_559 \
--output-dir ./research/<date>_<task>/structures/arcmof_db7
| Argument | Applies to | Description |
|---|---|---|
--database | both | qmof or arcmof-majumdar |
--formula | qmof | Element/formula filter string (e.g., Zn,O,C) |
--elements | arcmof-majumdar | Comma-separated elements; by default a structure must contain ALL of them |
--element-match | arcmof-majumdar | all (default) or any (keep structures containing at least one listed element, e.g. a mixed-metal screening set) |
--identifier | both | Specific structure name or ID substring |
--max-results | both | Max CIFs to download (default: 10) |
--output-dir | both | Directory for output CIF files |
--cache-dir | arcmof-majumdar | Override default cache ~/.cache/arcmof/ |
The script saves:
.cif files named by structure identifiermajumdar_metadata.csv (ARC-MOF only) — Majumdar mof_data.csv rows (building blocks, topology, volume, density, CO2 uptake) for the downloaded subsetVerify the download:
ls -lh <output-dir>/*.cif | head -20
The first call with --database arcmof-majumdar performs:
mof_data.tar.gz from Materials Cloud (DOI 10.24435/materialscloud:yn-de), cached at ~/.cache/arcmof/majumdar_mof_data.tar.gzmof_data.csv inside the archive lists all 23,891 structures with their building blocks and propertiesmof_structures.tar is read sequentially and only the CIFs that pass the identifier/metal filters are written to disk; an exact --identifier stops at the first hitSubsequent runs with the same --output-dir skip already-downloaded CIFs.
Literature-validated example: ARC-MOF DB7 ddmof_559 (the top post-combustion CO₂ MOF in Figure 7 of Majumdar et al. 2021). See examples/arcmof_db7_ddmof_559/README.md. It retrieves the structure by exact identifier and checks its composition, Ni₄(μ₃-OH)₂ node stoichiometry, volume and density against the paper and the ARC-MOF metadata.
Example 1: Query Zn MOFs from QMOF for CO₂ screening pre-processing
MP_API_KEY=<your_mp_api_key> \
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/query_mof_db.py \
--database qmof \
--formula Zn \
--max-results 10 \
--output-dir ./research/2026-03-27_test/qmof_zn
Example 2: Query Zn, Ni, or Mg hypothetical MOFs from ARC-MOF DB7
# Zn-based
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/query_mof_db.py \
--database arcmof-majumdar \
--elements Zn \
--max-results 50 \
--output-dir ./research/2026-03-27_arcmof_zn
# Ni-based
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/query_mof_db.py \
--database arcmof-majumdar \
--elements Ni \
--max-results 50 \
--output-dir ./research/2026-03-27_arcmof_ni
# Mg-based
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/query_mof_db.py \
--database arcmof-majumdar \
--elements Mg \
--max-results 50 \
--output-dir ./research/2026-03-27_arcmof_mg
Tip: To build a mixed-metal screening set in one query, list several metals with
--element-match any(e.g.,--elements Zn,Ni,Mg --element-match any), or run separate queries per metal node and combine the resulting CIF directories. With the defaultall, adding elements narrows the search (e.g.,Zn,Freturns only fluorinated Zn MOFs).
--max-results ≤ 100 per call._atom_site_type_symbol; all listed elements must be present unless --element-match any is given.--output-dir already holds --max-results CIFs, the query is skipped regardless of the filters; use a fresh directory per query.chem-sorption-relax).Author: Sauradeep Majumdar Contact: GitHub @sauradeep93
examples/arcmof_db7_ddmof_559/README.md (opens in a new tab)examples/arcmof_db7_ddmof_559/arcmof_geometric_properties_ddmof_559.csv (opens in a new tab)examples/arcmof_db7_ddmof_559/ddmof_559.cif (opens in a new tab)examples/arcmof_db7_ddmof_559/input_configs.yaml (opens in a new tab)examples/arcmof_db7_ddmof_559/majumdar_metadata.csv (opens in a new tab)examples/arcmof_db7_ddmof_559/validation.json (opens in a new tab)scripts/query_mof_db.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-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.Other plugins' skills for the same job