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

Skill by langchain-samples

Gives an AI assistant instructions for searching PubMed and PubMed Central and fetching records, abstracts and full text. Written for researchers and assistants doing biomedical literature work.

  • Score 64
  • 42 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install pubmed

Built from the published package, never by AI.

git clone --depth 1 https://github.com/langchain-samples/deep-life-sci /tmp/deep-life-sci && mkdir -p ~/.claude/skills && cp -r /tmp/deep-life-sci/deep_life_sci/skills/pubmed ~/.claude/skills/pubmed

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

Step-by-step: install pubmed in Claude Code

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

About

This skill is a set of instructions for using PubMed and PubMed Central tools. It explains how to probe a search with a zero-record count, how to use field tags such as [tiab], [mh] and [pt], and how to check query translations and warnings before trusting results. It also covers fetching abstracts in one batch and flagging retracted papers.

It describes a staged approach to full text. The assistant triages papers with pmcLocate, reads one section at a time with fetchFullText, and uses figure captions before staging images with fetchFigures. Supplementary spreadsheets are read with Python and pandas. It is aimed at researchers and assistants who run literature searches and need to check sources carefully.

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

What it can do

  • pubmedSearchSearches PubMed and returns counts, query translations, warnings and matching records.
  • fetchAbstractsFetches abstracts in one batch, with structured section labels and retraction status.
  • pmcLocateLists sections, figures, tables and supplementary files for PMC papers, with full captions.
  • fetchFullTextRetrieves full text for selected PMC papers, optionally limited to named sections.
  • fetchFiguresStages figure images into the sandbox and returns file paths for image analysis.
  • fetchSupplementaryStages supplementary files, such as spreadsheets, into the sandbox for Python analysis.

What you need

  • Access to the PubMed and PMC tools described in the skill
  • Python 3 with pandas for reading supplementary spreadsheets
  • A sandbox with writeFile and execute tools
  • Subagents full-text-analyst and figure-analyst for delegated reading

Try asking

  • Search PubMed for base editing papers on liver and show the query translation
  • Fetch abstracts for these PMIDs and flag any retracted papers
  • Find PMC full text on methods used in these trials

Good to know

  • Untagged search terms match broadly, and malformed queries are silently rewritten
  • About 40% of papers with full text cannot be redistributed, so their figures are not copied
  • One paper's full text can exceed the eval result limit
  • Figures over 500 KB cannot be read in the sandbox

Security check

A

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

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

Alternatives to pubmed

All alternatives →

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

pubmed: common questions

How do I avoid irrelevant PubMed results?

The skill recommends tagging terms with fields such as [tiab] or [mh] and probing with retmax 0. It also says to check warnings and query_translation before trusting the count.

Does it show retracted papers?

Yes, fetchAbstracts sets retracted to true for retracted papers. The skill says to always tell the user when a cited paper is retracted.

Can it read full text from PubMed Central?

The source says about half of PubMed papers have full text in PMC. The skill describes triage with pmcLocate and section-level reads with fetchFullText.

How do I install pubmed?

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

Is pubmed free?

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

Is pubmed safe to use?

It scores 64 of 100. Grades: maintenance A, licence A, quality C. 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?

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

pubmed Install

Add to stack

Loading.