Skip to main content
Glama

PubChem-MCP

An MCP (Model Context Protocol) server for accessing PubChem data. This server provides tools for querying the PubChem database for compounds, substances, bioassays, and related information.

Features

  • Search for compounds by name, structure, or identifier

  • Retrieve detailed information about compounds and substances

  • Access bioassay data and molecular properties

  • Query chemical classifications and cross-references

  • Compatible with any MCP client, including Claude for Desktop

Related MCP server: PubChem MCP Server

Installation

Option 1: From GitHub

# Clone the repository
git clone https://github.com/BioContext/PubChem-MCP.git
cd PubChem-MCP

# Create a virtual environment
uv venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

Option 2: Using pip (Once published)

pip install pubchem-mcp

Usage

Running as a standalone server

# From source
python -m mcp_server

# If installed via pip
pubchem-mcp

Using with Claude for Desktop

  1. Install Claude for Desktop

  2. Configure Claude for Desktop to use this server by editing ~/Library/Application Support/Claude/claude_desktop_config.json (macOS/Linux) or %AppData%\Claude\claude_desktop_config.json (Windows):

{
    "mcpServers": {
        "pubchem": {
            "command": "python",
            "args": [
                "-m",
                "mcp_server"
            ]
        }
    }
}
  1. Restart Claude for Desktop

  2. You can now use the PubChem tools in Claude

Example queries for Claude

  • "Find information about aspirin in PubChem"

  • "What are the properties of compound CID 2244?"

  • "Show me the structure of paracetamol"

Available Tools

  • search_compound: Search for compounds by name or identifier

  • get_compound_details: Get detailed information about a compound

  • get_compound_properties: Get physical and chemical properties of a compound

  • search_bioassay: Search for bioassays

  • get_substance_details: Get detailed information about a substance

  • And more...

Development

# Clone the repository
git clone https://github.com/BioContext/PubChem-MCP.git
cd PubChem-MCP

# Create a virtual environment
uv venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Install development dependencies
pip install -e ".[dev]"

# Run tests
pytest

License

MIT License

F
license - not found
Not graded
quality - not tested
D
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

  • A
    license
    B
    quality
    D
    maintenance
    Enables comprehensive access to PubChem's chemical database with over 110 million compounds. Supports chemical searches, structure analysis, bioactivity data, safety information, and molecular property calculations through 30 specialized tools.
    30
    MIT
  • F
    license
    Not graded
    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
  • A
    license
    A
    quality
    D
    maintenance
    An MCP server that provides access to PubMed and NCBI's biomedical literature database for searching articles, retrieving metadata, and tracking citations. It enables users to explore related research, browse MeSH vocabulary, and find free full-text links.
    6
    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/BioContext/PubChem-MCP'

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