PubMed MCP Server
Enables AI agents to search and read PubMed academic literature directly, without requiring an NCBI API key.
README
PubMed MCP Server
中文
PubMed 文献检索 MCP 服务器,基于 Model Context Protocol 构建,让 AI Agent 直接搜索和阅读 PubMed 学术文献。
无需 NCBI API Key,直接爬取 PubMed 公开网页接口。
使用方式
将本仓库 Git 地址发送给你的 Agent:
https://github.com/wjixiang/pubmed-mcp.git
Agent 会自动克隆、安装依赖、构建并启动 MCP 服务器。
MCP 配置示例
构建完成后,在 Claude Desktop 等 MCP 客户端中配置:
{
"mcpServers": {
"pubmed": {
"command": "node",
"args": ["/path/to/pubmed-mcp/dist/mcp/index.js"]
}
}
}
能力
Tools(Agent 可调用的工具)
| 工具 | 说明 |
|---|---|
pubmed_search |
按关键词搜索 PubMed,支持日期范围、文章类型过滤、排序、分页 |
pubmed_article_detail |
按 PMID 获取完整文章记录(作者、摘要、MeSH、参考文献等) |
Resources(可读取的数据资源)
| URI 模板 | 说明 |
|---|---|
pubmed://article/{pmid} |
以文本形式提供文章详情 |
Prompts(预设提示模板)
| 名称 | 说明 |
|---|---|
literature_review |
引导 Agent 对指定主题进行结构化文献综述 |
article_summary |
引导 Agent 总结指定文章 |
开发
pnpm install
pnpm build # 构建库 + MCP 服务器
pnpm start:mcp # 启动 MCP 服务器
pnpm type-check # TypeScript 类型检查
pnpm test:run # 运行全部测试
pnpm test:e2e # E2E 测试(需要网络,访问真实 PubMed)
English
An MCP server for PubMed literature retrieval, built on Model Context Protocol. Enables AI Agents to directly search and read PubMed academic literature.
No NCBI API Key required — scrapes the public PubMed web interface directly.
Usage
Send this repository's Git URL to your Agent:
https://github.com/wjixiang/pubmed-mcp.git
The Agent will automatically clone, install dependencies, build, and launch the MCP server.
MCP Configuration Example
After building, configure in Claude Desktop or other MCP clients:
{
"mcpServers": {
"pubmed": {
"command": "node",
"args": ["/path/to/pubmed-mcp/dist/mcp/index.js"]
}
}
}
Capabilities
Tools (callable by Agent)
| Tool | Description |
|---|---|
pubmed_search |
Search PubMed by keyword, with date range filters, publication type filters, sorting, and pagination |
pubmed_article_detail |
Fetch full article record by PMID — authors, abstract, MeSH terms, references, and more |
Resources (readable data)
| URI Template | Description |
|---|---|
pubmed://article/{pmid} |
Article details as plain text |
Prompts (pre-built templates)
| Name | Description |
|---|---|
literature_review |
Guide the Agent to conduct a structured literature review on a given topic |
article_summary |
Guide the Agent to summarize a specific article |
Development
pnpm install
pnpm build # Build library + MCP server
pnpm start:mcp # Start MCP server
pnpm type-check # TypeScript type checking
pnpm test:run # Run all tests
pnpm test:e2e # E2E tests (requires network, hits live PubMed)
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。