Agent skill

PubMed REST API Search

by davila7 in davila7/claude-code-templates

Searches PubMed directly through its E-utilities REST API, with guidance on Boolean and MeSH query syntax, batch retrieval and citation data.

MITAuto-check passedResearch & Science

Install PubMed REST API Search

skills CLI
$ npx skills add davila7/claude-code-templates --skill pubmed-database -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install davila7/claude-code-templates pubmed-database --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/davila7/claude-code-templates.git skills-src && mkdir -p .claude/skills && cp -r skills-src/cli-tool/components/skills/scientific/pubmed-database .claude/skills/pubmed-database && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pubmed-database
GitHub stars
32k
Used in
15 other repos
Token cost
~3.9k tokens
SKILL.md length
1,594 words
Files
4 (incl. references)
Skills in repo
477
Repo updated
First seen
Licence
MIT

At a glance

Searches PubMed directly through its E-utilities REST API, with guidance on Boolean and MeSH query syntax, batch retrieval and citation data.

  • Works in 9 steps: Advanced Search Query Construction → MeSH Terms and Controlled Vocabulary → Article Type and Publication Filtering → …
  • Building a precise PubMed query with MeSH terms and field tags
  • SKILL.md covers Overview, When to Use This Skill, Core Capabilities and Working with Reference Files, plus 3 more sections
  • Reaches eutils.ncbi.nlm.nih.gov

What it does

This skill is for biomedical literature searches that go straight to the PubMed REST interface rather than through a library. It covers building queries with Boolean operators and field tags such as author, title, abstract, MeSH heading, publication type and date, along with phrase, wildcard and proximity searching and a tag that restricts results to articles centered on a topic.

It also explains retrieving data through the E-utilities API for systematic reviews, meta-analyses and monitoring workflows, including abstracts, citation details, PMIDs and DOIs. Three reference files cover the API, common query patterns and full search syntax. For Python work the skill itself recommends Biopython's Bio.Entrez instead, keeping this route for direct HTTP or custom implementations. The excerpt is cut off in the MeSH subheading list.

When your agent uses it

  • Building a precise PubMed query with MeSH terms and field tags
  • Running a systematic review search across biomedical literature
  • Retrieving abstracts or citation details for a list of PMIDs
  • Setting up an automated literature-monitoring script against E-utilities

Example prompts

  • “Write a PubMed query for systematic reviews on diabetes treatment published in 2023 and 2024.”
  • “Fetch the abstracts for these PMIDs through the E-utilities API and save them to JSON.”
  • “Find randomized trials on migraine prevention using MeSH terms, limited to articles where it is the main topic.”
  • “Build a script that checks PubMed every week for new papers by a given author.”

Requirements

  • Network access to the PubMed E-utilities API

Workflow steps

9 steps, taken from the step headings in SKILL.md.

  1. Advanced Search Query Construction
  2. MeSH Terms and Controlled Vocabulary
  3. Article Type and Publication Filtering
  4. Programmatic Access via E-utilities API
  5. Citation Matching and Article Retrieval
  6. Systematic Literature Reviews
  7. Search History and Saved Searches
  8. Related Articles and Citation Discovery
  9. Export and Citation Management

What it can do on your machine

Read from SKILL.md and the folder at commit 14680ec. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • eutils.ncbi.nlm.nih.gov

    Also links to:

    • pubmed.ncbi.nlm.nih.gov
    • ncbi.nlm.nih.gov

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

PubMed REST API Search loads about 3.9k tokens when it runs, and up to ~11k if it reads all its reference files. Until then it costs about 64 tokens; SKILL.md has 1,594 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~64
When it runs · the whole SKILL.md, loaded when a task matches
~3.9k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~11k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from davila7/claude-code-templates at commit 14680ec, republished under its MIT licence (© davila7). 1,594 words, ~3,879 tokens.

Download SKILL.mdSave it as .claude/skills/pubmed-database/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
pubmed-database
description
Direct REST API access to PubMed. Advanced Boolean/MeSH queries, E-utilities API, batch processing, citation management. For Python workflows, prefer biopython (Bio.Entrez). Use this for direct HTTP/REST work or custom API implementations.

PubMed Database

Overview

PubMed is the U.S. National Library of Medicine's comprehensive database providing free access to MEDLINE and life sciences literature. Construct advanced queries with Boolean operators, MeSH terms, and field tags, access data programmatically via E-utilities API for systematic reviews and literature analysis.

