/atomistic-skills:drug-db-pubchemfrom Atomistic Skills
Queries PubChem via PUG-REST to retrieve CIDs, computed properties, synonyms, and 2D/3D SDF structures by name, SMILES, CID, InChI, InChIKey, or molecular formula.
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.
To programmatically query the PubChem Compound database using the PUG-REST API and retrieve:
This skill is designed for reproducible, rate-limited queries suitable for automation workflows.
Look up a compound by its common name. Use --name_type complete (default) for exact match or --name_type word for partial matching.
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/query_pubchem.py \
--name "aspirin" \
--name_type complete \
--max_results 5 \
--outdir research/pubchem/aspirin \
--output aspirin.json
For partial name matching (can be noisier):
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/query_pubchem.py \
--name "atorvastatin" \
--name_type word \
--max_results 10 \
--outdir research/pubchem/atorvastatin \
--output atorvastatin_word.json
SMILES may contain characters reserved by URL syntax; this script uses HTTP POST to avoid common failures.
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/query_pubchem.py \
--smiles "CC(=O)Oc1ccccc1C(=O)O" \
--max_results 5 \
--outdir research/pubchem/aspirin_smiles \
--output aspirin_smiles.json
Most unambiguous lookup method.
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/query_pubchem.py \
--cid 2244 \
--outdir research/pubchem/CID_2244 \
--output cid_2244.json
InChI uses HTTP POST (like SMILES) to avoid URL syntax issues.
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/query_pubchem.py \
--inchikey "BSYNRYMUTXBXSQ-UHFFFAOYSA-N" \
--outdir research/pubchem/aspirin_inchikey \
--output aspirin_inchikey.json
Uses fastformula for synchronous molecular formula search. Optionally allow additional elements for broader results.
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/query_pubchem.py \
--formula "C9H8O4" \
--max_results 10 \
--outdir research/pubchem/C9H8O4 \
--output formula_results.json
Allow other elements (broader search):
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/query_pubchem.py \
--formula "C6H12O6" \
--allow_other_elements \
--max_results 10 \
--outdir research/pubchem/C6H12O6_allow_other \
--output formula_allow_other.json
PubChem 3D records are computationally generated and may be unavailable for some CIDs; the script falls back to 2D by default.
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/query_pubchem.py \
--name "ibuprofen" \
--download_sdf \
--sdf_record_type 3d \
--outdir research/pubchem/ibuprofen \
--output ibuprofen.json
Synonyms require extra API calls; disable them for high-throughput workflows.
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/query_pubchem.py \
--cid 2244 \
--no_synonyms \
--outdir research/pubchem/CID_2244_minimal \
--output cid_2244_minimal.json
Caffeine (download 3D SDF if available):
${CLAUDE_SKILL_DIR}/../../venv/run cpu python ${CLAUDE_SKILL_DIR}/scripts/query_pubchem.py \
--name "caffeine" \
--download_sdf \
--sdf_record_type 3d \
--outdir research/pubchem/caffeine \
--output caffeine.json
X-Throttling-Control header.--max_results small for interactive use.--no_synonyms for high-throughput workflows.cpu environment.urllib, json, argparse).Author: Matthew Cox Contact: GitHub @mcox3406
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