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

Skill by mkurman

Searches PubMed and PubMed Central through a CLI wrapper for NCBI E-utilities. It is for researchers and developers who need biomedical literature and linked database records.

  • Score 75
  • 327 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install pubmed-database

Built from the published package, never by AI.

git clone --depth 1 https://github.com/mkurman/zorai /tmp/zorai && mkdir -p ~/.claude/skills && cp -r /tmp/zorai/skills/scientific-skills-gdm/pubmed_database ~/.claude/skills/pubmed-database

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

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

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

About

PubMed API is an agent skill that gives an AI assistant command line access to NCBI PubMed and PubMed Central. It runs through a single script, scripts/pubmed_api.py, which covers search, fetching abstracts and open-access full text, and linking records to other NCBI databases such as gene, protein, nucleotide and PubChem. It also offers medical spelling checks, raw citation matching and result caching for bulk work.

Results are written to JSON files, and the skill recommends jq to filter them and limit context size. It uses the NCBI E-utilities and PMC BioC APIs and requires uv. An NCBI API key and a contact email are optional. The skill suits researchers and developers who search biomedical literature, including published clinical trials, and who must check the license of each retrieved paper.

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

What it can do

  • search_pubmedFinds PMIDs matching a free-text or structured NCBI query.
  • global_database_discoveryCounts how many records match a query across every NCBI database.
  • fetch_article_abstractsRetrieves metadata and abstracts for a batch of PMIDs.
  • get_full_text_pmcRetrieves open-access full text from PMC.
  • fetch_database_summaryResolves opaque UIDs from any NCBI database into readable metadata.
  • find_linked_biological_dataFinds records in other NCBI databases linked to a source record.
  • discover_available_linksLists the available ELink linknames for a given record.
  • cache_results_historyUploads PMIDs to the NCBI History Server for bulk retrieval.
  • verify_medical_spellingSpell-checks biomedical terms before searching.
  • match_raw_citationsResolves incomplete bibliographic citations to PMIDs.

What you need

  • uv installed and on PATH
  • A .env file in the home directory
  • Optional NCBI API key for a higher rate limit
  • Optional contact email (USER_EMAIL) for NCBI

Try asking

  • Search PubMed for recent clinical trials on BRCA1 and summarize the top 5
  • Get the abstracts for these PMIDs and list their titles
  • Find PubChem compounds linked to papers about EGFR inhibitors

Good to know

  • Without an API key the rate limit is 3 requests per second; with a key it is 10.
  • Check the PubMed and NCBI terms and the license of every paper retrieved.
  • On error the script exits with a non-zero code and writes no output file.
  • Outputs must mention the skill notice and list the URLs of all papers used.

Security check

A

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

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

Alternatives to pubmed-database

All alternatives →

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

pubmed-database: common questions

Does PubMed API need an NCBI API key?

No. The source says the skill works without a key, but a key raises the rate limit from 3 to 10 requests per second and is recommended for many queries.

Can it return full text of papers?

It can retrieve open-access full text from PubMed Central using get_full_text_pmc. The source tells users to check the license of each paper.

How are results saved?

The script writes JSON to the output file you specify. Users can then filter that output with jq or Python.

How do I install pubmed-database?

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

Is pubmed-database free?

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

Is pubmed-database safe to use?

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

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

pubmed-database Install

Add to stack

Loading.