Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

pmc-oai-api

Skill by brycewang-stanford

Explains how to harvest article metadata from PubMed Central through its OAI-PMH service. It covers the ListRecords, GetRecord and ListSets calls for researchers, librarians and text mining teams.

  • Score 73
  • 5.1k stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install pmc-oai-api

Built from the published package, never by AI.

git clone --depth 1 https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills /tmp/Auto-Empirical-Research-Skills && mkdir -p ~/.claude/skills && cp -r /tmp/Auto-Empirical-Research-Skills/skills/43-wentorai-research-plugins/skills/literature/fulltext/pmc-oai-api ~/.claude/skills/pmc-oai-api

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install pmc-oai-api in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This guide describes the PubMed Central (PMC) OAI-PMH service, which provides a standard HTTP interface for harvesting article metadata from the PMC full-text archive run by the U.S. National Library of Medicine. It covers three endpoints: ListRecords for bulk harvesting with optional date and set filters, GetRecord for a single article by its OAI identifier, and ListSets for discovering available collections. Requests use plain HTTP GET, and responses are XML with pagination through resumption tokens.

No API key or registration is required, but users should follow NCBI usage guidelines and stay within the rate limit of 3 requests per second. The guide includes Python examples for incremental harvesting and building a local search index. It is aimed at biomedical researchers, systematic reviewers, bioinformaticians, medical librarians and text mining specialists.

Written from the project's SKILL.md and checked against it.

What it can do

  • ListRecordsHarvests article metadata in bulk, with optional date range and set filters.
  • GetRecordRetrieves the full metadata record for one PMC article by its OAI identifier.
  • ListSetsLists the available sets, such as journals and open-access subsets, used to filter harvests.

What you need

  • Python with the requests library (for the Python examples)
  • curl (for the command-line examples)

Try asking

  • Harvest PMC metadata records from June 2024 in Dublin Core format
  • Get the OAI record for PMC article 7096803 with its title and authors
  • List the available PMC journal sets I can filter my harvest by

Good to know

  • Rate limit of 3 requests per second; excess requests may cause temporary IP blocking.
  • NCBI asks users to identify themselves with an email address or an NCBI API key.
  • Bulk harvesting should use resumptionToken pagination rather than parallel requests.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/43-wentorai-research-plugins/skills/literature/fulltext/pmc-oai-api/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to pmc-oai-api

All alternatives →

Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database

pmc-oai-api: common questions

Does the PMC OAI-PMH service need an API key?

No. The source says the service is freely accessible without any API key, token or registration. NCBI does ask users to include an email address or register for an API key.

What metadata formats does PMC OAI-PMH support?

The source lists oai_dc, pmc and pmc_fm as values for the metadataPrefix parameter.

How many requests can I send per second?

The source sets a limit of 3 requests per second across NCBI E-utilities and OAI services. It says an NCBI API key allows up to 10 requests per second.

How do I install pmc-oai-api?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is pmc-oai-api free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is pmc-oai-api safe to use?

It scores 73 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to pmc-oai-api?

Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.

pmc-oai-api Install

Add to stack

Loading.