Skip to main content
Glama

PubMed MCP 服务器

用于访问 PubMed 数据的 MCP 服务器实现,重点关注开放访问内容。

特征

  • 在 PubMed 数据库中搜索研究文章

  • 开放获取内容筛选器

  • 获取详细的文章信息,包括摘要

  • 查找可用的免费全文链接

  • 内置速率限制,确保 API 合规

Related MCP server: MCP PubMed Search

安装

npm install @rikachu225/pubmed-server

用法

import PubMedServer from '@rikachu225/pubmed-server'; // Search for recent open access papers const results = await PubMedServer.getLatestOpenAccess({ topic: 'machine learning', days: 30, maxResults: 10 }); // Basic search with options const searchResults = await PubMedServer.search({ query: 'cancer treatment', maxResults: 20, sort: 'relevance', filterOpenAccess: true });

API 参考

搜索(选项)

根据指定条件搜索文章

  • query :搜索词

  • maxResults :最大结果数(默认值:10)

  • sort :排序顺序('相关性'或'日期')

  • filterOpenAccess :是否过滤开放访问内容(默认值:true)

getLatestOpenAccess(选项)

获取最近的开放获取论文

  • topic :搜索主题

  • days :回顾的天数(默认值:30)

  • maxResults :最大结果数(默认值:10)

获取OpenAccessLinks(pmid)

获取文章的免费全文链接

  • pmid :文章的 PubMed ID

速率限制

服务器实施自动速率限制以符合 NCBI 的指导方针(每秒最多 3 个请求)。

执照

麻省理工学院

mcp-pubmed-服务器

-
security - not tested
-
license - not tested
-
quality - not tested

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rikachu225/mcp-pubmed-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server