PubChem Finder
v2.2.3Search PubChem by structure: a local similarity/substructure index, live PubChem data, RDKit tools
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
pubchem_lookup Look up a PubChem compound
Look a compound up in PubChem by name, CID, SMILES or InChIKey. Returns PubChem records with CID, title, IUPAC name, SMILES, InChIKey, formula, molecular weight, XLogP, H-bond counts, TPSA and the PubChem URL. Names resolve to the best matches; use limit to get more than the top 5.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
by | string | |
limit | integer |
compound_properties Compute molecular properties
Calculate RDKit descriptors for a SMILES string. Returns molecular weight, Crippen LogP, H-bond donors/acceptors, TPSA, rotatable bonds, aromatic rings, heavy atoms, canonical SMILES and whether Lipinski's Rule of Five passes. Works for any valid SMILES, not only PubChem compounds.
| Parameter | Type | Description |
|---|---|---|
smiles * | string |
standardize Standardize a structure
Standardize a structure: remove salts/counter-ions, neutralize charges, normalize functional groups, and return canonical SMILES of the parent. The parent is the largest organic component that is not a common counter-ion or solvent (meglumine, pamoate, tartrate, ethanol); `removed` lists everything left out, and `note` says when that includes another organic component, as in a mixture of two drugs. Metal compounds (cisplatin, ferrous fumarate) and inputs with nothing organic (sodium chloride) are returned as given, with a `note`. Sulfoxides stay S=O, the form PubCh…
| Parameter | Type | Description |
|---|---|---|
smiles * | string |
compare Compare two structures
Fingerprint similarity between two structures. Returns Tanimoto similarity on ECFP4 (Morgan radius 2, 2048 bits) and on MACCS keys. 1.0 means identical fingerprints; above ~0.7 on ECFP4 is a close analogue.
| Parameter | Type | Description |
|---|---|---|
smiles_a * | string | |
smiles_b * | string |
similarity_search Similarity search (local index)
Find the compounds most similar to a structure in the local PubChem index. Exact fingerprint similarity (ECFP4/Morgan by default) over every indexed compound, best first, with CID, SMILES, InChIKey, IUPAC name, formula, MW and PubChem link. threshold is the minimum similarity (0-1, 0.7 finds close analogues; lower it to widen the search). Searches the index built with `pubchem-finder index build` (the first search loads it, which takes a while for a full PubChem index); until one is built, a demo set of about 1,900 FDA-approved drugs, with search_scope="demo" and a…
| Parameter | Type | Description |
|---|---|---|
smiles * | string | |
group_by_scaffold | boolean | |
metric | string | |
threshold | number | |
top_k | integer |
substructure_search Substructure search (local index)
Find compounds in the local PubChem index that contain a fragment. query is a SMILES fragment (e.g. 'c1ccc2[nH]ccc2c1' for indoles) or, with query_type="smarts", a SMARTS pattern (e.g. '[NX3][SX4](=O)(=O)c' for aryl sulfonamides). Offline, exact (every hit is verified atom by atom; stereo is ignored) and not rate-limited, so prefer it over pubchem_substructure_search when index_status shows substructure: true. Without a local index it searches the demo set of FDA-approved drugs (search_scope="demo"). Hits come lowest CID first, which puts long-known compounds first…
| Parameter | Type | Description |
|---|---|---|
query * | string | |
max_hits | integer | |
query_type | string |
index_status Local index status
Report whether the local PubChem index is built, how many compounds it holds, its fingerprint, size, whether substructure search is available, what local searches cover now (search_scope: the index, or the built-in demo set of FDA-approved drugs) and how to build what is missing.
pubchem_similarity_search PubChem similarity search
Find similar compounds across all of PubChem (~120M), live. Uses PubChem's own 2D fingerprint; threshold is a percentage (0-100, 90 finds close analogues). PubChem does not score hits, so each hit gets an ECFP4 Tanimoto to the query computed here and hits are sorted by it. Prefer the local similarity_search when an index is built: it is exact, scored and has no rate limits. max_records: 1-200.
| Parameter | Type | Description |
|---|---|---|
smiles * | string | |
max_records | integer | |
threshold | integer |
pubchem_substructure_search PubChem substructure search
Find compounds across all of PubChem that contain the given structure. The query is a SMILES fragment (e.g. 'c1ccc2[nH]ccc2c1' for indoles). Very generic fragments can time out; make the query more specific if so. Hits are sorted by ECFP4 similarity to the query, closest first. max_records: 1-200.
| Parameter | Type | Description |
|---|---|---|
smiles * | string | |
max_records | integer |
pubchem_exact_match PubChem exact structure match
Find the PubChem record(s) for exactly this structure. identity_type controls what counts as identical: same_stereo_isotope (default, strictest), same_stereo, same_isotope, same_connectivity (ignores stereo and isotopes, finds all stereoisomers), same_tautomer, nonconflicting_stereo.
| Parameter | Type | Description |
|---|---|---|
smiles * | string | |
identity_type | string |
pubchem_synonyms PubChem synonyms and CAS numbers
Names a compound is known by (common, brand, systematic), most common first, plus its CAS Registry Numbers. Get the CID from pubchem_lookup.
| Parameter | Type | Description |
|---|---|---|
cid * | integer | |
limit | integer |
pubchem_xrefs PubChem cross-references
Counts and examples of external identifiers linked to a compound: registry IDs (e.g. CAS, ChEMBL, DrugBank), PubMed articles (with links) and patents.
| Parameter | Type | Description |
|---|---|---|
cid * | integer |
pubchem_description PubChem compound description
Short curated descriptions of a compound (what it is, what it is used for), each with its source.
| Parameter | Type | Description |
|---|---|---|
cid * | integer |
pubchem_annotations PubChem page section
Curated information from one section of a compound's PubChem page. Sections: GHS Classification (pictograms, signal word, hazard statements), Hazards Identification, Pharmacology and Biochemistry, Mechanism of Action, Drug and Medication Information, Experimental Properties (melting point, solubility, measured LogP...), Toxicity, Use and Manufacturing, Food Additives and Ingredients. Each annotation names its source; cite it. Long sections are trimmed to max_chars (500-30000); truncated says when that happened. If the page lacks the section, the error lists the sec…
| Parameter | Type | Description |
|---|---|---|
cid * | integer | |
heading * | string | |
max_chars | integer |
pubchem_bioactivity PubChem bioactivity summary
Summary of PubChem BioAssay results for a compound: how many assays, outcome counts, the targets with the most active assays (one per gene, with its NCBI gene ID and a protein accession) and the lowest potency-type values among active results (IC50, EC50, AC50, Ki, Kd and similar, in µM). The lowest value is not always the most meaningful one: name the assay when you quote it.
| Parameter | Type | Description |
|---|---|---|
cid * | integer |
draw_molecules Draw molecules
Draw 1-24 molecules as a PNG grid image the user can see. legends: one caption per molecule (names or CIDs). highlight: - "smarts": atoms matching the smarts pattern (e.g. a pharmacophore or an alert), - "diff": what each molecule adds relative to reference_smiles (atoms outside their maximum common substructure), with drawings aligned to the shared core. No highlight means no difference, unless the caption says "difference not computed" (the comparison ran out of time: say so, do not call it identical), - "similarity_map": atom contributions to ECFP4 similar…
| Parameter | Type | Description |
|---|---|---|
smiles * | array | |
highlight | string | |
legends | ||
reference_smiles | ||
smarts |
medchem_profile Medicinal chemistry profile
Medicinal-chemistry triage of a structure: QED drug-likeness (0-1), synthetic accessibility (1 easy - 10 hard), Lipinski violations, Veber rules, PAINS/Brenk/NIH structural alerts with matched atom indices (pass them to draw_molecules with the alert as SMARTS, or just describe them), and the Bemis-Murcko scaffold.
| Parameter | Type | Description |
|---|---|---|
smiles * | string |