Fetch and retrieve full-text or abstracts of open-access articles from PubMed Central by journal, year, or PMCID using NCBI's public APIs without an API key.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install pmc-harvest或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install pmc-harvest⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/pmc-harvest/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: pmc-harvest description: Fetch articles from PubMed Central using NCBI APIs. Search journals, retrieve full text via OAI-PMH, batch harvest for RAG pipelines. No API key required. version: 1.0.0 author: Ania metadata: clawdbot: emoji: "📚" requires: bins: ["node"] ---
Fetch full-text articles from PubMed Central using official NCBI APIs.
# Search a journal
node {baseDir}/scripts/pmc-harvest.js --search "J Stroke[journal]" --year 2025
# Fetch full text for a specific article
node {baseDir}/scripts/pmc-harvest.js --fetch PMC12345678
# Batch harvest from multiple journals
node {baseDir}/scripts/pmc-harvest.js --harvest journals.json --year 2025
# Test with known journals
node {baseDir}/scripts/pmc-harvest.js --test
| Flag | Description | |------|-------------| | --search | PMC search query (use journal[name] format) | | --year | Filter by publication year | | --max | Max results (default: 100) | | --fetch | Fetch full text for specific PMCID | | --harvest | Batch harvest from JSON journal list | | --test | Run test with sample journals |
const pmc = require('{baseDir}/lib/api.js');
// Search
const { count, pmcids } = await pmc.searchJournal('"J Stroke"[journal]', { year: 2025 });
// Get summaries
const summaries = await pmc.getSummaries(pmcids);
// Fetch full text
const { available, xml, reason } = await pmc.fetchFullText('PMC12345678');
// Parse JATS XML
const { title, abstract, body } = pmc.parseJATS(xml);
// Fetch abstract only (lightweight)
const { title, abstract } = await pmc.fetchAbstract('PMC12345678');
const queries = {
'Stroke': '"Stroke"[journal]',
'Journal of Stroke': '"J Stroke"[journal]',
'Stroke & Vascular Neurology': '"Stroke Vasc Neurol"[journal]',
'European Stroke Journal': '"Eur Stroke J"[journal]',
'BMC Neurology': '"BMC Neurol"[journal]'
};
This skill wraps NCBI's official APIs:
https://eutils.ncbi.nlm.nih.gov/entrez/eutils - esearch.fcgi — Search PMC - esummary.fcgi — Get article metadata
https://pmc.ncbi.nlm.nih.gov/api/oai/v1/mh - GetRecord — Fetch full text XML
Full docs: https://www.ncbi.nlm.nih.gov/books/NBK25501/
安装 PMC Harvest 后,可以对 AI 说这些话来触发它
Help me get started with PMC Harvest
Explains what PMC Harvest does, walks through the setup, and runs a quick demo based on your current project
Use PMC Harvest to fetch and retrieve full-text or abstracts of open-access articles f...
Invokes PMC Harvest with the right parameters and returns the result directly in the conversation
What can I do with PMC Harvest in my data & analytics workflow?
Lists the top use cases for PMC Harvest, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/pmc-harvest/ 目录(个人级,所有项目可用),或 .claude/skills/pmc-harvest/(项目级)。重启 AI 客户端后,用 /pmc-harvest 主动调用,或让 AI 根据上下文自动发现并使用。
PMC Harvest 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
PMC Harvest 可免费安装使用。请查阅仓库了解许可证信息。
Fetch and retrieve full-text or abstracts of open-access articles from PubMed Central by journal, year, or PMCID using NCBI's public APIs without an API key.
PMC Harvest 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my data & analytics tasks using PMC Harvest
Identifies repetitive steps in your workflow and sets up PMC Harvest to handle them automatically