pubchem-database

Query PubChem for chemical properties, structure searches, and bioactivity data via PUG-REST.

1|Updated Aug 31, 2026
One-click install
npx skills add https://github.com/nguyenhungtran18/skill-and-tool-tracker --skill pubchem-database-nguyenhungtran18
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: pubchem-database
Source: https://github.com/nguyenhungtran18/skill-and-tool-tracker/tree/main/skills/pubchem_database
Command: npx skills add https://github.com/nguyenhungtran18/skill-and-tool-tracker --skill pubchem-database-nguyenhungtran18

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires polite-http, and includes scripts (resource) and references (resource) components.

What problem does it solve? Looking up verified chemical, drug, and molecule information requires navigating PubChem's complex PUG-REST and PUG-View APIs, handling rate limits, and parsing nested JSON responses manually. ## Core Features & Use Cases - Compound Resolution & Properties: Convert chemical names or InChI strings to CIDs, SMILES, and InChIKeys, then fetch computed properties like MolecularWeight, XLogP, and TPSA. - Safety & Pharmacology Data: Retrieve GHS hazard statements, FDA pharmacology, mechanism of action, and therapeutic uses via PUG-View headings. - Structure & Bioactivity Search: Run 2D similarity and substructure searches by SMILES, property range queries, and BioAssay target interaction lookups. - Use Case: When asked to profile a drug like aspirin, resolve its name to a CID, pull its physical properties, safety hazards, and pharmacology, then compile a comprehensive cheminformatics report. ## Quick Start Ask the AI to look up the chemical properties, safety hazards, and drug information for ibuprofen using the PubChem database.

Frequently Asked Questions about pubchem-database

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search PubChem by chemical name or SMILES?▼

Use the pubchem_api.py wrapper with the resolve command for names or InChI strings, and the similarity or substructure commands for SMILES-based searches. Each command writes structured JSON output to a file for further processing.

How to get chemical properties like XLogP and TPSA from PubChem?▼

Run the properties command with a Compound ID to fetch MolecularFormula, MolecularWeight, XLogP, TPSA, ExactMass, and hydrogen bond counts. The script queries the PUG-REST property endpoint and saves results as JSON.

Does PubChem provide drug safety and hazard information?▼

Yes, PubChem exposes GHS hazard statements and handling precautions through the PUG-View API under the Safety and Hazards heading. The safety command retrieves this data for a given CID, and pharmacology fetches FDA drug information.

What should I do when a PubChem name search returns no results?▼

Search for the neutral parent compound if querying an ion or salt, or deconstruct complex formulas into major components. Alternatively, use substructure or similarity search with a SMILES string to find related compounds.

Can I run custom PUG-REST API queries with this tool?▼

Yes, the query command executes any raw PUG-REST path such as compound/cid/2244/xrefs/PatentID/JSON. The references/endpoints.md file documents the full URL structure for domains, namespaces, operations, and output formats.