PubChem MCP Server

$git clone [project repository URL] && cd [project directory] && pip install .
README.md

Extracts basic chemical information and drug data from the PubChem API.

pubchem mcp server

the mcp is used to extract the drug basic chemical infomation from pubchem API.

Requirements

  • Python 3.10
  • python-dotenv
  • requests
  • mcp
  • uvicorn

Installation

Install the dependencies(local):

  • Install directly from the project directory
git clone [project repository URL]
cd [project directory]
pip install .

Configure servers(pypi):

The servers_config.json follows the same structure as Claude Desktop, allowing for easy integration of multiple servers. Here's an example:

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

the result of this MCP

{
  "Drug Name": "Aspirin",
  "CAS Number": "50-78-2",
  "Molecular Weight": 180.16,
  "Molecular Formula": "C9H8O4",
  "SMILES": "CC(=O)OC1=CC=CC=C1C(=O)O",
  "Synonyms": [
    "2-(Acetyloxy)benzoic Acid",
    "Acetylsalicylic Acid",
    "Acetysal",
    "Acylpyrin",
    "Aloxiprimum",
    "Aspirin",
    "Colfarit",
    "Dispril",
    "Easprin"
  ],
  "InchI Key": "BSYNRYMUTXBXSQ-UHFFFAOYSA-N",
  "IUPAC Name": "2-acetyloxybenzoic acid",
  "ATC Code": "N02BA01",
  "Details Link": "https://pubchem.ncbi.nlm.nih.gov/compound/2244"
}

Tools (1)

get_drug_infoExtract drug basic chemical information from PubChem API including SMILES, IUPAC names, and molecular formulas.

Configuration

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

Try it

Find the chemical information for Aspirin.
What is the SMILES string and IUPAC name for Ibuprofen?
Get the molecular weight and CAS number for Caffeine from PubChem.
Show me the synonyms and ATC code for Metformin.

Frequently Asked Questions

What are the key features of PubChem MCP Server?

Extracts molecular details including SMILES and IUPAC names.. Retrieves molecular formulas and molecular weights.. Provides CAS numbers and ATC codes for drugs.. Fetches lists of synonyms and direct PubChem detail links..

What can I use PubChem MCP Server for?

Researchers looking for standardized chemical identifiers like InChI Keys.. Pharmacologists needing to verify drug synonyms and ATC classifications.. Developers building chemistry-aware AI assistants that require real-time molecular data.. Students looking for accurate molecular formulas and weights for chemical compounds..

How do I install PubChem MCP Server?

Install PubChem MCP Server by running: git clone [project repository URL] && cd [project directory] && pip install .

What MCP clients work with PubChem MCP Server?

PubChem MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Use PubChem MCP Server with Conare

Manage MCP servers visually, upload persistent context, and never start from zero with Claude Code & Codex.

Try Free