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"
}

Related in Search - Secure MCP Servers

ServerSummaryActions
Facebook Ads LibraryThis is a Model Context Protocol (MCP) server for the Facebook Ads Library.View
Weather MCP Server一个提供天气预报和城市信息查询功能的Model Context Protocol服务器。该服务器允许LLMs获取未来24小时的天...View
OSRS MCP ServerMCP Server for interacting with the Old School RuneScape (OSRS) Wiki API and data files. This server...View
Semiconductor Supply Chain MCP ServerAn MCP (Model Context Protocol) server that provides structured access to semiconductor industry B2B...View
FetchSERPA Model Context Protocol (MCP) server that exposes the FetchSERP API for SEO, SERP analysis, web scr...View
Java Conferences MCP ServerA Model Call Protocol (MCP) server that provides AI assistants with access to data about Java confer...View