MCP.so
登录

PubChem MCP Server

@PhelanShao

基本信息

分类

其他

传输方式

stdio

作者

PhelanShao

关于 PubChem MCP Server

Enables large language models to correctly query molecular databases and generate structure files

PubChem MCP Server 配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

PubChem MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is PubChem MCP Server?

PubChem MCP Server is a Python implementation of a Model Context Protocol (MCP) server that allows AI models to query chemical compound information from the PubChem database. It provides easy access to compound properties, 2D structures, and 3D molecular coordinates through a standard MCP interface.

How to use PubChem MCP Server?

Install from source with pip install -e . (optionally pip install -e ".[rdkit]" for enhanced 3D handling). Configure the server in your MCP settings file by providing the path to mcp_server.py and listing the tools get_pubchem_data and download_structure under autoApprove. Then invoke the tools by passing a compound name or PubChem CID as the query parameter.

Key features of PubChem MCP Server

  • Query compounds by name or PubChem CID
  • Retrieve IUPAC name, molecular formula, weight, SMILES, InChI, InChIKey
  • Output in JSON (default), CSV, or XYZ (3D) format
  • Built-in in-memory caching for API responses
  • Automatic retry mechanism for API reliability
  • Fallback 3D structure generation if PubChem 3D unavailable

Use cases of PubChem MCP Server

  • Query chemical compound properties directly from an AI assistant
  • Retrieve standard identifiers (SMILES, InChI, InChIKey) for cheminformatics workflows
  • Download structure files (SDF, MOL, SMI) for a given PubChem CID
  • Obtain 3D molecular coordinates for visualization or modeling
  • Integrate chemical data lookup into automated research pipelines

常见问题

1

What are the runtime requirements?

Python 3.8+ and the Requests library are required. RDKit is optional but recommended for enhanced 3D structure handling.

2

What output formats are supported?

The `get_pubchem_data` tool supports JSON, CSV, and XYZ (3D) output. The `download_structure` tool supports SDF, MOL, and SMI file formats.

3

How does caching work?

API responses are cached in memory for faster repeat queries. 3D structure data is persisted on disk in `~/.pubchem-mcp/cache/`.

4

How do I configure the server for use with an AI model?

Add an entry to your MCP configuration file with `command: "python3"`, `args: ["/path/to/mcp_server.py"]`, and list `get_pubchem_data` and `download_structure` under `autoApprove`.

5

What happens if 3D structure data is not available from PubChem?

The server includes a fallback that generates a 3D structure locally when PubChem itself does not provide one.

评论

其他 分类下的更多 MCP 服务器