When to Use This Skill

This skill should be used when:

  • Searching for biomedical or life sciences research articles
  • Constructing complex search queries with Boolean operators, field tags, or MeSH terms
  • Conducting systematic literature reviews or meta-analyses
  • Accessing PubMed data programmatically via the E-utilities API
  • Finding articles by specific criteria (author, journal, publication date, article type)
  • Retrieving citation information, abstracts, or full-text articles
  • Working with PMIDs (PubMed IDs) or DOIs
  • Creating automated workflows for literature monitoring or data extraction

Core Capabilities

1. Advanced Search Query Construction

Construct sophisticated PubMed queries using Boolean operators, field tags, and specialized syntax.

Basic Search Strategies:

  • Combine concepts with Boolean operators (AND, OR, NOT)
  • Use field tags to limit searches to specific record parts
  • Employ phrase searching with double quotes for exact matches
  • Apply wildcards for term variations
  • Use proximity searching for terms within specified distances

Example Queries:

# Recent systematic reviews on diabetes treatment
diabetes mellitus[mh] AND treatment[tiab] AND systematic review[pt] AND 2023:2024[dp]

# Clinical trials comparing two drugs
(metformin[nm] OR insulin[nm]) AND diabetes mellitus, type 2[mh] AND randomized controlled trial[pt]

# Author-specific research
smith ja[au] AND cancer[tiab] AND 2023[dp] AND english[la]

When to consult search_syntax.md:

  • Need comprehensive list of available field tags
  • Require detailed explanation of search operators
  • Constructing complex proximity searches
  • Understanding automatic term mapping behavior
  • Need specific syntax for date ranges, wildcards, or special characters

Grep pattern for field tags: \[au\]|\[ti\]|\[ab\]|\[mh\]|\[pt\]|\[dp\]

2. MeSH Terms and Controlled Vocabulary

Use Medical Subject Headings (MeSH) for precise, consistent searching across the biomedical literature.

MeSH Searching:

  • [mh] tag searches MeSH terms with automatic inclusion of narrower terms
  • [majr] tag limits to articles where the topic is the main focus
  • Combine MeSH terms with subheadings for specificity (e.g., diabetes mellitus/therapy[mh])

Common MeSH Subheadings:

  • /diagnosis - Diagnostic methods
  • /drug therapy - Pharmaceutical treatment
  • /epidemiology - Disease patterns and prevalence
  • /etiology - Disease causes
  • /prevention & control - Preventive measures
  • /therapy - Treatment approaches

Example:

# Diabetes therapy with specific focus
diabetes mellitus, type 2[mh]/drug therapy AND cardiovascular diseases[mh]/prevention & control
3. Article Type and Publication Filtering

Filter results by publication type, date, text availability, and other attributes.

Publication Types (use [pt] field tag):

  • Clinical Trial
  • Meta-Analysis
  • Randomized Controlled Trial
  • Review
  • Systematic Review
  • Case Reports
  • Guideline

Date Filtering:

  • Single year: 2024[dp]
  • Date range: 2020:2024[dp]
  • Specific date: 2024/03/15[dp]

Text Availability:

  • Free full text: Add AND free full text[sb] to query
  • Has abstract: Add AND hasabstract[text] to query

Example:

# Recent free full-text RCTs on hypertension
hypertension[mh] AND randomized controlled trial[pt] AND 2023:2024[dp] AND free full text[sb]
4. Programmatic Access via E-utilities API

Access PubMed data programmatically using the NCBI E-utilities REST API for automation and bulk operations.

Core API Endpoints:

  1. ESearch - Search database and retrieve PMIDs
  2. EFetch - Download full records in various formats
  3. ESummary - Get document summaries
  4. EPost - Upload UIDs for batch processing
  5. ELink - Find related articles and linked data

Basic Workflow:

python
import requests

# Step 1: Search for articles
base_url = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/"
search_url = f"{base_url}esearch.fcgi"
params = {
    "db": "pubmed",
    "term": "diabetes[tiab] AND 2024[dp]",
    "retmax": 100,
    "retmode": "json",
    "api_key": "YOUR_API_KEY"  # Optional but recommended
}
response = requests.get(search_url, params=params)
pmids = response.json()["esearchresult"]["idlist"]

