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

mining-pubmed-literature

Skill by maziyarpanahi

Searches PubMed and PMC through NCBI E-utilities and fetches abstracts, metadata, and full text for biomedical evidence. Built for researchers who need citations, abstracts, or literature corpora for NER.

  • Score 79
  • 5.9k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install mining-pubmed-literature

Built from the published package, never by AI.

git clone --depth 1 https://github.com/maziyarpanahi/openmed /tmp/openmed && mkdir -p ~/.claude/skills && cp -r /tmp/openmed/skills/mining-pubmed-literature ~/.claude/skills/mining-pubmed-literature

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

Step-by-step: install mining-pubmed-literature in Claude Code

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

About

Mining PubMed & PMC literature is an agent skill that searches and fetches PubMed and PMC records through NCBI E-utilities. The core pattern is ESearch to get matching PMIDs, then EFetch or ESummary to download abstracts or metadata. It can also build text corpora for biomedical NER.

The skill includes Python and cURL examples and uses the Entrez History server to chain searches and fetches. It describes pairing with OpenMed: extracted diagnoses, drugs, or genes can become search terms, and fetched abstracts can be passed to openmed.analyze_text. E-utilities are public and need no key, though a free API key raises the rate limit from 3 to 10 requests per second. The skill is licensed under Apache-2.0.

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

What it can do

  • ESearchFinds matching PubMed record IDs (PMIDs) and stores results on the Entrez History server.
  • EFetchDownloads PubMed abstracts as text or XML using stored results or ID lists.
  • ESummaryReturns structured metadata such as title, date, source, and authors as JSON.
  • MeSH-based queriesBuilds reproducible searches with MeSH terms, [tiab], [au], and [pdat] field tags.
  • PMC full textRetrieves PMC articles as JATS XML, with a note to check each article's license.
  • Corpus buildingBatch-fetches abstracts and stores PMID, title, journal, date, and abstract text.
  • OpenMed hand-offTurns OpenMed-extracted terms into searches and sends abstracts to openmed.analyze_text.

What you need

  • Python with the requests library (used in the examples)
  • Optional free NCBI API key for 10 requests per second

Try asking

  • Find recent papers on metformin for type 2 diabetes and list the citations
  • Fetch PubMed abstracts for this search and summarize the main findings
  • Build a PubMed corpus on these gene symbols for biomedical NER

Good to know

  • Without an API key, NCBI allows 3 requests per second; with a key, 10.
  • EFetch returns text or XML for PubMed, not JSON.
  • WebEnv and query_key are session-scoped and expire, so fetch soon after searching.
  • PMC full text carries per-article licenses and many are not redistributable.

Security check

A

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

Checked automatically: skills/mining-pubmed-literature/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md7 KB

Alternatives to mining-pubmed-literature

All alternatives →

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

mining-pubmed-literature: common questions

Does mining PubMed literature need an NCBI API key?

No. E-utilities are public and no key is required. A free API key raises the limit from 3 to 10 requests per second and is recommended for batch work.

Can this skill fetch full-text articles from PMC?

The source describes repeating the query with db=pmc and fetching JATS XML. Users should check each article's license before redistributing full text.

How does it work with OpenMed?

OpenMed-extracted diagnoses, drugs, or genes can become ESearch terms, and fetched abstracts can be passed to openmed.analyze_text for NER.

How do I install mining-pubmed-literature?

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

Is mining-pubmed-literature free?

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

Is mining-pubmed-literature safe to use?

It scores 79 of 100. Grades: maintenance A, licence A, 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 mining-pubmed-literature?

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

mining-pubmed-literature Install

Add to stack

Loading.