# pubchem-mcp-server MCP server

MCP server for PubChem. Search compounds, properties, safety, bioactivity, xrefs, and summaries.

## Links
- Registry page: https://www.getdrio.com/mcp/io-github-cyanheads-pubchem-mcp-server
- Repository: https://github.com/cyanheads/pubchem-mcp-server

## Install
- Command: `npx -y @cyanheads/pubchem-mcp-server`
- Endpoint: https://pubchem.caseyjhand.com/mcp
- Auth: Not captured

## Setup notes
- Package: Npm @cyanheads/pubchem-mcp-server v0.1.9
- Environment variable: MCP_LOG_LEVEL (default info)
- Package: Npm @cyanheads/pubchem-mcp-server v0.1.9
- Environment variable: MCP_HTTP_HOST (default 127.0.0.1)
- Environment variable: MCP_HTTP_PORT (default 3010)
- Environment variable: MCP_HTTP_ENDPOINT_PATH (default /mcp)
- Environment variable: MCP_AUTH_MODE (default none)
- Environment variable: MCP_LOG_LEVEL (default info)
- Remote endpoint: https://pubchem.caseyjhand.com/mcp

## Tools
- pubchem_search_compounds (Search Compounds) - 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. Endpoint: https://pubchem.caseyjhand.com/mcp
- pubchem_get_compound_details (Get Compound Details) - 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. Endpoint: https://pubchem.caseyjhand.com/mcp
- pubchem_get_compound_image (Get Compound Image) - Fetch a 2D structure diagram (PNG image) for a compound by CID. Endpoint: https://pubchem.caseyjhand.com/mcp
- pubchem_get_compound_xrefs (Get Compound Cross-References) - 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. Endpoint: https://pubchem.caseyjhand.com/mcp
- pubchem_get_compound_safety (Get Compound Safety) - Get GHS (Globally Harmonized System) hazard classification and safety data for a compound. Returns signal word, pictograms, hazard statements (H-codes), and precautionary statements (P-codes). Data sourced from PubChem depositors — source attribution included. Endpoint: https://pubchem.caseyjhand.com/mcp
- pubchem_get_bioactivity (Get Bioactivity) - 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 to focus on active results. Endpoint: https://pubchem.caseyjhand.com/mcp
- pubchem_search_assays (Search Assays) - 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. Endpoint: https://pubchem.caseyjhand.com/mcp
- pubchem_get_summary (Get Entity Summary) - 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. Endpoint: https://pubchem.caseyjhand.com/mcp

## Resources
Not captured

## Prompts
Not captured

## Metadata
- Owner: io.github.cyanheads
- Version: 0.1.9
- Runtime: Npm
- Transports: STDIO, HTTP
- License: Not captured
- Language: Not captured
- Stars: Not captured
- Updated: Mar 28, 2026
- Source: https://registry.modelcontextprotocol.io