# Step 2: Fetch article details
fetch_url = f"{base_url}efetch.fcgi"
params = {
    "db": "pubmed",
    "id": ",".join(pmids),
    "rettype": "abstract",
    "retmode": "text",
    "api_key": "YOUR_API_KEY"
}
response = requests.get(fetch_url, params=params)
abstracts = response.text

Rate Limits:

  • Without API key: 3 requests/second
  • With API key: 10 requests/second
  • Always include User-Agent header

Best Practices:

  • Use history server (usehistory=y) for large result sets
  • Implement batch operations via EPost for multiple UIDs
  • Cache results locally to minimize redundant calls
  • Respect rate limits to avoid service disruption

When to consult api_reference.md:

  • Need detailed endpoint documentation
  • Require parameter specifications for each E-utility
  • Constructing batch operations or history server workflows
  • Understanding response formats (XML, JSON, text)
  • Troubleshooting API errors or rate limit issues

Grep pattern for API endpoints: esearch|efetch|esummary|epost|elink|einfo

5. Citation Matching and Article Retrieval

Find articles using partial citation information or specific identifiers.

By Identifier:

# By PMID
12345678[pmid]

# By DOI
10.1056/NEJMoa123456[doi]

# By PMC ID
PMC123456[pmc]

Citation Matching (via ECitMatch API): Use journal name, year, volume, page, and author to find PMIDs:

Format: journal|year|volume|page|author|key|
Example: Science|2008|320|5880|1185|key1|

By Author and Metadata:

# First author with year and topic
smith ja[1au] AND 2023[dp] AND cancer[tiab]

# Journal, volume, and page
nature[ta] AND 2024[dp] AND 456[vi] AND 123-130[pg]
6. Systematic Literature Reviews

Conduct comprehensive literature searches for systematic reviews and meta-analyses.

PICO Framework (Population, Intervention, Comparison, Outcome): Structure clinical research questions systematically:

# Example: Diabetes treatment effectiveness
# P: diabetes mellitus, type 2[mh]
# I: metformin[nm]
# C: lifestyle modification[tiab]
# O: glycemic control[tiab]

diabetes mellitus, type 2[mh] AND
(metformin[nm] OR lifestyle modification[tiab]) AND
glycemic control[tiab] AND
randomized controlled trial[pt]

Comprehensive Search Strategy:

# Include multiple synonyms and MeSH terms
(disease name[tiab] OR disease name[mh] OR synonym[tiab]) AND
(treatment[tiab] OR therapy[tiab] OR intervention[tiab]) AND
(systematic review[pt] OR meta-analysis[pt] OR randomized controlled trial[pt]) AND
2020:2024[dp] AND
english[la]

Search Refinement:

  1. Start broad, review results
  2. Add specificity with field tags
  3. Apply date and publication type filters
  4. Use Advanced Search to view query translation
  5. Combine search history for complex queries

When to consult common_queries.md:

  • Need example queries for specific disease types or research areas
  • Require templates for different study designs
  • Looking for population-specific query patterns (pediatric, geriatric, etc.)
  • Constructing methodology-specific searches
  • Need quality filters or best practice patterns

Grep pattern for query examples: diabetes|cancer|cardiovascular|clinical trial|systematic review

7. Search History and Saved Searches

Use PubMed's search history and My NCBI features for efficient research workflows.

Search History (via Advanced Search):

  • Maintains up to 100 searches
  • Expires after 8 hours of inactivity
  • Combine previous searches using # references
  • Preview result counts before executing

Example:

#1: diabetes mellitus[mh]
#2: cardiovascular diseases[mh]
#3: #1 AND #2 AND risk factors[tiab]

My NCBI Features:

  • Save searches indefinitely
  • Set up email alerts for new matching articles
  • Create collections of saved articles
  • Organize research by project or topic

RSS Feeds: Create RSS feeds for any search to monitor new publications in your area of interest.

Find related research and explore citation networks.

Similar Articles Feature: Every PubMed article includes pre-calculated related articles based on:

  • Title and abstract similarity
  • MeSH term overlap
  • Weighted algorithmic matching

ELink for Related Data:

# Find related articles programmatically
elink.fcgi?dbfrom=pubmed&db=pubmed&id=PMID&cmd=neighbor

