This gives Claude Code access to PubChem's chemical compound database through a Python wrapper that handles rate limiting and JSON parsing. It's designed for scientific workflows where you need to query molecular structures, chemical properties, or biological activity data. The skill comes from Google DeepMind's science-skills collection and includes license notifications since PubChem has specific citation requirements. Worth noting that it depends on uv being installed first. With over 1,000 installs and clean security audits from most scanners, it seems like the standard way to integrate PubChem lookups into agent workflows without manually dealing with the REST API's quirks.

skills.sh installs
2.3K
GitHub stars
3.4K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/google-deepmind/science-skills
Categories
Backend & APIs, Databases
First seen
Jul 14, 2026

More from google-deepmind/science-skills

All 37
1google-deepmind avatarensembl-databasegoogle-deepmind/science-skillsQuery the Ensembl database to resolve gene, transcript, and protein IDs, fetch genomic or protein sequences, retrieve gene structures (exons), and get variant c2.3Kskills.sh installs
2google-deepmind avataropentargets-databasegoogle-deepmind/science-skillsQuery Open Targets Platform for target-disease associations, drug target discovery, tractability/safety data, genetics/omics evidence, known drugs, for therapeu2.3Kskills.sh installs
3mckruz avatarcomfyui-apimckruz/comfyui-expertcomfyui api2.1Kskills.sh installs
4browserbase avatarbrowser-to-apibrowserbase/skillsTurn a website's observable HTTP traffic into a best-effort OpenAPI 3.1 spec by analyzing a `browser-trace` capture. Use when the user wants to discover/extract2Kskills.sh installs
5sickn33 avatarapi-documentation-generatorsickn33/antigravity-awesome-skillsapi documentation generator1.9Kskills.sh installs
6affaan-m avatarmysql-patternsaffaan-m/everything-claude-codemysql patterns1.8Kskills.sh installs