Agent skill

Pubchem API Guide

by wentorai in wentorai/research-plugins

Search PubChem for chemical compounds, structures, and bioassay data

MITAuto-check passedBackend & APIs

Install Pubchem API Guide

skills CLI
$ npx skills add wentorai/research-plugins --skill pubchem-api-guide -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install wentorai/research-plugins pubchem-api-guide --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/wentorai/research-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/domains/chemistry/pubchem-api-guide .claude/skills/pubchem-api-guide && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pubchem-api-guide
GitHub stars
298
Used in
1 other repo
Token cost
~1.9k tokens
SKILL.md length
435 words
Files
1
Skills in repo
405
Repo updated
First seen
Licence
MIT

At a glance

Search PubChem for chemical compounds, structures, and bioassay data

  • Tasks that involve Drug discovery and cheminformatics
  • SKILL.md covers Overview, Authentication, Core Endpoints and Common Research Patterns, plus 2 more sections
  • Calls curl and python3; reaches pubchem.ncbi.nlm.nih.gov

What it does

Pubchem API Guide is an agent skill from wentorai/research-plugins. Search PubChem for chemical compounds, structures, and bioassay data

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering Drug discovery and cheminformatics. The repository describes itself as: 350+ academic research skills, MCP configs, and plugins for Research-Claw and AI agents. The licence is MIT.

When your agent uses it

  • Tasks that involve Drug discovery and cheminformatics

Example prompts

  • “/pubchem-api-guide”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit bf44b3c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • curl
    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • pubchem.ncbi.nlm.nih.gov

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Pubchem API Guide loads about 1.9k tokens when it runs. Until then it costs about 22 tokens; SKILL.md has 435 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~22
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from wentorai/research-plugins at commit bf44b3c, republished under its MIT licence (© wentorai). 435 words, ~1,855 tokens.