Citation Links:

  • LinkOut to full text from publishers
  • Links to PubMed Central free articles
  • Connections to related NCBI databases (GenBank, ClinicalTrials.gov, etc.)
9. Export and Citation Management

Export search results in various formats for citation management and further analysis.

Export Formats:

  • .nbib files for reference managers (Zotero, Mendeley, EndNote)
  • AMA, MLA, APA, NLM citation styles
  • CSV for data analysis
  • XML for programmatic processing

Clipboard and Collections:

  • Clipboard: Temporary storage for up to 500 items (8-hour expiration)
  • Collections: Permanent storage via My NCBI account

Batch Export via API:

python
# Export citations in MEDLINE format
efetch.fcgi?db=pubmed&id=PMID1,PMID2&rettype=medline&retmode=text

Working with Reference Files

This skill includes three comprehensive reference files in the references/ directory:

references/api_reference.md

Complete E-utilities API documentation including all nine endpoints, parameters, response formats, and best practices. Consult when:

  • Implementing programmatic PubMed access
  • Constructing API requests
  • Understanding rate limits and authentication
  • Working with large datasets via history server
  • Troubleshooting API errors
Show full SKILL.md (657 more words)Show less
references/search_syntax.md

Detailed guide to PubMed search syntax including field tags, Boolean operators, wildcards, and special characters. Consult when:

  • Constructing complex search queries
  • Understanding automatic term mapping
  • Using advanced search features (proximity, wildcards)
  • Applying filters and limits
  • Troubleshooting unexpected search results
references/common_queries.md

Extensive collection of example queries for various research scenarios, disease types, and methodologies. Consult when:

  • Starting a new literature search
  • Need templates for specific research areas
  • Looking for best practice query patterns
  • Conducting systematic reviews
  • Searching for specific study designs or populations

Reference Loading Strategy: Load reference files into context as needed based on the specific task. For brief queries or basic searches, the information in this SKILL.md may be sufficient. For complex operations, consult the appropriate reference file.

Common Workflows

  1. Identify key concepts and synonyms
  2. Construct query with Boolean operators and field tags
  3. Review initial results and refine query
  4. Apply filters (date, article type, language)
  5. Export results for analysis
  1. Define research question using PICO framework
  2. Identify all relevant MeSH terms and synonyms
  3. Construct comprehensive search strategy
  4. Search multiple databases (include PubMed)
  5. Document search strategy and date
  6. Export results for screening and review
Workflow 3: Programmatic Data Extraction
  1. Design search query and test in web interface
  2. Implement search using ESearch API
  3. Use history server for large result sets
  4. Retrieve detailed records with EFetch
  5. Parse XML/JSON responses
  6. Store data locally with caching
  7. Implement rate limiting and error handling
Workflow 4: Citation Discovery
  1. Start with known relevant article
  2. Use Similar Articles to find related work
  3. Check citing articles (when available)
  4. Explore MeSH terms from relevant articles
  5. Construct new searches based on discoveries
  6. Use ELink to find related database entries
Workflow 5: Ongoing Literature Monitoring
  1. Construct comprehensive search query
  2. Test and refine query for precision
  3. Save search to My NCBI account
  4. Set up email alerts for new matches
  5. Create RSS feed for feed reader monitoring
  6. Review new articles regularly

Tips and Best Practices

Search Strategy
  • Start broad, then narrow with field tags and filters
  • Include synonyms and MeSH terms for comprehensive coverage
  • Use quotation marks for exact phrases
  • Check Search Details in Advanced Search to verify query translation
  • Combine multiple searches using search history
API Usage
  • Obtain API key for higher rate limits (10 req/sec vs 3 req/sec)
  • Use history server for result sets > 500 articles
  • Implement exponential backoff for rate limit handling
  • Cache results locally to minimize redundant requests
  • Always include descriptive User-Agent header
Quality Filtering
  • Prefer systematic reviews and meta-analyses for synthesized evidence
  • Use publication type filters to find specific study designs
  • Filter by date for most recent research
  • Apply language filters as appropriate
  • Use free full text filter for immediate access
Citation Management
  • Export early and often to avoid losing search results
  • Use .nbib format for compatibility with most reference managers
  • Create My NCBI account for permanent collections
  • Document search strategies for reproducibility
  • Use Collections to organize research by project

Limitations and Considerations

