Skip to main content
Glama

PubChem MCP

中文说明

A small stdio MCP server for querying PubChem compound properties and structure images.

Tools

  • query_pubchem: returns formula, molecular weight, charge, SMILES, IUPAC name, atoms, bonds, and hydrogen-bond counts.

  • img: returns PubChem structure-image URLs and MCP image objects.

Related MCP server: PubChem-MCP

Setup

Requires Python 3.10+.

python -m venv .venv
# Windows PowerShell
.\.venv\Scripts\Activate.ps1
# macOS/Linux
source .venv/bin/activate

pip install -r requirements.txt

Add the server to an MCP client (replace both paths with absolute paths):

{
  "mcpServers": {
    "pubchem": {
      "command": "C:\\path\\to\\pubchem-mcp\\.venv\\Scripts\\python.exe",
      "args": ["C:\\path\\to\\pubchem-mcp\\pcp_mcp.py"]
    }
  }
}

You can also start it directly with python pcp_mcp.py.

Usage

  • Properties: call query_pubchem with {"compound_name": "aspirin"}.

  • Structure image: call img with {"compound_name": "aspirin"}.

Notes

  • Pass compound names in English; translate them before calling the tools if needed.

  • Internet access to PubChem is required. A name may match multiple compounds.

  • Image display depends on the MCP client; img also returns browser-ready URLs.

  • PubChem data should be independently verified before safety-critical, medical, or regulatory use.

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    -
    quality
    D
    maintenance
    Enables AI assistants to search and retrieve chemical compound information, structures, and physical properties from the PubChem database. It supports querying via compound names, SMILES notation, or CIDs to provide detailed molecular data for chemical analysis.
    5
  • F
    license
    -
    quality
    D
    maintenance
    An MCP server that provides tools for querying the PubChem database for detailed information on chemical compounds, substances, bioassays, and molecular properties. It enables users to search by name, structure, or identifier to retrieve chemical classifications and cross-references through natural language.
  • F
    license
    B
    quality
    F
    maintenance
    Extracts basic chemical information and drug data from the PubChem API. It enables users to retrieve molecular details such as SMILES, IUPAC names, molecular formulas, and synonyms for specific compounds.
    3
    11
  • A
    license
    -
    quality
    D
    maintenance
    Provides chemical informatics endpoints for converting between chemical names and SMILES, processing molecule structures, and comparing molecules, with MCP compatibility.
    4
    MIT

View all related MCP servers

Related MCP Connectors

  • PubChem MCP — NIH chemistry compound database (no auth)

  • Search PubChem compounds, properties, safety data, bioactivity, and cross-references.

  • Science MCP — free science data APIs

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Fishquito7/pubchem-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server