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.
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-literatureRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install mining-pubmed-literature in Claude Code
git clone --depth 1 https://github.com/maziyarpanahi/openmed /tmp/openmed && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/openmed/skills/mining-pubmed-literature ~/.gemini/antigravity-cli/skills/mining-pubmed-literatureAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install mining-pubmed-literature in Antigravity CLI
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
ANo 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 →Searches arXiv for scientific papers and preprints, extracts their metadata and abstracts, and downloads PDF or HTML full text. Suited to users who need research papers, literature or specific arXiv IDs.
Downloads AlphaFold predicted structures and PAE matrices for a UniProt ID, then reports pLDDT confidence, domain boundaries and disorder. Built for users who already have a UniProt accession.
Queries the QuickGO and Evidence & Conclusion Ontology REST API to map genes to Gene Ontology terms. Built for researchers doing functional annotation and GO hierarchy exploration.
Connects an AI assistant to Peloton to browse fitness classes, check live and archived schedules, and manage workouts. Built for Peloton users who want to plan rides from their assistant.
Queries NCBI Gene through the E-utilities and Datasets API. It helps researchers search genes by symbol or ID, retrieve gene details, and run batch lookups for annotation and functional analysis.
Prepares and launches nf-core/pacsomatic runs for matched tumor-normal PacBio HiFi data starting from unaligned BAM files. It generates samplesheets and pinned launch artifacts, then runs locally or submits to a scheduler.
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.
