pubmed-cli
Skill by drpedapati
Searches PubMed, fetches article metadata by PMID, traverses citation graphs and looks up MeSH terms from the command line. It is built for researchers and AI agents running literature reviews.
Install pubmed-cli
Built from the published package, never by AI.
git clone --depth 1 https://github.com/drpedapati/sciclaw /tmp/sciclaw && mkdir -p ~/.claude/skills && cp -r /tmp/sciclaw/skills/pubmed-cli ~/.claude/skills/pubmed-cliRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/drpedapati/sciclaw /tmp/sciclaw && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/sciclaw/skills/pubmed-cli ~/.gemini/antigravity-cli/skills/pubmed-cliAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
pubmed-cli is a command-line tool for searching PubMed, fetching article details by PMID, and traversing citation graphs. It can list papers that cite a given article, papers that a given article cites, and related articles with relevance scores. It also looks up MeSH vocabulary, including tree numbers and scope notes.
Commands can output structured JSON for agent use, rich terminal tables, CSV, or RIS citations for Zotero, EndNote and Mendeley. The source describes it as built for humans and AI agents. It suits researchers running systematic literature searches and reproducible review workflows. An optional NCBI API key raises the rate limit from 3 to 10 requests per second.
Written from the project's SKILL.md and checked against it.
What it can do
- searchQueries PubMed with Boolean, MeSH, field tag and wildcard syntax.
- fetchReturns article details by PMID, including abstract, authors, DOI and MeSH terms.
- cited-byLists PMIDs of papers that cite a given article.
- referencesLists PMIDs of papers that a given article cites.
- relatedLists similar articles with relevance scores.
- meshLooks up MeSH terms with scope notes, tree numbers and entry terms.
- --risExports fetched citations in RIS format for reference managers.
What you need
- Homebrew, to install via the sciclaw-pubmed-cli formula
- NCBI API key (optional, recommended for higher rate limits)
Try asking
- Search PubMed for recent reviews on fragile X syndrome
- Find papers that cite PMID 38000001
- Export PMIDs 38000001 and 38000002 as RIS for Zotero
Good to know
- Without an API key, requests are limited to 3 per second.
- Search returns 20 results by default unless --limit is set.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/pubmed-cli/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to pubmed-cli
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
pubmed-cli: common questions
Does pubmed-cli need an NCBI API key?
The source says a key is recommended but does not state it is required. With a key, the rate limit rises from 3 to 10 requests per second.
What output formats does pubmed-cli support?
It supports JSON, rich terminal tables, CSV export and RIS citations. The source says to use --json for agent workflows.
How does pubmed-cli find citing papers?
The cited-by command returns PMIDs of papers that cite a given article. The references command returns PMIDs of papers that the article cites.
How do I install pubmed-cli?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pubmed-cli free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is pubmed-cli safe to use?
It scores 64 of 100. Grades: maintenance A, licence F, quality B. 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 pubmed-cli?
Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.
