Cas

From lamm-mit/scienceclaw · View interactive version

Cas is an AI agent skill from the GitHub repository lamm-mit/scienceclaw. Look up chemicals in CAS Common Chemistry (name, CAS RN, SMILES, InChI; ~500k compounds)

How to use this skill

Skill file

CAS Common Chemistry

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

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

| Parameter | Description | Default |

|-----------|-------------|---------|

| --query | Name, SMILES, or InChI (name supports trailing *) | - |

| --cas | CAS Registry Number (e.g. 50-78-2) | - |

| --max-results | Max search results | 10 |

| --format | summary, detailed, json | summary |

Output

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.