一个用来让本地agent利用api高效爬取pubmed论文的mcp工具;第一开发hhx: https://github.com/hhx465453939/mcp-pubmed-server
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"mcp-pubmed-server-pancrpal": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
为 LLM Agent 提供结构化 PubMed 文献数据的 MCP 服务器。Agent 友好的响应模型,专注数据提供,分析交给 LLM。
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in other
MCP server for Spanning Cloud Backup — M365/GWS/Salesforce backups, restores, audit.
AI agent control of 3D printers — 432 tools for OctoPrint, Moonraker, Bambu, Prusa, Elegoo
MCP server for Kaseya Autotask PSA — companies, tickets, projects, time entries, and more.
On-chain provenance lookup for AnchorRegistry. Resolve AR-IDs, hashes, and full trees. Authless.
MCP Security Weekly
Get CVE alerts and security updates for Mcp Pubmed Server Pancrpal and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
为 LLM Agent 提供结构化 PubMed 文献数据的 MCP 服务器。Agent 友好的响应模型,专注数据提供,分析交给 LLM。
LLM Agent <--MCP--> PubMed MCP Server <--API--> PubMed / PMC / Unpaywall
核心能力: 文献搜索 / 智能缓存 / OA 全文下载 / Agentic 响应模型
前置要求: Node.js v18.0.0+
# npm 全局安装
npm install -g mcp-pubmed-llm-server
# 或从源码构建
git clone git@github.com:PancrePal-xiaoyibao/mcp-pubmed-server-pancrpal.git
cd mcp-pubmed-server-pancrpal
npm install && npm run build
cp .env.example .env
编辑 .env:
PUBMED_API_KEY=你的NCBI_API密钥 # 可选,https://www.ncbi.nlm.nih.gov/account/settings/
PUBMED_EMAIL=你的邮箱 # 可选(建议填写)
ABSTRACT_MODE=quick # quick(1500字符) | deep(6000字符)
FULLTEXT_MODE=disabled # disabled | enabled | auto
说明: API Key 和 Email 均非必填。无 Key 时匿名运行(3 次/秒),有 Key 时 10 次/秒。
# npm 包
mcp-pubmed-llm-server
# 或
npx mcp-pubmed-llm-server
# 源码开发
npm run dev
# 源码生产
npm run build && npm start
| 模式 | 适用场景 | 启动方式 |
|---|---|---|
| stdio | 本地 MCP 客户端集成 | npm start(默认) |
| Streamable HTTP | 服务端远程部署 | npm run start:http |
npm start
# 或
node dist/index.js --mode=stdio
npm run start:http
# 或
node dist/index.js --mode=streamableHttp
Docker 部署:
cd docker
cp .env.example .env # 编辑填入配置
docker compose up -d --build
验证:
curl http://localhost:8745/health
# {"status":"ok","mode":"streamableHttp","sessions":0}
端点:
POST /mcp — MCP 协议消息GET /mcp — SSE 事件流DELETE /mcp — 关闭会话GET /health — 健康检查{
"mcpServers": {
"pubmed": {
"command": "npx",
"args": ["-y", "mcp-pubmed-llm-server"],
"env": {
"PUBMED_API_KEY": "你的API密钥(可选)",
"PUBMED_EMAIL": "你的邮箱(可选)",
"ABSTRACT_MODE": "deep",
"FULLTEXT_MODE": "enabled"
}
}
}
}
配置文件位置:
~/Library/Application Support/Claude/claude_desktop_config.json (macOS)~/.claude/config.jsonstdio 模式: 同上配置,type 设为 stdio
streamableHttp 模式: type 设为 streamableHttp,baseUrl 设为 http://<服务器IP>:8745/mcp
| 工具 | 说明 | 关键参数 |
|---|---|---|
pubmed_search | 文献搜索,支持 Boolean/MeSH | query, max_results, days_back, sort_by, format |
pubmed_get_details | 获取 PMID 完整信息(单个或批量) | pmids, format |
pubmed_extract_info | 提取论文关键信息段落 | pmid, sections |
pubmed_find_related | 查找相关/综述文献 | pmid, type, max_results |
| 工具 | 说明 | 关键参数 |
|---|---|---|
pubmed_manage_cache | 缓存统计、清理、清空 | action, target |
FULLTEXT_MODE=enabled)| 工具 | 说明 | 关键参数 |
|---|---|---|
pubmed_detect_fulltext | 检测 OA 状态和全文可用性 | pmid, auto_download |
pubmed_download_fulltext | 下载全文 PDF(单篇或批量) | pmids, force |
pubmed_system_status | 系统环境和 API Key 状态检测 | 无 |
每个工具返回统一的 AgentResponse<T> 结构,为 AI Agent 优化:
{
"status": "success",
"data": { ... },
"metadata": {
"tool": "pubmed_search",
"executionMs": 1234,
"timestamp": "2025-01-01T00:00:00.000Z",
"pagination": { "total": 500, "returned": 20, "hasMore": true }
},
"suggestions": [
{
"tool": "pubmed_get_details",
"reason": "Get full metadata for specific articles of interest.",
... [View full README on GitHub](https://github.com/PancrePal-xiaoyibao/mcp-pubmed-server-pancrpal#readme)