
一个全面的模型上下文协议(MCP)服务器,用于访问PubChem化学数据库。该服务器提供了超过1.1亿种化学化合物的访问权限,包括广泛的分子属性、生物测定数据和化学信息学工具。
通过URI模式访问PubChem数据:
pubchem://compound/{cid} - 完整的化合物数据pubchem://structure/{cid} - 二维/三维结构信息pubchem://properties/{cid} - 分子性质pubchem://bioassay/{aid} - 生物测定数据pubchem://similarity/{smiles} - 相似性搜索结果pubchem://safety/{cid} - 安全性和毒性数据# 克隆或创建服务器目录
cd pubchem-server
# 安装依赖
npm install
# 构建服务器
npm run build
# 运行服务器
npm start
// 按名称搜索化合物
{
"tool": "search_compounds",
"arguments": {
"query": "阿司匹林",
"max_records": 10
}
}
// 获取详细的化合物信息
{
"tool": "get_compound_info",
"arguments": {
"cid": 2244
}
}
// 查找相似化合物
{
"tool": "search_similar_compounds",
"arguments": {
"smiles": "CC(=O)OC1=CC=CC=C1C(=O)O",
"threshold": 85,
"max_records": 50
}
}
// 分析分子性质
{
"tool": "get_compound_properties",
"arguments": {
"cid": 2244,
"properties": ["MolecularWeight", "XLogP", "TPSA"]
}
}
// 获取生物测定信息
{
"tool": "get_assay_info",
"arguments": {
"aid": 1159607
}
}
// 按目标搜索化合物
{
"tool": "search_by_target",
"arguments": {
"target": "环氧化酶",
"max_records": 100
}
}
// 获取安全分类
{
"tool": "get_safety_data",
"arguments": {
"cid": 2244
}
}
// 处理多个化合物
{
"tool": "batch_compound_lookup",
"arguments": {
"cids": [2244, 5090, 3672],
"operation": "property"
}
}
此PubChem服务器完美地与其他化学/生物数据库集成:
1. 目标发现:UniProt → STRING → AlphaFold
2. 化学发现:PubChem ← → ChEMBL
3. 完整工作流:蛋白质 → 结构 → 交互 → 小分子 → 生物活性
PubChem API指南:
服务器包括全面的错误处理:
此服务器使用:
MIT许可证 - 详情见LICENSE文件。
对于以下问题:
// 1. 搜索抗炎化合物
{
"tool": "search_compounds",
"arguments": {
"query": "抗炎",
"max_records": 100
}
}
// 2. 分析药物相似性
{
"tool": "assess_drug_likeness",
"arguments": {
"cid": 2244
}
}
// 3. 检查安全性概况
{
"tool": "get_safety_data",
"arguments": {
"cid": 2244
}
}
// 4. 查找生物活性数据
{
"tool": "search_by_target",
"arguments": {
"target": "COX-2",
"activity_type": "IC50"
}
}
// 1. 查找相似化合物
{
"tool": "search_similar_compounds",
"arguments": {
"smiles": "your_query_smiles",
"threshold": 90
}
}
// 2. 比较分子性质
{
"tool": "batch_compound_lookup",
"arguments": {
"cids": [1234, 5678, 9012],
"operation": "property"
}
}
// 3. 分析结构特征
{
"tool": "analyze_stereochemistry",
"arguments": {
"cid": 1234
}
}
服务器采用模块化架构:
这使其成为最全面的化学信息学MCP服务器!
如果您在研究或出版物中使用了该项目,请按如下方式引用:
author = {Moudather Chelbi},
title = {PubChem MCP Server},
year = {2025},
howpublished = {https://github.com/Augmented-Nature/PubChem-MCP-Server},
note = {访问日期:2025-06-29}