Skip to content
Agentmart
Submit a tool

pubmed-search

Search PubMed/MEDLINE for biomedical literature via NCBI E-utilities API.

Skill by beita6969

IndexedMIT★ 1,019
Write a review

Chalk Labs

Need help deploying pubmed-search?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/beita6969-pubmed-search

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Search PubMed/MEDLINE for biomedical literature via NCBI E-utilities API. Use when: (1) searching medical/biomedical papers, (2) finding clinical studies, (3) querying with MeSH terms, (4) retrieving abstracts by PMID. NOT for: non-biomedical papers (use arxiv-search or semantic-scholar), full-text access (PubMed provides abstracts), or social science literature.

Use cases: backend, research

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/pubmed-search

What's inside

Skill name
pubmed-search
Description
Search PubMed/MEDLINE for biomedical literature via NCBI E-utilities API. Use when: (1) searching medical/biomedical papers, (2) finding clinical studies, (3) querying with MeSH terms, (4) retrieving abstracts by PMID. NOT for: non-biomedical papers (use arxiv-search or semantic-scholar), full-text access (PubMed provides abstracts), or social science literature.
License
MIT
Instructions
80 lines in SKILL.md · view on GitHub

Before installing

  • Instructions call the network

Files (1)

  • SKILL.md

SKILL.md (first lines)

# PubMed Search

Search PubMed/MEDLINE (36M+ citations) via NCBI E-utilities REST API.

## API Endpoints

Base: `https://eutils.ncbi.nlm.nih.gov/entrez/eutils/`

### esearch -- Search and get PMIDs

```bash
curl -s "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=COVID-19+vaccine+efficacy&retmax=10&retmode=json"
```

Parameters: `db=pubmed`, `term=` (URL-encoded query), `retmax=` (default 20, max 10000),
`retstart=` (pagination), `retmode=json`, `sort=relevance|pub_date`,
`mindate=`/`maxdate=` (YYYY/MM/DD), `datetype=pdat`.

### efetch -- Retrieve records by PMID

```bash
curl -s "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id=39142890,39088712&retmode=xml&rettype=abstract"
```

### einfo -- Database metadata

```bash
curl -s "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/einfo.fcgi?db=pubmed&retmode=json"
```

## Query Syntax

**Boolean**: `AND`, `OR`, `NOT`, parentheses for grouping.

**Field tags**: `[ti]` title, `[tiab]` title/abstract, `[au]` author, `[mesh]` MeSH heading,
`[majr]` MeSH major topic, `[pt]` publication type, `[dp]` date, `[la]` language, `[jour]` journal.

**MeSH terms**: Standardized vocabulary with automatic explosion to narrower terms.
Use `[mesh:noexp]` for exact heading only. Qualifiers: `/therapy`, `/diagnosis`,
`/epidemiology`, `/genetics`, `/prevention and control`.

Example: `"Breast Neoplasms"[mesh] AND "Drug Therapy"[mesh]`

## Rate Limiting

- Without API key: 3 requests/sec
- With `NCBI_API_KEY`: 10 requests/sec (append `&api_key=${NCBI_API_KEY}`)
- Register at: https://www.ncbi.nlm.nih.gov/account/settings/

## Two-Step Search Pattern

```bash
PMIDS=$(curl -s "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&term=QUERY&retmax=5&retmode=json" \
  | python3 -c "import sys,json; d=json.load(sys.stdin); print(','.join(d['esearchresult']['idlist']))")
curl -s "https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&id=${PMIDS}&retmode=xml&rettype=abstract"
```

## Specialty Search Patterns

- **Oncology**: `"Neoplasms"[mesh] AND "immunotherapy"[tiab] AND "Clinical Trial"[pt]`
- **Cardiology**: `"Cardiovascular Diseases"[mesh] AND "meta-analysis"[pt]`
- **Neurology**: `"Alzheimer Disease"[mesh] AND "biomarkers"[tiab] AND 2020:2024[dp]`
- **Infectious Disease**: `"Anti-Bacterial Agents"[mesh] AND "Drug Resistance"[mesh]`
- **Genetics**: `"Genome-Wide Association Study"[pt] AND "Diabetes Mellitus, Type 2"[mesh]`
- **Systematic Reviews**: `"systematic review"[ti] AND "Randomized Controlled Trial"[pt]`

## Best Practices

1. Start broad, narrow with MeSH terms and field tags.
2. Use `retmax=5` for exploration, increase for comprehensive searches.
3. URL-encode queries (spaces as `+`, quotes as `%22`).
4. Check `count` in esearch results before paginating.
5. Document exact query strings for systematic review reproducibility.
6. For systematic reviews, use `"systematic review"[ti]` combined with study type filters.

## Zero-Hallucination Rule

NEVER fabricate results from training data. Every paper title, author, DOI, PMID, citation count, and metadata detail presented to the user MUST come from an actual API response in this conversation. If the API returns no results or partial data, report exactly what was returned. Do not "fill in" missing details from memory.

From beita6969/ScienceClaw, MIT.

More from beita6969/ScienceClaw

Signals

Stars
1,019
Forks
109
Open issues
1
Last commit (this folder)
Mar 12, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from beita6969

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get pubmed-search running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying pubmed-search?

CallGet help
Cite this page

pubmed-search skill. Agent Mart. https://agentmart.dev/skills/beita6969-pubmed-search (last updated 2026-10-24)