get_compound

Pack: pubchem · Endpoint: https://gateway.pipeworx.io/pubchem/mcp

Get standard properties for a PubChem CID: molecular formula, molecular weight, IUPAC name, canonical SMILES, isomeric SMILES, InChI, InChIKey, exact mass, charge, complexity, H-bond donors/acceptors, rotatable bonds, TPSA, XLogP, heavy atom count.

Parameters

NameTypeRequiredDescription
cidnumberyesPubChem Compound ID

Example call

Arguments

{
  "cid": 3672
}

curl

curl -X POST https://gateway.pipeworx.io/pubchem/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_compound","arguments":{"cid":3672}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_compound', {
  "cid": 3672
});

Response shape

Always returns: cid, pubchem_url

FieldTypeDescription
cidnumberPubChem Compound ID
molecular_formulastring | nullChemical molecular formula
molecular_weightnumber | nullMolecular weight in g/mol
iupac_namestring | nullIUPAC systematic name
canonical_smilesstring | nullCanonical SMILES notation
isomeric_smilesstring | nullIsomeric SMILES notation
inchistring | nullInChI chemical identifier
inchikeystring | nullInChIKey hash
exact_massnumber | nullExact mass of the compound
monoisotopic_massnumber | nullMonoisotopic mass
chargenumber | nullNet formal charge
complexitynumber | nullStructural complexity score
h_bond_donorsnumber | nullCount of hydrogen bond donor groups
h_bond_acceptorsnumber | nullCount of hydrogen bond acceptor groups
rotatable_bondsnumber | nullCount of rotatable bonds
tpsanumber | nullTopological Polar Surface Area
xlogpnumber | nullOctanol-water partition coefficient
heavy_atom_countnumber | nullCount of heavy (non-hydrogen) atoms
pubchem_urlstringDirect URL to PubChem compound page
Full JSON Schema
{
  "type": "object",
  "properties": {
    "cid": {
      "type": "number",
      "description": "PubChem Compound ID"
    },
    "molecular_formula": {
      "type": [
        "string",
        "null"
      ],
      "description": "Chemical molecular formula"
    },
    "molecular_weight": {
      "type": [
        "number",
        "null"
      ],
      "description": "Molecular weight in g/mol"
    },
    "iupac_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "IUPAC systematic name"
    },
    "canonical_smiles": {
      "type": [
        "string",
        "null"
      ],
      "description": "Canonical SMILES notation"
    },
    "isomeric_smiles": {
      "type": [
        "string",
        "null"
      ],
      "description": "Isomeric SMILES notation"
    },
    "inchi": {
      "type": [
        "string",
        "null"
      ],
      "description": "InChI chemical identifier"
    },
    "inchikey": {
      "type": [
        "string",
        "null"
      ],
      "description": "InChIKey hash"
    },
    "exact_mass": {
      "type": [
        "number",
        "null"
      ],
      "description": "Exact mass of the compound"
    },
    "monoisotopic_mass": {
      "type": [
        "number",
        "null"
      ],
      "description": "Monoisotopic mass"
    },
    "charge": {
      "type": [
        "number",
        "null"
      ],
      "description": "Net formal charge"
    },
    "complexity": {
      "type": [
        "number",
        "null"
      ],
      "description": "Structural complexity score"
    },
    "h_bond_donors": {
      "type": [
        "number",
        "null"
      ],
      "description": "Count of hydrogen bond donor groups"
    },
    "h_bond_acceptors": {
      "type": [
        "number",
        "null"
      ],
      "description": "Count of hydrogen bond acceptor groups"
    },
    "rotatable_bonds": {
      "type": [
        "number",
        "null"
      ],
      "description": "Count of rotatable bonds"
    },
    "tpsa": {
      "type": [
        "number",
        "null"
      ],
      "description": "Topological Polar Surface Area"
    },
    "xlogp": {
      "type": [
        "number",
        "null"
      ],
      "description": "Octanol-water partition coefficient"
    },
    "heavy_atom_count": {
      "type": [
        "number",
        "null"
      ],
      "description": "Count of heavy (non-hydrogen) atoms"
    },
    "pubchem_url": {
      "type": "string",
      "description": "Direct URL to PubChem compound page"
    }
  },
  "required": [
    "cid",
    "pubchem_url"
  ]
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "pubchem": {
      "url": "https://gateway.pipeworx.io/pubchem/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026