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

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.

  • Score 64
  • 91 stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-cli

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

Step-by-step: install pubmed-cli in Claude Code

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

A

No 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 →

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.

pubmed-cli Install

Add to stack

Loading.