跳到正文
cccskills
免费在 GitHub 公开

pubmed

Search PubMed/PMC medical literature via MCP server. Use for literature search, retrieving abstracts, full-text articles, and citation analysis. Supports MeSH terms, batch fetching, PDF downloads, and RIS export.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(3)

  • SKILL.md3.2 KB
  • README.md4.4 KB
  • references/query-syntax.md1.5 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

PubMed Search Skill

Direct PubMed/PMC API access via web_fetch. No dependencies required.

API Endpoints

FunctionEndpoint
Searcheutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi
Summaryeutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi
Fetcheutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi
Similareutils.ncbi.nlm.nih.gov/entrez/eutils/elink.fcgi
Citationsicite.od.nih.gov/api/pubs
PMC Full Textwww.ncbi.nlm.nih.gov/pmc/utils/oa/oa.fcgi

1. Search (with Sort)

https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=QUERY&retmax=20&retmode=json&sort=SORT

Sort options:

  • sort=relevance — Best Match (ML-based, default)
  • sort=pub_date — Most Recent

Example:

?db=pubmed&term=gastric+cancer[mh]+AND+artificial+intelligence[mh]&retmax=10&retmode=json&sort=pub_date

Returns: idlist (PMIDs), count, querytranslation

2. Get Summaries (titles, authors, PMCID)

https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi?db=pubmed&id=PMID1,PMID2&retmode=json

Returns: title, authors, journal, pubdate, pmcid (if available)

3. Fetch Abstracts

https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id=PMID1,PMID2&rettype=abstract&retmode=xml

Returns: Full abstract XML with all metadata

4. Count Only (fast)

https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=QUERY&retmax=0&retmode=json

Use retmax=0 for fast count without retrieving IDs.

5. Find Similar Articles

https://eutils.ncbi.nlm.nih.gov/entrez/eutils/elink.fcgi?dbfrom=pubmed&db=pubmed&id=PMID&cmd=neighbor_score&retmode=json

Returns related articles ranked by similarity score.

6. Citation Counts (iCite)

https://icite.od.nih.gov/api/pubs?pmids=PMID1,PMID2,PMID3

Returns: citation_count, relative_citation_ratio, nih_percentile, etc.

7. PMC Full Text / PDF URLs

https://www.ncbi.nlm.nih.gov/pmc/utils/oa/oa.fcgi?id=PMCID

Returns OA article links including PDF URLs.

8. RIS Export

https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id=PMID1,PMID2&rettype=medline&retmode=text

Returns MEDLINE format (convertible to RIS).

Query Syntax

See references/query-syntax.md for MeSH terms and search fields.

Workflow Example

# 1. Search with relevance sort
search = web_fetch("...esearch.fcgi?term=gastric+cancer+AI&sort=relevance&retmax=20")
pmids = search["idlist"]

# 2. Get summaries
summaries = web_fetch(f"...esummary.fcgi?id={','.join(pmids)}")

# 3. Fetch abstracts for top hits
abstracts = web_fetch(f"...efetch.fcgi?id={pmids[0]},{pmids[1]}&rettype=abstract")

# 4. Get citation counts
citations = web_fetch(f"https://icite.od.nih.gov/api/pubs?pmids={','.join(pmids)}")

Rate Limits

  • Without API key: 3 req/s
  • With API key: 10 req/s (add &api_key=KEY)
  • Respect 1 second between calls

Get API key: https://www.ncbi.nlm.nih.gov/account/settings/

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

报告此技能的问题