/pubchem-mcp-server:pubchem-guidefrom pubchem-mcp-server
Guides interpretation of PubChem compound identifiers, salt/parent CID relationships, gene ID and accession chains, and activity labels. Use when resolving compound identity, hazard, mechanism, or potency questions via pubchem_* tools.
Ships in pubchem-mcp-server. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
PubChem aggregates what depositors submit: compound records with computed properties, GHS classifications from regulators and companies, bioassay results from screening centers and from papers extracted by curated databases, and cross-references. Keyless. It reports what was deposited and computes nothing for a structure it has no record of.
Hand off to a sibling source when the question needs:
pubchem_search_compounds in identifier mode. Besides names, SMILES, InChI, and InChIKey, a CAS Registry Number resolves as a name (67-64-1 → acetone, CID 180). From an MS accurate mass, search by mass range: the monoisotopic mass for a high-resolution target, the molecular weight for an average, and exact_mass for the most intense peak, which differs from the monoisotopic mass for Cl- or Br-rich compounds and molecules of about 90 or more carbons (bivalirudin, C98H138N24O33: 2179.989 against 2178.986). Search a measured mass with a window around it at the measurement's tolerance: a zero-width window (massMin equal to massMax) matches only compounds whose stored value equals it to every stored decimal (glucose's monoisotopic mass is stored as 180.06338810), so 180.0634–180.0634 finds nothing while 180.0633–180.0635 finds 1,113. Candidates come in PubChem's order, so check each CID's formula against the question. InChIKey, SMILES, and InChI lookups can return non-live CIDs (live: false), sometimes ahead of the live one: use the row's preferredCid. A substructure search on a non-live CID, or on its own SMILES, can find nothing (CID 10); search its preferredCid instead, or run a similarity search on the CID.pubchem_search_assays (by target), or the AID on any bioactivity row or target entry. A revoked AID reads found: false like one never issued; status: "Revoked" on the pubchem_get_summary row (or data.status on aid_not_found) tells them apart. The record's title, the one description PubChem keeps for a revoked assay, rides beside the status as data.name. When it names a target (AID 369: "…inhibitors of Avian Sarcoma Virus Src."), find live assays for that target with pubchem_search_assays by gene symbol or protein name. Some titles name a dataset instead (AIDs 352, 355), and a record with no title names nothing to search for.GeneID:5743 in the target kind of pubchem_get_compound_interactions) or the target Gene ID on a pubchem_get_bioactivity row from a targeted assay (rows from untargeted screens carry none). pubchem_search_assays returns AIDs only, never Gene IDs.pubchem_get_summary), or the target accession on a bioactivity row.pubchem_search_assays wants the official symbol (PTGS2); an alias such as COX-2 matches nothing. Gene and protein summaries list aliases and the species once you hold the Gene ID or accession.Resolve before calling per-CID tools. Every compound tool takes a CID. When a name could mean a salt, a hydrate, or a mixture, have the search return the formula or SMILES beside each CID and check it before using the CID.
Pick parent or salt on purpose. Use the parent CID for bioactivity, targets, and 3D: a salt or mixture may have no computed conformer (CID 14219 has none; its parent 4091 does). Use the salt CID when the question is about the marketed form's identity or hazards. When a bioactivity profile looks thin, check the other form.
An unrecorded structure is not an error to retry. A SMILES that resolves to no CID is not in PubChem, so there are no properties, hazards, or conformers to fetch. To find recorded neighbors, run a similarity search with the SMILES itself as the query, which works for structures PubChem has never seen, or a substructure search on a fragment of it.
Gene symbols cross species. An assay search by gene symbol matches it case-insensitively across organisms: PTGS2 also returns mouse and bovine COX-2 assays. For one species, search by Gene ID or UniProt accession.
Gene ID and accession are different nets. For one protein, assay searches by Gene ID and by UniProt accession return overlapping but different AID sets, each missing assays recorded only under the other. The bioactivity target filter widens across the two only where the compound's own assay table pairs them, so sapitinib returned one EGFR assay by Gene ID and several different ones by UniProt accession. For coverage, query both identifiers and merge by AID. The compound's target entries can list one protein twice for the same reason.
Protein-name search matches deposited text. It is not an alias lookup: cyclooxygenase-2 finds a handful of assays where the symbol finds well over a thousand. Prefer symbol, Gene ID, or accession.
Check an AID before listing its compounds. A target's AID list includes RNAi screens that tested no compounds, assays on orthologs, and multi-target assays. Read the assay summary's method, targets, and compound count first. For one compound's outcome and values in a named AID, call pubchem_get_bioactivity with cid and aid: [AID]; an AID listed in aidsNotInProfile has no result for that CID (check the parent or salt CID).
Absence is not a finding. No bioactivity rows, no target entries, no_ghs_data, or no drug–food records mean nothing was deposited, not that the compound is inactive, safe, or interaction-free. cid_not_found from the safety tool means the identifier is wrong; the bioactivity tool, by contrast, answers a CID with no record exactly as it answers a compound with no assays, so confirm the CID resolved before reading an empty profile. The interactions tool tells a missing CID apart only when drug–food is requested and answers; a target-only or drug–drug-only empty page cannot, and its notice asks you to verify the CID. Drug–drug interactions are not available from this server; route that question to a drug-label source.
comment (from pubchem_get_summary) often states the threshold behind its Active calls. A compound reads Active in an assay when any of its rows there is Active, which is PubChem's CID-level rule. A value carrying its own outcome came from a row with a different outcome. Unspecified is not Inactive.accession:B2V8E3, Ki 0.0069 µM) ranks 5th, ahead of human COX-1 with 42 Active assays. A target whose Active values are all other measurements (Kinact, Vmax, Cmax, unnamed values) ranks after every target with a potency value and reads "lowest active value outside the potency measurements". Weigh the assay counts and the measurement type before naming a compound's targets. Orthologs are separate entries, each with its own Gene ID.pubchem_get_compound_xrefs runs to hundreds of genes for a common drug, in numeric order. Use the target entries for "what does it hit". TaxonomyID lists linked organisms, often laboratory and model organisms, not where the compound occurs."Is drug X a Y inhibitor, and how potent?" Two halves, two tools. Mechanism class: pubchem_get_compound_details with classification — FDA mechanisms, MeSH pharmacological classes, and ATC codes answer "is it a COX-2 inhibitor" for drugs those vocabularies cover. Potency: get the Gene ID from the compound's target entries, then filter its bioactivity by that target, the Active outcome, and the confirmatory type, naming the measurement (IC50) and sorting by potency with a result cap of 1 for the strongest value (celecoxib against COX-2 gives AID 362870, IC50 0.00052 µM); if that comes back thin, repeat with the UniProt accession.
"Analogs of X with activity on target T." A similarity search from X's CID returns each hit with its Tanimoto score, in PubChem's order rather than ranked by score; it includes X itself and lists salts as separate CIDs. A score of 1 means an identical fingerprint, not an identical compound: isotopologues and some positional isomers score 1. Low thresholds can return compounds that share little scaffold with the query, so compare SMILES before calling hits analogs. Then check each analog's bioactivity against T, by Gene ID and by accession.
"Hazards of X." pubchem_get_compound_safety's merged H-codes are the union of every source, superseded revisions included: acetone's merged list carries NITE-CMC's H305 and H373 beside the EU harmonised H225, H319, and H336. Report the EU harmonised or ECHA aggregate classification when present, and attribute any other code to its source.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pubchem-mcp-server@cyanheads is listed by cyanheads/cyanheads — review the source before installing
npx claudepluginhub cyanheads/cyanheads --plugin pubchem-mcp-serverOther plugins' skills for the same job