Download SKILL.mdSave it as .claude/skills/pubchem-api-guide/SKILL.md (or your agent's skills folder).
name
pubchem-api-guide
description
Search PubChem for chemical compounds, structures, and bioassay data

PubChem PUG REST API Guide

Overview

PubChem is the world's largest free chemistry database, maintained by the National Center for Biotechnology Information (NCBI) at the U.S. National Library of Medicine. It contains information on over 115 million chemical compounds, 300 million substances from hundreds of data sources, and over 1.5 million bioassay experiments. PubChem is a critical resource for researchers in chemistry, pharmacology, drug discovery, toxicology, and related life sciences.

The PUG REST (Power User Gateway RESTful) API provides programmatic access to PubChem's three primary databases: Compound (standardized chemical structures), Substance (depositor-provided records), and BioAssay (biological screening results). The API supports searches by name, molecular formula, structure similarity, substructure, and various identifiers including CID, SID, InChI, and SMILES.

PUG REST is entirely free, requires no authentication, and returns data in JSON, XML, CSV, SDF, and other formats. It is designed for both simple lookups and complex cheminformatics workflows.

Authentication

No authentication is required. PubChem PUG REST is a free public service.

bash
# No API key needed
curl "https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/name/aspirin/JSON"

Core Endpoints

Get Compound by Name
GET https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/name/{name}/JSON
bash
curl -s "https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/name/caffeine/JSON" \
  | python3 -m json.tool
Get Compound Properties

Retrieve specific properties for a compound by CID.

GET https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/{cid}/property/{properties}/JSON

Available properties: MolecularFormula, MolecularWeight, CanonicalSMILES, InChI, InChIKey, IUPACName, XLogP, ExactMass, HBondDonorCount, HBondAcceptorCount, RotatableBondCount, TPSA

bash
curl -s "https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/name/ibuprofen/property/MolecularFormula,MolecularWeight,CanonicalSMILES,IUPACName,XLogP/JSON" \
  | python3 -m json.tool
Search by Molecular Formula
bash
curl -s "https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/fastformula/C8H10N4O2/property/IUPACName,MolecularWeight,CanonicalSMILES/JSON" \
  | python3 -m json.tool

Find compounds structurally similar to a given compound (Tanimoto threshold).

bash
curl -s "https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/fastsimilarity_2d/cid/2244/property/IUPACName,MolecularWeight,CanonicalSMILES/JSON?Threshold=90" \
  | python3 -m json.tool
Get BioAssay Data

Retrieve biological activity data for a compound.

bash
curl -s "https://pubchem.ncbi.nlm.nih.gov/rest/pug/compound/cid/2244/assaysummary/JSON" \
  | python3 -m json.tool
Python Example: Drug-Likeness Screening
python
import requests
import time

PUG_REST = "https://pubchem.ncbi.nlm.nih.gov/rest/pug"

def get_compound_properties(name):
    """Fetch key drug-likeness properties for a named compound."""
    props = "MolecularWeight,XLogP,HBondDonorCount,HBondAcceptorCount,TPSA,RotatableBondCount,IUPACName"
    url = f"{PUG_REST}/compound/name/{name}/property/{props}/JSON"
    resp = requests.get(url)
    resp.raise_for_status()
    data = resp.json()
    return data.get("PropertyTable", {}).get("Properties", [{}])[0]

def check_lipinski(props):
    """Check Lipinski's Rule of Five for oral drug-likeness."""
    violations = 0
    mw = props.get("MolecularWeight", 0)
    logp = props.get("XLogP", 0)
    hbd = props.get("HBondDonorCount", 0)
    hba = props.get("HBondAcceptorCount", 0)

    if mw > 500: violations += 1
    if logp > 5: violations += 1
    if hbd > 5: violations += 1
    if hba > 10: violations += 1
    return violations

drug_candidates = ["metformin", "atorvastatin", "lisinopril", "omeprazole"]
print(f"{'Compound':<20} {'MW':>8} {'LogP':>6} {'HBD':>4} {'HBA':>4} {'Violations':>10}")
print("-" * 60)

for drug in drug_candidates:
    props = get_compound_properties(drug)
    violations = check_lipinski(props)
    print(f"{drug:<20} {props.get('MolecularWeight', 0):>8.1f} "
          f"{props.get('XLogP', 0):>6.1f} "
          f"{props.get('HBondDonorCount', 0):>4} "
          f"{props.get('HBondAcceptorCount', 0):>4} "
          f"{violations:>10}")
    time.sleep(0.3)
Python Example: Compound Comparison
python
import requests

def compare_compounds(cid_list):
    """Compare properties of multiple compounds by CID."""
    cids = ",".join(str(c) for c in cid_list)
    props = "IUPACName,MolecularFormula,MolecularWeight,CanonicalSMILES,XLogP"
    url = f"{PUG_REST}/compound/cid/{cids}/property/{props}/JSON"
    resp = requests.get(url)
    resp.raise_for_status()
    return resp.json().get("PropertyTable", {}).get("Properties", [])

# Compare aspirin (2244), ibuprofen (3672), acetaminophen (1983)
results = compare_compounds([2244, 3672, 1983])
for compound in results:
    print(f"\n{compound.get('IUPACName', 'Unknown')}")
    print(f"  Formula: {compound.get('MolecularFormula')}")
    print(f"  MW: {compound.get('MolecularWeight')}")
    print(f"  SMILES: {compound.get('CanonicalSMILES')}")
    print(f"  LogP: {compound.get('XLogP')}")
Show full SKILL.md (209 more words)Show less

Common Research Patterns

Structure-Activity Relationship (SAR) Analysis: Use similarity searches to find structural analogs of lead compounds, then retrieve bioassay data to compare biological activity across the series.

Virtual Screening: Screen large compound libraries against drug-likeness filters (Lipinski's rules, Veber's rules) using property endpoints to prioritize candidates for experimental testing.

Chemical Identifier Resolution: Translate between compound names, CIDs, InChI, InChIKey, and SMILES notations. Essential for data integration across heterogeneous chemistry databases.

Toxicology Research: Access bioassay results and safety data for compounds to support toxicity profiling and risk assessment in environmental health research.

Rate Limits and Best Practices

  • Rate limit: Maximum 5 requests per second; add 200ms delays between requests
  • No more than 400 requests per minute from a single IP
  • Batch requests: Use comma-separated CIDs (up to 200) in a single request to minimize API calls
  • Async operations: For large similarity/substructure searches, use the async workflow with list keys
  • Response formats: Use JSON for programmatic access, SDF for structure files, CSV for tabular data
  • Caching: Compound data is relatively static; cache property lookups aggressively
  • Error handling: HTTP 404 means compound not found; 503 means server busy (retry with backoff)

References

© wentorai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/domains/chemistry/pubchem-api-guide of wentorai/research-plugins.

Open the folder on GitHubat commit bf44b3c

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in wentorai/research-plugins, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Pubchem API Guide next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Pubchem API Guide compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pubchem API Guide this skillwentorai/research-plugins2981 repos~1.9kAutomated safety check: PassMIT
Pubchem Database Skillaipoch/medical-research-skills2k—~954Automated safety check: PassMIT
Hcls Build Agentaws-samples/amazon-bedrock-agents-healthcare-lifesciences274—~885Automated safety check: PassMIT-0
Pubchem Databasedavila7/claude-code-templates32k11 repos~4.1kAutomated safety check: PassMIT
Knowledge Graph ToolsDrugClaw/DrugClaw125—~1.7kAutomated safety check: PassApache-2.0
Hcls Get Startedaws-samples/amazon-bedrock-agents-healthcare-lifesciences274—~607Automated safety check: PassMIT-0

Similar skills

  • Pubchem Database Skill

    aipoch/medical-research-skills

    Programmatic access to the PubChem database (via PUG-REST API and PubChemPy) for searching chemical compounds, retrieving physicochemical properties, performing structure similarity/substructure…

    2k GitHub stars~954 tokensUpdated 22 days ago
    Backend & APIsAuto-check passed
  • Hcls Build Agent

    aws-samples/amazon-bedrock-agents-healthcare-lifesciences

    Official

    A skill your agent uses when a developer wants to build a new healthcare or life sciences agent, structure tools and system prompts for an HCLS workflow, or create a Strands agent with…

    274 GitHub stars~885 tokensUpdated 7 days ago
    Research & ScienceAuto-check passed
  • Pubchem Database

    davila7/claude-code-templates

    Query PubChem via PUG-REST API/PubChemPy (110M+ compounds). An agent skill from davila7/claude-code-templates.

    32k GitHub starsUsed in 11 repos~4.1k tokens
    Research & ScienceAuto-check passed
  • Knowledge Graph Tools

    DrugClaw/DrugClaw

    Drug-discovery knowledge-graph workflow guide for assembling drug-target-disease-pathway relationship graphs from OpenTargets GraphQL, ChEMBL REST, STRING PPI, and Reactome pathway APIs, then…

    125 GitHub stars~1.7k tokensUpdated 6 mo ago
    Knowledge ManagementAuto-check passed
  • Hcls Get Started

    aws-samples/amazon-bedrock-agents-healthcare-lifesciences

    Official

    A skill your agent uses when a developer asks how to get started building healthcare or life sciences agents, wants to understand the HCLS Agents Toolkit, or asks what's available in this repository.

    274 GitHub stars~607 tokensUpdated 7 days ago
    Research & ScienceAuto-check passed
  • Diffdock Nim

    NVIDIA/skills

    Official

    Run DiffDock molecular docking via NVIDIA NIM to predict small-molecule binding poses against protein targets.

    3.5k GitHub starsUsed in 1 repo~1.1k tokens
    Research & ScienceAuto-check: notes

More from wentorai/research-plugins

All 405 skills in this repo
  • Abstract Writing Guide

    wentorai/research-plugins

    Craft structured research abstracts that maximize clarity and journal acceptance

    298 GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • Academic Citation Manager

    wentorai/research-plugins

    Manage academic citations across BibTeX, APA, MLA, and Chicago formats

    298 GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check passed
  • Academic Paper Summarizer

    wentorai/research-plugins

    Summarize academic papers with structured extraction of key elements

    298 GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Academic Study Methods

    wentorai/research-plugins

    Evidence-based study techniques for academic learning and retention

    298 GitHub starsUsed in 1 repo~1.8k tokens
    Auto-check passed
  • Academic Tone Guide

    wentorai/research-plugins

    Adjust writing tone and register for academic audiences and venues

    298 GitHub starsUsed in 1 repo~1.9k tokens
    Auto-check passed
  • Academic Translation Guide

    wentorai/research-plugins

    Academic translation, post-editing, and Chinglish correction guide

    298 GitHub starsUsed in 1 repo~1.6k tokens
    Auto-check passed

Questions about Pubchem API Guide

What does Pubchem API Guide do?

Search PubChem for chemical compounds, structures, and bioassay data. Pubchem API Guide is an agent skill from wentorai/research-plugins.

When should I use Pubchem API Guide?

Pubchem API Guide fits situations like: tasks that involve Drug discovery and cheminformatics.

How do I install Pubchem API Guide in Claude Code?

Run `npx skills add wentorai/research-plugins --skill pubchem-api-guide -a claude-code`. Or copy the skill folder (skills/domains/chemistry/pubchem-api-guide in wentorai/research-plugins) into .claude/skills/pubchem-api-guide in your project. Claude Code loads it when a task matches its description.

How do I install Pubchem API Guide in Codex?

Run `npx skills add wentorai/research-plugins --skill pubchem-api-guide -a codex`. Or copy the skill folder (skills/domains/chemistry/pubchem-api-guide in wentorai/research-plugins) into .agents/skills/pubchem-api-guide in your project. Codex loads it when a task matches its description.

Can I use Pubchem API Guide in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wentorai/research-plugins --skill pubchem-api-guide -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pubchem-api-guide, .gemini/skills/pubchem-api-guide, .github/skills/pubchem-api-guide and .opencode/skills/pubchem-api-guide in your project.

What does Pubchem API Guide need to run?

Going by SKILL.md and its folder, Pubchem API Guide needs the command-line tools its instructions call (curl and python3). Our summary lists: Python 3.

Does Pubchem API Guide access the network?

SKILL.md names 1 domain. In commands or code: pubchem.ncbi.nlm.nih.gov; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Pubchem API Guide safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Pubchem API Guide use?

Pubchem API Guide is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Pubchem API Guide use?

About 1.9k tokens (SKILL.md is roughly 7.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Pubchem API Guide?

Skills that share tags, products or a category with Pubchem API Guide: Pubchem Database Skill (aipoch/medical-research-skills, 2k stars), Hcls Build Agent (aws-samples/amazon-bedrock-agents-healthcare-lifesciences, 274 stars), Pubchem Database (davila7/claude-code-templates, 32k stars) and Knowledge Graph Tools (DrugClaw/DrugClaw, 125 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pubchem API Guide?

wentorai (a GitHub user) maintains it in wentorai/research-plugins, which has 298 GitHub stars. The repository holds 405 skills in this directory. The repository was last updated on June 19, 2026.

Source: wentorai/research-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.