pubchem-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@pubchem-mcpget properties for aspirin"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.txtAdd 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_pubchemwith{"compound_name": "aspirin"}.Structure image: call
imgwith{"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;
imgalso returns browser-ready URLs.PubChem data should be independently verified before safety-critical, medical, or regulatory use.
This server cannot be deployed
Maintenance
Related MCP Connectors
PubChem MCP — NIH chemistry compound database (no auth)
Search PubChem compounds, properties, safety data, bioactivity, and cross-references.
Link compounds to protein targets, rank bioactivity, and look up drug mechanisms and indications.
NCI CACTUS Chemical Identifier Resolver MCP.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables 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-
- FlicenseNot gradedqualityDmaintenanceAn 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.-
- FlicenseBqualityFmaintenanceExtracts 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.311-
- AlicenseNot gradedqualityDmaintenanceProvides chemical informatics endpoints for converting between chemical names and SMILES, processing molecule structures, and comparing molecules, with MCP compatibility.5MIT