PubChem MCP Server

MCP server for retrieving basic chemical information about drugs from the PubChem API, providing comprehensive molecular data including formulas, weights, and chemical identifiers.

Get this MCP server

MCP server for retrieving basic chemical information about drugs from the PubChem API, providing comprehensive molecular data including formulas, weights, and chemical identifiers.

Installation

From Source Code

git clone [project repository URL]
cd [project directory]
pip install .

UVX

uvx pubchem_mcp_server

Configuration

servers_config.json

{
  "mcpServers": {
    "pubchem": {
      "command": "uvx",
      "args": ["pubchem_mcp_server"]
    }
  }
}

Features

  • Retrieve basic chemical information about drugs from the PubChem API
  • Obtain CAS numbers and molecular weights
  • Get molecular formulas and SMILES notation
  • Retrieve drug synonyms and alternative names
  • Access InChI keys and IUPAC names
  • Obtain ATC codes for drug classification
  • Provide direct links to PubChem compound pages

Notes

Requires Python 3.10 and dependencies: python-dotenv, requests, mcp, uvicorn. Example output demonstrates comprehensive drug information for aspirin, including molecular data and synonyms.

Comments (0)

Sign In Sign in to leave a comment.