Repository avatar
Search & Data Extraction
v1.0.1
active

pubchem-chemical-compounds-mcp

io.github.theluckystrike/pubchem-chemical-compounds-mcp

Query PubChem compounds by name or formula, molecular properties, synonyms, and descriptions.

Documentation

pubchem-chemical-compounds-mcp

Look up chemical compounds in NCBI PubChem by name or molecular formula, fetch physicochemical descriptors, list synonyms and CAS identifiers, and read curated descriptions over Model Context Protocol (MCP). Medicinal chemists, pharma analysts, and cheminformatics pipelines can query more than 115 million PubChem compounds with zero API keys and zero sign-up. It works right away.

Hosted endpoint

Point any Streamable HTTP MCP client at the free hosted Cloudflare Worker endpoint.

https://pubchem-chemical-compounds-mcp.lipmichal.workers.dev/mcp

Available tools

ToolPurpose
get_compound_by_nameLook up a PubChem compound by common name, drug name, or IUPAC name with core molecular descriptors
get_compound_propertiesFetch molecular weight, formula, SMILES, InChIKey, XLogP, TPSA, and H-bond counts for one or more CIDs
get_compound_synonymsRetrieve chemical synonyms, CAS registry numbers, and trade names by PubChem CID or compound name
search_by_formulaSearch PubChem compounds matching a molecular formula such as C9H8O4 and enrich results with IUPAC names
get_compound_descriptionFetch curated scientific descriptions, pharmacology notes, and safety summaries by CID or name

Client configuration

Add the remote URL to Claude Desktop, Cursor, or VS Code MCP settings.

{
  "mcpServers": {
    "pubchem-chemical-compounds": {
      "url": "https://pubchem-chemical-compounds-mcp.lipmichal.workers.dev/mcp"
    }
  }
}

Run locally over stdio

You can also run the server locally on Node 20 or newer over stdio.

npm install
npm run build
npm start

Compliance and reliability

Every upstream call hits pubchem.ncbi.nlm.nih.gov/rest/pug with a clear User-Agent header and automatic retry on transient network or 5xx errors. Cloudflare edge caching applies only to HTTP 2xx responses, so upstream faults don't stick in cache. All five tools declare read-only, non-destructive, idempotent, open-world annotations, and the Worker negotiates protocol version 2026-07-28 cleanly down to the SDK version.

More MCP Servers and Readiness Check

This server belongs to the public MCP directory maintained by MCPStamp and Zovo.