Hosted MCP server · #164 most used on Smithery
pubchem-mcp-server
cyanheads/pubchem-mcp-server
Search PubChem compounds, properties, safety data, bioactivity, and cross-references.
- Uses
- 3.2k
- Tools
- 10
- Runs
- Hosted
- Listed
- 5mo ago
Get started
Add it to your agent
npx -y @smithery/cli@latest install cyanheads/pubchem-mcp-server --client claudeSwap --client claude for cursor, vscode, windsurf or another client. The CLI asks for any required settings.
claude mcp add --transport http pubchem https://server.smithery.ai/cyanheads/pubchem-mcp-server/mcpA hosted server: nothing to install. Run /mcp in Claude Code to sign in if it asks.
[mcp_servers.pubchem]
url = "https://server.smithery.ai/cyanheads/pubchem-mcp-server/mcp"Add to ~/.codex/config.toml.
{
"mcpServers": {
"pubchem": {
"url": "https://server.smithery.ai/cyanheads/pubchem-mcp-server/mcp"
}
}
}Add to ~/.cursor/mcp.json.
{
"servers": {
"pubchem": {
"type": "http",
"url": "https://server.smithery.ai/cyanheads/pubchem-mcp-server/mcp"
}
}
}Add to .vscode/mcp.json.
gemini mcp add --transport http pubchem https://server.smithery.ai/cyanheads/pubchem-mcp-server/mcpSaved to .gemini/settings.json.
What it can do
10 tools
pubchem_search_compounds10 paramsSearch PubChem for chemical compounds by identifier (name, SMILES, or InChIKey, batched up to 25), molecular formula in Hill notation, su…
Search PubChem for chemical compounds by identifier (name, SMILES, or InChIKey, batched up to 25), molecular formula in Hill notation, substructure or superstructure containment, or 2D Tanimoto similarity. Optionally hydrate results with properties to avoid a follow-up pubchem_get_compound_details call.
| Parameter | Type | Description |
|---|---|---|
query | string | Required for substructure/superstructure/similarity searches. A SMILES string (e.g. "CC(=O)O") or PubChem CID as a string (e.g. "2244"). |
formula | string | Required for formula search. Molecular formula in Hill notation (e.g. "C6H12O6", "CaH2O2"). |
queryType | string | Required for structure/similarity searches. Format of the query: "smiles" or "cid". |
threshold | number | Similarity search only. Minimum Tanimoto similarity (70-100). 90+ for close analogs, 70-80 for scaffold hops. Default: 90. |
maxResults | number | Maximum CIDs to return (1-200). Default: 20. |
properties | array | Optional: fetch these properties for each result, avoiding a follow-up details call. E.g. ["MolecularFormula", "MolecularWeight", "CanonicalSMILES"]. |
searchType | string | Search strategy. "identifier": name/SMILES/InChIKey lookup. "formula": molecular formula. "substructure": find compounds containing the query as a substructure. "superstructure": find compounds that a |
identifiers | array | Required for identifier search. Array of identifiers to resolve (1-25). Examples: ["aspirin", "ibuprofen"] for name, ["CC(=O)OC1=CC=CC=C1C(=O)O"] for SMILES, ["BSYNRYMUTXBXSQ-UHFFFAOYSA-N"] for inchik |
identifierType | string | Required for identifier search. Type of chemical identifier: "name", "smiles", or "inchikey". |
allowOtherElements | boolean | Formula search only. When true, includes compounds with additional elements beyond the formula. |
pubchem_get_compound_details8 paramsGet detailed compound information by CID. Returns physicochemical properties (molecular weight, SMILES, InChIKey, XLogP, TPSA, etc.), opt…
Get detailed compound information by CID. Returns physicochemical properties (molecular weight, SMILES, InChIKey, XLogP, TPSA, etc.), optionally with a textual description (pharmacology, mechanism, therapeutic use), all known synonyms, drug-likeness assessment (Lipinski/Veber rules), and/or pharmacological classification (FDA classes, MeSH classes, ATC codes). Efficiently batches up to 100 CIDs.
| Parameter | Type | Description |
|---|---|---|
cids | array | PubChem Compound IDs to fetch (1-100). Batched efficiently. Resolve from names/SMILES with pubchem_search_compounds. |
properties | array | Properties to retrieve. Defaults to a core set: MolecularFormula, MolecularWeight, IUPACName, CanonicalSMILES, IsomericSMILES, InChIKey, XLogP, TPSA, HBondDonorCount, HBondAcceptorCount, RotatableBond |
maxSynonyms | integer | Max synonyms returned per compound (1-100). PubChem lists hundreds for common drugs; capped to keep the response focused. Default: 20. |
includeSynonyms | boolean | Fetch all known names and synonyms (trade names, systematic names, registry numbers). One API call per CID — slower than the property batch for large CID lists. |
maxDescriptions | integer | Max number of distinct description entries per compound (1-20). PubChem returns near-duplicate summaries from many depositors; we dedup and cap to keep responses focused. Default: 3. |
includeDescription | boolean | Include textual descriptions (pharmacology, mechanism, therapeutic use) attributed by source. Well-studied compounds have many overlapping summaries — capped via maxDescriptions. Fetched only for the |
includeDrugLikeness | boolean | Compute drug-likeness assessment: Lipinski Rule of Five (MW, XLogP, HBD, HBA) and Veber rules (TPSA, rotatable bonds). No extra API calls — computed from properties. |
includeClassification | boolean | Include pharmacological classification: FDA Established Pharmacologic Classes, mechanisms of action, MeSH classes, and ATC codes. Fetched only for the first 10 CIDs in the batch; remaining CIDs return |
pubchem_get_compound_image2 paramsFetch a 2D structure diagram (PNG image) for a compound by CID.
| Parameter | Type | Description |
|---|---|---|
cid | integer | PubChem Compound ID. Resolve from name/SMILES with pubchem_search_compounds. |
size | string | Image size: "small" (100x100) or "large" (300x300). Default: "large". |
pubchem_get_compound_3d_structure6 paramsGet a compound's default 3D conformer — atomic coordinates and bonds — for one CID. format="json" (default) returns parsed atoms and bond…
Get a compound's default 3D conformer — atomic coordinates and bonds — for one CID. format="json" (default) returns parsed atoms and bonds the model can reason over directly; format="sdf" returns the raw V2000 SDF text for passthrough to docking, rendering, or conformer tools. Optionally lists alternate conformer IDs. Not every compound has computed 3D coordinates (large molecules, mixtures, and some salts do not).
| Parameter | Type | Description |
|---|---|---|
cid | integer | PubChem Compound ID. Resolve from name/SMILES with pubchem_search_compounds. |
format | string | Output format. "json" (default) returns parsed atoms and bonds. "sdf" returns the raw V2000 SDF text for passthrough to other tools. |
maxAtoms | integer | Cap the atoms returned in the format="json" preview. atomCount always reports the full total; omitted rows are disclosed via the truncated/shownAtoms enrichment. Defaults to the first 200 atoms. |
maxBonds | integer | Cap the bonds returned in the format="json" preview. bondCount always reports the full total; omitted rows are disclosed via the truncated/shownBonds enrichment. Defaults to the first 200 bonds. |
includeRawSdf | boolean | For format="sdf", return the complete raw V2000 SDF even when it exceeds the safe line cap. Default false: an SDF longer than 500 lines is line-capped with disclosure. No effect when format="json". |
includeAlternateConformerIds | boolean | List the IDs of additional computed conformers beyond the default. Adds one extra API call. Default: false. |
pubchem_get_compound_xrefs3 paramsGet external database cross-references for a compound: PubMed citations, patent IDs, gene/protein associations, registry numbers, and tax…
Get external database cross-references for a compound: PubMed citations, patent IDs, gene/protein associations, registry numbers, and taxonomy IDs. Results are capped per type with total counts reported.
| Parameter | Type | Description |
|---|---|---|
cid | integer | PubChem Compound ID. Resolve from name/SMILES with pubchem_search_compounds. |
xrefTypes | array | Cross-reference types to retrieve. String IDs: RegistryID (DSSTox/EPA registry numbers), RN (CAS numbers), PatentID. Numeric IDs: PubMedID, GeneID (NCBI Gene), ProteinGI (legacy NCBI Protein GI), Taxo |
maxPerType | number | Max IDs to return per xref type (1-500). A compound may have thousands of PubMed references. Total count always reported. Default: 50. |
pubchem_get_compound_safety1 paramGet GHS (Globally Harmonized System) hazard classification and safety data for one or more compounds by CID. Returns signal word, pictogr…
Get GHS (Globally Harmonized System) hazard classification and safety data for one or more compounds by CID. Returns signal word, pictograms, hazard statements (H-codes), and precautionary statements (P-codes) per compound. Data sourced from PubChem depositors — source attribution included.
| Parameter | Type | Description |
|---|---|---|
cids | array | PubChem Compound IDs to fetch safety data for (1-25). Resolve from names/SMILES with pubchem_search_compounds. |
pubchem_get_bioactivity5 paramsGet a compound's bioactivity profile: which assays tested it, activity outcomes (Active/Inactive/Inconclusive), target identifiers (NCBI …
Get a compound's bioactivity profile: which assays tested it, activity outcomes (Active/Inactive/Inconclusive), target identifiers (NCBI Gene ID, UniProt/GenBank accession), and quantitative values (IC50, EC50, Ki, etc.). Filter by outcome and/or a specific molecular target (NCBI Gene ID or protein accession) to focus the profile — e.g. "is this compound active against target T?".
| Parameter | Type | Description |
|---|---|---|
cid | integer | PubChem Compound ID. Resolve from name/SMILES with pubchem_search_compounds. |
maxResults | number | Max assay results to return (1-100). Well-studied compounds have thousands of records. Default: 20. |
targetGeneId | integer | Filter to assays against this NCBI Gene ID. Obtain Gene IDs from pubchem_search_assays or the targetGeneId field of an unfiltered result here. Combine with outcomeFilter="active" to answer "is this co |
outcomeFilter | string | Filter by activity outcome. "active" shows only assays where the compound showed activity — most useful for understanding biological profile. Default: "all". |
targetAccession | string | Filter to assays against this target protein accession (UniProt/GenBank), e.g. "P35354". Obtain accessions from pubchem_search_assays or the targetAccession field of an unfiltered result here. |
pubchem_get_compound_interactions3 paramsGet a compound's interaction data: drug-drug interactions (DrugBank), drug-food interactions, and chemical-target interactions (binding/a…
Get a compound's interaction data: drug-drug interactions (DrugBank), drug-food interactions, and chemical-target interactions (binding/activity from BindingDB, ChEMBL, and others). Each entry carries its originating source. Richest for approved drugs; many compounds have no deposited interaction records.
| Parameter | Type | Description |
|---|---|---|
cid | integer | PubChem Compound ID. Resolve from name/SMILES with pubchem_search_compounds. |
kinds | array | Interaction kinds to fetch. "drug-drug" (interactions with other drugs), "drug-food" (dietary interactions), "target" (binding/activity against molecular targets). Default: ["drug-drug"]. |
maxEntries | integer | Max entries per kind (1-50). Well-studied drugs have a long tail of interactions. Default: 10. |
pubchem_search_assays3 paramsFind PubChem bioassays associated with a biological target. Search by gene symbol (e.g. "EGFR"), protein name, NCBI Gene ID, or UniProt a…
Find PubChem bioassays associated with a biological target. Search by gene symbol (e.g. "EGFR"), protein name, NCBI Gene ID, or UniProt accession. Returns assay IDs (AIDs) which can be explored further with pubchem_get_summary.
| Parameter | Type | Description |
|---|---|---|
maxResults | number | Max AIDs to return (1-200). Popular targets may have thousands of assays. Default: 50. |
targetType | string | Target identifier type. "genesymbol" and "proteinname" accept text names. "geneid" accepts NCBI Gene IDs. "proteinaccession" accepts UniProt accessions. |
targetQuery | string | Target identifier. Examples: "EGFR" (genesymbol), "Epidermal growth factor receptor" (proteinname), "1956" (geneid), "P00533" (proteinaccession). |
pubchem_get_summary2 paramsGet descriptive summaries for PubChem entities by ID. Supports assays (AID), genes (Gene ID), proteins (UniProt accession), and taxonomy …
Get descriptive summaries for PubChem entities by ID. Supports assays (AID), genes (Gene ID), proteins (UniProt accession), and taxonomy (Tax ID). Up to 10 per call.
| Parameter | Type | Description |
|---|---|---|
entityType | string | Entity type. Determines ID format and returned fields. |
identifiers | array | Entity identifiers (1-10). Type depends on entityType: - assay: AID (number), e.g. [1000] - gene: Gene ID (number), e.g. [1956] - protein: UniProt accession (string), e.g. ["P00533"] - taxonomy: Tax I |