Skip to content

Structured PubChem lookup for names, CIDs, SMILES, properties, safety, bioactivity, and structure searches.

CCM score
63 of 100
skills.sh installs
2.5K
GitHub stars
3.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers name and InChI resolution, computed properties, synonyms, GHS safety data, FDA pharmacology, and PUG-View headings
  • Includes a wrapper script, scripts/pubchem_api.py, with subcommands for similarity, substructure, assays, xrefs, range, and raw PUG-REST queries
  • Enforces use of the wrapper for rate limiting and requires verifying recalled facts against PubChem before answering
  • Designed for chemistry questions about a specific molecule, drug, or compound, and requires the uv skill

Install

$ npx -y skills add google-deepmind/science-skills --skill pubchem-database -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

PubChem Database

Prerequisites

  1. uv: Read the uv skill and follow its Setup instructions to ensure uv is installed and on PATH.
  2. User Notification: If .licenses/pubchem_database_LICENSE.txt does not already exist in the workspace root directory then (1) prominently notify the user to check the terms at https://pubchem.ncbi.nlm.nih.gov/docs/citation-guidelines and https://pubchem.ncbi.nlm.nih.gov/docs/pug-rest, then (2) create the file recording the notification text and timestamp.

Quick Start

PubChem queries are executed via a robust Python wrapper script to respect terms-of-service and handle complex JSON parsing. This script allows safe multi-agent use of APIs.

Example: Resolve a chemical name to its Compound ID (CID)

uv run scripts/pubchem_api.py resolve --name "aspirin" --output result.json

Core Rules

Details

Repository
github.com/google-deepmind/science-skills
Categories
Research & Academic, Data Science & Analytics
First seen
Jul 14, 2026

Questions

What does the pubchem-database skill do?

It queries PubChem for a specific chemical, drug or molecule, resolving names, CIDs and SMILES to identifiers, and retrieving properties, synonyms, safety and hazard data, pharmacology, bioactivity, and similarity or substructure matches. It runs these lookups through a Python wrapper script so results come back as JSON files the agent can read.

How do I install the pubchem-database skill?

Run npx -y skills add google-deepmind/science-skills --skill pubchem-database -y in a project. After installing, the agent needs uv on PATH, and it will notify you to review the PubChem citation guidelines and PUG-REST terms.

What does the skill need before it can run?

It needs the uv package manager installed and on PATH, and the agent reads the uv skill to set that up. On first use it also creates a license notice file in the workspace root recording the PubChem terms notification and timestamp.

Who should use the pubchem-database skill?

It suits researchers and developers who ask an agent about a specific chemical, drug or molecule and want facts checked against PubChem rather than the model's memory. The skill also instructs the agent to verify checkable facts with a database query.

More from google-deepmind/science-skills

All 36

Similar to Pubchem Database

More Research & Academic