by sssjiang
Extracts basic chemical information of drugs from the PubChem API and returns a structured JSON result.
Retrieves essential drug data such as name, CAS number, molecular weight, formula, SMILES, synonyms, InChI Key, IUPAC name, ATC code and a details link directly from PubChem.
pip install .
.python-dotenv
, requests
, mcp
, uvicorn
) are available.servers_config.json
file following the example provided, then launch it with uvx pubchem_mcp_server
(or the appropriate command defined in the config).uvicorn
/uvx
for fast ASGI serving.Q: Which Python version is required? A: Python 3.10.
Q: How do I add an API key if needed?
A: Include it in the environment variables section of servers_config.json
(e.g., "env": {"API_KEY": "<YOUR_API_KEY>"}
).
Q: Can I run the server on a different port?
A: Yes, pass the desired port to the underlying uvicorn
command when starting the server.
Q: What format is the output? A: A JSON object with fields like Drug Name, CAS Number, Molecular Weight, etc.
the mcp is used to extract the drug basic chemical infomation from pubchem API.
python-dotenv
requests
mcp
uvicorn
Install the dependencies(local):
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"]
}
}
}
{
"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"
}
Please log in to share your review and rating for this MCP.
{ "mcpServers": { "pubchem": { "command": "uvx", "args": [ "pubchem_mcp_server" ] } } }
Explore related MCPs that share similar capabilities and solve comparable challenges
by antvis
Offers over 25 AntV chart types for automated chart generation and data analysis, callable via MCP tools, CLI, HTTP, SSE, or streamable transports.
by reading-plus-ai
A versatile tool that enables interactive data exploration through prompts, CSV loading, and script execution.
by Canner
Provides a semantic engine that lets MCP clients and AI agents query enterprise data with contextual understanding, precise calculations, and built‑in governance.
by surendranb
Provides natural‑language access to Google Analytics 4 data via MCP, exposing over 200 dimensions and metrics for Claude, Cursor and other compatible clients.
by ergut
Provides secure, read‑only access to BigQuery datasets, allowing large language models to query and analyze data through a standardized interface.
by isaacwasserman
Provides an interface for LLMs to visualize data using Vega‑Lite syntax, supporting saving of data tables and rendering visualizations as either a full Vega‑Lite specification (text) or a base64‑encoded PNG image.
by vantage-sh
Fetch and explore cloud cost and usage data from a Vantage account using natural language through AI assistants and MCP clients.
by acryldata
Provides a Model Context Protocol server that enables searching, metadata retrieval, lineage traversal, and SQL query listing for DataHub entities.
by rishijatia
Provides programmatic access to Fantasy Premier League statistics, team information, gameweeks, and analysis tools via a Model Context Protocol server.