Pubchem MCP Server logo

Pubchem MCP Server

Connects AI agents to PubChem for compound searches, chemical data, safety, bioactivity, structures, and cross-references.

Install Pubchem MCP Server

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for pubchem-mcp-server, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

The pubchem-mcp-server MCP server exposes PubChem compound and bioassay data through MCP tools and URI-based resources. It supports searches by chemical identifiers, formulas, structures, similarity, and assay activity, then retrieves properties, safety classifications, structures, interactions, bioactivity, and external references. Use it when an agent needs to investigate compounds or connect chemical records with genes, proteins, assays, patents, and literature. It runs over STDIO or Streamable HTTP, including a publicly hosted endpoint.

Use cases

  • Search compounds by name, formula, or structure
  • Inspect physicochemical properties and drug-likeness
  • Review compound safety and hazard classifications
  • Analyze bioactivity by assay outcome or target
  • Find patents, literature, gene, and protein references

Key features

  • Compound and assay search
  • Properties, synonyms, and classifications
  • 2D images and 3D conformers
  • GHS safety data
  • Bioactivity and molecular interactions
  • External database cross-references

Tools10

What Pubchem MCP Server lets your agent do. Expand a tool for its parameters.

Self-reported~302 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 2d ago

Recent health check succeeded.

5/5 checks healthy over the last 36d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 16d ago via OSV.dev

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars10Stargazers on the source repository.
npm downloads2.1kPackage downloads in the last 30 days.
Last commit6d agoMost recent push to the default branch.
Tools exposed10Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Pubchem MCP Server works

What pubchem-mcp-server does

The pubchem-mcp-server MCP server connects MCP-compatible clients to PubChem’s compound and bioassay data. It lets an agent identify compounds from names, SMILES, InChIKeys, formulas, substructures, superstructures, or 2D similarity searches. Searches can also return compounds marked active by a specified bioassay.

Once a compound CID is known, the server can return physicochemical properties, descriptions, synonyms, classifications, drug-likeness checks, safety information, images, 3D conformers, interactions, bioactivity, and external database references. It also supports searches for assays by gene symbol, protein, Gene ID, or UniProt accession, plus summaries for assays, genes, proteins, and taxonomy entities.

How it works

The server exposes 10 MCP tools and six URI-templated resources. Compound resources include core properties, GHS safety classifications, 2D images, cross-references, and bioactivity. An assay resource returns an assay summary. Clients that only expose tools may not show these resources.

Search and retrieval operations use PubChem identifiers and paging controls. Compound searches can return up to 200 CIDs per page, while detail lookups accept up to 100 CIDs per call and safety lookups accept up to 25. The responses report unresolved identifiers, capped inputs, truncation, totals, and per-record status where relevant. This allows an agent to distinguish missing records, incomplete pages, absent classifications, and compounds with no available data.

The 3D structure tool returns parsed atoms and bonds as JSON or the raw V2000 SDF text. JSON previews can cap atoms and bonds while still reporting full counts. A compound may lack a computed 3D structure, including some large molecules, mixtures, and salts.

Setup and configuration

The pubchem-mcp-server MCP server can run through the published npm package with npx -y @cyanheads/pubchem-mcp-server, as shown by the repository’s client installation links. The project supports STDIO and Streamable HTTP. A public hosted endpoint is available at https://pubchem.caseyjhand.com/mcp.

Named installation paths are provided for Claude Desktop, Cursor, and VS Code. Other MCP clients can connect when configured for the server’s supported transport.

Tools and capabilities

  • Search compounds by identifiers, formulas, structure relationships, similarity, or assay activity.
  • Retrieve properties, descriptions, synonyms, FDA/MeSH/ATC classifications, and Lipinski/Veber checks.
  • Fetch 2D PNG diagrams and 3D conformers in JSON or SDF form.
  • Retrieve GHS signal words, pictograms, hazard codes, precautionary codes, and source classifications.
  • Inspect bioassay results and filter them by outcome or molecular target.
  • Find drug-drug, drug-food, and chemical-target interactions.
  • Retrieve references to registry IDs, CAS numbers, patents, PubMed, genes, proteins, and taxonomy records.

The pubchem-mcp-server MCP server also exposes summaries for assays, genes, proteins, and taxonomy entities. Bioactivity filters can use a target Gene ID or accession, and matching identifiers associated with the same target can be reached through that filter.

Limitations and notes

PubChem-backed results may be paged, capped, truncated, or unavailable for a particular entity. Description and classification enrichment in compound details covers only the first 10 CIDs, while synonyms and drug-likeness checks cover every found CID. Images and 3D structures operate on one CID at a time.

Safety responses distinguish a nonexistent CID from a compound without deposited GHS data or one for which no notifier reported a GHS hazard. An empty cross-reference response can mean either that the requested reference types are absent or that the CID may be incorrect. The repository notes that many MCP clients expose tools but not resources.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Pubchem MCP Server

pubchem-mcp-server is an MCP server that connects AI clients to PubChem’s compound and bioassay database. Its main tools search compounds and assays, retrieve properties, safety, bioactivity, interactions, cross-references, 2D images, 3D structures, and entity summaries. It supports STDIO and Streamable HTTP connections.

Install it through the npm package with `npx -y @cyanheads/pubchem-mcp-server` in an MCP client configuration. The repository provides installation links for Claude Desktop, Cursor, and VS Code, and also publishes a Docker package.

Yes, pubchem-mcp-server works with Cursor. The repository provides a Cursor installation link that configures the server with `npx -y @cyanheads/pubchem-mcp-server`.

Yes, it can return a compound’s 3D conformer as parsed JSON or raw V2000 SDF text. JSON includes atoms and bonds, with optional caps for preview size. PubChem may not have computed 3D coordinates for some large molecules, mixtures, or salts.

The server can be configured through its supported STDIO or Streamable HTTP deployment methods.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPubchem MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/pubchem-mcp-server?style=directory)](https://allmcps.com/mcp/pubchem-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/pubchem-mcp-server"><img src="https://allmcps.com/api/badge/pubchem-mcp-server?style=directory" alt="Pubchem MCP Server on AllMCPs" /></a>