Skip to content
Agentmart
Submit a tool

pubmed

Search PubMed for scientific literature and retrieve abstracts

Skill by lamm-mit

IndexedApache-2.0★ 250
Write a review

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/lamm-mit-pubmed

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 for scientific literature and retrieve abstracts

Use cases: 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
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/pubmed

What's inside

Skill name
pubmed
Description
Search PubMed for scientific literature and retrieve abstracts
License
Apache-2.0
Instructions
114 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Agent Skills spec issues

  • metadata: must be a key/value mapping

Files (4)

  • SKILL.md
  • ncbi-api.md · references/
  • pubmed_search.cpython-313.pyc · scripts/__pycache__/
  • pubmed_search.py · scripts/

SKILL.md (first lines)

# PubMed Search

Search the PubMed database for scientific literature, retrieve abstracts, and format citations.

## Overview

PubMed is a free database of biomedical literature from MEDLINE, life science journals, and online books. This skill uses NCBI's E-utilities API to search and fetch articles.

## Usage

### Basic search:
```bash
python3 {baseDir}/scripts/pubmed_search.py --query "CRISPR gene editing"
```

### Search with filters:
```bash
python3 {baseDir}/scripts/pubmed_search.py --query "cancer immunotherapy" --year 2024 --max-results 20
```

### Get full abstracts:
```bash
python3 {baseDir}/scripts/pubmed_search.py --query "machine learning drug discovery" --format detailed
```

### Export citations:
```bash
python3 {baseDir}/scripts/pubmed_search.py --query "protein folding" --format bibtex
```

### Fetch specific article by PMID:
```bash
python3 {baseDir}/scripts/pubmed_search.py --pmid 35648464
```

## Parameters

| Parameter | Description | Default |
|-----------|-------------|---------|
| `--query` | Search query (supports PubMed syntax) | Required* |
| `--pmid` | Specific PubMed ID to fetch | - |
| `--max-results` | Maximum number of results | 10 |
| `--year` | Filter by publication year | - |
| `--year-start` | Start year for date range | - |
| `--year-end` | End year for date range | - |
| `--author` | Filter by author name | - |
| `--journal` | Filter by journal name | - |
| `--format` | Output format: summary, detailed, bibtex, json | summary |
| `--sort` | Sort by: relevance, date, first_author | relevance |

*Required unless `--pmid` is provided

## Search Syntax

PubMed supports advanced search operators:

- **AND/OR/NOT**: Combine terms (`cancer AND therapy`)
- **Phrases**: Use quotes (`"breast cancer"`)
- **Field tags**: `[Title]`, `[Author]`, `[Journal]`, `[MeSH]`
- **Wildcards**: `*` for truncation (`immun*`)

### Examples:
```
cancer[Title] AND therapy[Title]
"machine learning"[Title/Abstract]
Smith J[Author] AND 2024[Date - Publication]
Nature[Journal]
CRISPR[MeSH Terms]
```

## Examples

### Search recent papers on a topic:
```bash
python3 {baseDir}/scripts/pubmed_search.py --query "AlphaFold protein structure" --year 2024 --max-results 15
```

### Search by author:
```bash
python3 {baseDir}/scripts/pubmed_search.py --query "CRISPR" --author "Doudna JA"
```

### Get BibTeX for citations:
```bash
python3 {baseDir}/scripts/pubmed_search.py --query "deep learning genomics" --format bibtex --max-results 5
```

### Combine multiple filters:
```bash
python3 {baseDir}/scripts/pubmed_search.py --query "COVID-19 vaccine" --year-start 2023 --year-end 2024 --sort date
```

## Output Formats

### Summary
Compact list with title, authors, journal, and year.

### Detailed
Full abstract, author affiliations, MeSH terms, and DOI.

### BibTeX
Citation format for LaTeX documents.

### JSON
Machine-readable format with all metadata.

## Notes

- NCBI E-utilities have rate limits; heavy usage should use an API key
- Set `NCBI_EMAIL` environment variable for better rate limits
- Set `NCBI_API_KEY` for up to 10 requests/second (vs 3/second without)
- Results are returned by relevance by default

From lamm-mit/scienceclaw, Apache-2.0.

More from lamm-mit/scienceclaw

Signals

Stars
250
Forks
47
Open issues
1
Last commit (this folder)
Mar 14, 2026 (7 months ago)
Last release
Jun 23, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from lamm-mit

Cite this page

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