Database Coverage
  • Primarily biomedical and life sciences literature
  • Pre-1975 articles often lack abstracts
  • Full author names available from 2002 forward
  • Non-English abstracts available but may default to English display
Search Limitations
  • Display limited to 10,000 results maximum
  • Search history expires after 8 hours of inactivity
  • Clipboard holds max 500 items with 8-hour expiration
  • Automatic term mapping may produce unexpected results
API Considerations
  • Rate limits apply (3-10 requests/second)
  • Large queries may time out (use history server)
  • XML parsing required for detailed data extraction
  • API key recommended for production use
Access Limitations
  • PubMed provides citations and abstracts (not always full text)
  • Full text access depends on publisher, institutional access, or open access status
  • LinkOut availability varies by journal and institution
  • Some content requires subscription or payment

Support Resources

© davila7, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in cli-tool/components/skills/scientific/pubmed-database of davila7/claude-code-templates.

  • SKILL.md
  • references/api_reference.md
  • references/common_queries.md
  • references/search_syntax.md

Open the folder on GitHubat commit 14680ec

Used in 15 other repositories

We found 34 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 15 other GitHub owners. This page covers the copy in davila7/claude-code-templates, which our catalogue first saw on October 7, 2026.

Compare with similar skills

PubMed REST API Search next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

PubMed REST API Search compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
PubMed REST API Search this skilldavila7/claude-code-templates32k15 repos~3.9kAutomated safety check: PassMIT
Pubmed Databasejaechang-hits/SciAgent-Skills3701 repos~4.4kAutomated safety check: PassCC-BY-4.0
Molecular Review Workflowaipoch/medical-research-skills2k—~1.8kAutomated safety check: PassMIT
Literature Reviewneflibata-feng/MyArxiv-Agent12621 repos~5.9kAutomated safety check: NotesMIT
Academic Search and Citation RouterYuan1z0825/nature-skills46k—~884Automated safety check: PassApache-2.0
Literature ReviewK-Dense-AI/scientific-agent-skills48k1 repos~3.2kAutomated safety check: NotesMIT

Similar skills

  • Pubmed Database

    jaechang-hits/SciAgent-Skills

    Programmatic PubMed access via NCBI E-utilities REST API. An agent skill from jaechang-hits/SciAgent-Skills.

    370 GitHub starsUsed in 1 repo~4.4k tokens
    Research & ScienceAuto-check passed
  • Molecular Review Workflow

    aipoch/medical-research-skills

    Generates academic reviews for molecules in diseases using PubMed research.

    2k GitHub stars~1.8k tokensUpdated 21 days ago
    Research & ScienceAuto-check passed
  • Literature Review

    neflibata-feng/MyArxiv-Agent

    Conduct comprehensive, systematic literature reviews using multiple academic databases (PubMed, arXiv, bioRxiv, Semantic Scholar, etc.).

    126 GitHub starsUsed in 21 repos~5.9k tokens
    Research & ScienceAuto-check: notes
  • Academic Search and Citation Router

    Yuan1z0825/nature-skills

    Finds papers across literature sources, verifies and converts citations, builds MeSH strategies and audits independent citations of a paper.

    46k GitHub stars~884 tokensUpdated yesterday
    Research & ScienceAuto-check passed
  • Literature Review

    K-Dense-AI/scientific-agent-skills

    Runs systematic, scoping or narrative literature reviews across PubMed, arXiv, bioRxiv and Semantic Scholar, with citation checks and Markdown or PDF output.

    48k GitHub starsUsed in 1 repo~3.2k tokens
    Research & ScienceAuto-check: notes
  • Literature Review

    Norman-bury/research-writing-skill

    A skill your agent uses when writing literature review sections - guides searching, organizing, and synthesizing academic sources

    3.4k GitHub stars~2.2k tokensUpdated 4 mo ago
    Research & ScienceAuto-check: notes

More from davila7/claude-code-templates

