CAS Common Chemistry

SkillDev tools

Look up chemicals in CAS Common Chemistry (name, CAS RN, SMILES, InChI; ~500k compounds)

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the CAS Common Chemistry skill

What this skill tells your AI

The instructions your AI receives, as published by lamm-mit/scienceclaw in skills/cas/SKILL.md and read by ahel’s review.

Query CAS Common Chemistry for compound names, CAS Registry Numbers®, molecular formula, mass, SMILES, InChI, and experimental properties. Covers nearly 500,000 compounds (CC BY-NC 4.0).

API access: Request a free API key at https://www.cas.org/services/commonchemistry-api. The script works without a key for public endpoints; if CAS requires a key, set CAS_API_KEY or use ~/.scienceclaw/cas_config.json.

Overview

  • Search by compound name (supports trailing wildcard, e.g. aspirin*), CAS RN, SMILES, or InChI/InChIKey
  • Get detail: name, formula, mass, InChI, SMILES, experimental properties (e.g. melting point, density)
  • Reference: references/cas-common-chemistry-api.md

Usage

Search by name

python3 {baseDir}/scripts/cas_search.py --query "aspirin"

Get detail by CAS Registry Number

python3 {baseDir}/scripts/cas_search.py --cas "50-78-2"

Search with wildcard

python3 {baseDir}/scripts/cas_search.py --query "atrazin*"

JSON output

python3 {baseDir}/scripts/cas_search.py --query "caffeine" --format json

Parameters

ParameterDescriptionDefault
--queryName, SMILES, or InChI (name supports trailing *)-
--casCAS Registry Number (e.g. 50-78-2)-
--max-resultsMax search results10
--formatsummary, detailed, jsonsummary

Output

  • Summary: CAS RN, name, formula, molecular mass, SMILES
  • Detailed: Adds InChI, InChIKey, experimental properties, synonyms
  • JSON: Full API response

Notes

Signals

GitHub stars
242
Forks
42
Last commit
Aug 2026
Advanced
Catalog kind
skill
Gateway key
cas-lamm-mit
Source
github.com/lamm-mit/scienceclaw