SP

sssjiang/pubchem_mcp_server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

11 stars 4 forks 质量 50 趋势 18

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

概览

the mcp is used to extract the drug basic chemical infomation from pubchem API. - Python 3.10 - python-dotenv - requests - mcp - uvicorn - Install directly from the project directory The servers_config.json follows the same structure as Claude Desktop, allowing for easy integration of multiple servers. Here's an example:

README

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"
}
在 GitHub 查看完整 README

安装

uvx pubchem_mcp_server
新手?先看 mcpskill.org 教程 →

配置

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