MCPSERV.CLUB
PhelanShao

PubChem MCP Server

MCP Server

AI‑powered chemical data retrieval from PubChem

Stale(55)
3stars
0views
Updated May 15, 2025

About

A Python MCP server that lets AI models query compound properties, 2D/3D structures, and download files from PubChem via a standard interface. It supports JSON, CSV, XYZ outputs with caching and retry logic.

Capabilities

Resources
Access data sources
Tools
Execute functions
Prompts
Pre-built templates
Sampling
AI model interactions

PubChem MCP Server Badge

PubChem MCP Server bridges the gap between AI assistants and the vast chemical knowledge housed in PubChem. By exposing a Model Context Protocol (MCP) interface, it lets models such as Claude query compound data without writing custom API wrappers or handling authentication. The server turns a simple text prompt into structured chemical information—molecular formulas, SMILES strings, InChI keys, and even 3D coordinates—ready for downstream tasks like visualization, property prediction, or drug‑design workflows.

For developers building AI‑powered chemistry tools, this server offers a turnkey solution. Instead of integrating with the RESTful PubChem API directly, an AI model can invoke two high‑level MCP tools: and . The former fetches comprehensive metadata in JSON, CSV, or XYZ format, while the latter retrieves downloadable structure files (SDF, MOL, SMILES). Because these tools are auto‑approved in the MCP configuration, developers can embed them into conversational agents with minimal friction, enabling instant chemical queries within chat or automated pipelines.

Key capabilities include:

  • Flexible querying by compound name or PubChem CID, allowing natural language inputs to resolve automatically.
  • Rich data output: IUPAC names, molecular formulas, weights, SMILES, InChI, and InChIKey.
  • Multiple formats: JSON for programmatic use, CSV for spreadsheets, XYZ for 3D visualization.
  • Built‑in caching and retry logic that reduce latency and increase reliability, especially important for large batch requests.
  • 3D fallback generation using RDKit when PubChem’s 3D data is missing, ensuring that visual and structural analyses can proceed without interruption.

Real‑world scenarios benefit from this integration: a medicinal chemist could ask an AI assistant for the 3D coordinates of a lead compound and receive an XYZ file instantly; a data scientist might batch‑download SDF files for machine‑learning training; or an educational platform could provide interactive visualizations of user‑searched molecules. In each case, the MCP server eliminates boilerplate code and centralizes data access, allowing developers to focus on higher‑level logic.

By embedding PubChem’s extensive database into the MCP ecosystem, this server offers a scalable, reliable, and developer‑friendly pathway for AI assistants to unlock chemical intelligence—making it an indispensable component of modern computational chemistry and drug‑discovery pipelines.