All 477 skills in this repo
  • Perplexity Web Search

    davila7/claude-code-templates

    Runs web-grounded searches through Perplexity's Sonar models over OpenRouter for current events, recent literature and cited facts beyond the model's training cutoff.

    32k GitHub starsUsed in 12 repos~3.5k tokens
    Auto-check: notes
  • Neuropixels Data Analysis

    davila7/claude-code-templates

    Analyzes Neuropixels recordings from SpikeGLX or Open Ephys through preprocessing, drift correction, Kilosort4 spike sorting, quality metrics and curation.

    32k GitHub starsUsed in 10 repos~2.8k tokens
    Auto-check passed
  • Scientific Venue Templates

    davila7/claude-code-templates

    Supplies LaTeX templates and formatting rules for journals, conferences, posters, and grant proposals, then can check a draft against them.

    32k GitHub starsUsed in 9 repos~5.1k tokens
    Auto-check: notes
  • Brand Voice Content Creator

    davila7/claude-code-templates

    Analyzes a brand's existing writing to lock in a consistent voice, then builds SEO blog posts and platform-specific social content around it.

    32k GitHub starsUsed in 3 repos~1.9k tokens
    Auto-check passed
  • CAPA Officer

    davila7/claude-code-templates

    Guides corrective and preventive action (CAPA) work in a quality management system, from initiation and root cause analysis through effectiveness verification.

    32k GitHub starsUsed in 1 repo~2k tokens
    Auto-check passed
  • Fda Consultant Specialist

    davila7/claude-code-templates

    Senior FDA consultant and specialist for medical device companies including HIPAA compliance and requirement management.

    32k GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check passed

Works with

Questions about PubMed REST API Search

What does PubMed REST API Search do?

Searches PubMed directly through its E-utilities REST API, with guidance on Boolean and MeSH query syntax, batch retrieval and citation data. This skill is for biomedical literature searches that go straight to the PubMed REST interface rather than through a library. It covers building queries with Boolean operators and field tags such as author, title, abstract, MeSH heading, publication type and date, along with phrase, wildcard and proximity searching and a tag that restricts results to articles centered on a topic.

When should I use PubMed REST API Search?

PubMed REST API Search fits situations like: building a precise PubMed query with MeSH terms and field tags; running a systematic review search across biomedical literature; retrieving abstracts or citation details for a list of PMIDs; setting up an automated literature-monitoring script against E-utilities.

How do I install PubMed REST API Search in Claude Code?

Run `npx skills add davila7/claude-code-templates --skill pubmed-database -a claude-code`. Or copy the skill folder (cli-tool/components/skills/scientific/pubmed-database in davila7/claude-code-templates) into .claude/skills/pubmed-database in your project. Claude Code loads it when a task matches its description.

How do I install PubMed REST API Search in Codex?

Run `npx skills add davila7/claude-code-templates --skill pubmed-database -a codex`. Or copy the skill folder (cli-tool/components/skills/scientific/pubmed-database in davila7/claude-code-templates) into .agents/skills/pubmed-database in your project. Codex loads it when a task matches its description.

Can I use PubMed REST API Search in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add davila7/claude-code-templates --skill pubmed-database -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pubmed-database, .gemini/skills/pubmed-database, .github/skills/pubmed-database and .opencode/skills/pubmed-database in your project.

What does PubMed REST API Search need to run?

SKILL.md names no scripts, command-line tools or credentials: PubMed REST API Search is instructions for the agent only. Our summary lists: Network access to the PubMed E-utilities API.

Does PubMed REST API Search access the network?

SKILL.md names 3 domains. In commands or code: eutils.ncbi.nlm.nih.gov; the agent is likely to contact it when it follows the instructions. As links in the text: pubmed.ncbi.nlm.nih.gov and ncbi.nlm.nih.gov. This is read from the text; nothing was executed.

Is PubMed REST API Search safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does PubMed REST API Search use?

PubMed REST API Search is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does PubMed REST API Search use?

About 3.9k tokens (SKILL.md is roughly 16k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 7.2k tokens, read only when the agent opens those files.

What are the alternatives to PubMed REST API Search?

Skills that share tags, products or a category with PubMed REST API Search: Pubmed Database (jaechang-hits/SciAgent-Skills, 370 stars), Molecular Review Workflow (aipoch/medical-research-skills, 2k stars), Literature Review (neflibata-feng/MyArxiv-Agent, 126 stars) and Academic Search and Citation Router (Yuan1z0825/nature-skills, 46k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains PubMed REST API Search?

davila7 (a GitHub user) maintains it in davila7/claude-code-templates, which has 32,463 GitHub stars. The repository holds 477 skills in this directory. The repository was last updated on October 8, 2026.

Source: davila7/claude-code-templates on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.