PubMed REST API Search
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.
Direct PubMed and NCBI E-utilities search workflows for biomedical literature, MeSH queries, PMID lookup, citation retrieval, and API-backed literature monitoring.
$ npx skills add affaan-m/ECC --skill scientific-db-pubmed-database -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install affaan-m/ECC scientific-db-pubmed-database --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/affaan-m/ECC.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/scientific-db-pubmed-database .claude/skills/scientific-db-pubmed-database && rm -rf skills-srcUse ~/.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/
Install the "scientific-db-pubmed-database" agent skill from https://github.com/affaan-m/ECC/tree/main/skills/scientific-db-pubmed-database into .claude/skills/scientific-db-pubmed-database/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "scientific-db-pubmed-database", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/affaan-m/ECC/tree/main/skills/scientific-db-pubmed-databaseType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add affaan-m/ECC --skill scientific-db-pubmed-database -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install affaan-m/ECC scientific-db-pubmed-database --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/affaan-m/ECC.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/scientific-db-pubmed-database .agents/skills/scientific-db-pubmed-database && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "scientific-db-pubmed-database" agent skill from https://github.com/affaan-m/ECC/tree/main/skills/scientific-db-pubmed-database into .agents/skills/scientific-db-pubmed-database/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "scientific-db-pubmed-database", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add affaan-m/ECC --skill scientific-db-pubmed-database -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install affaan-m/ECC scientific-db-pubmed-database --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/affaan-m/ECC.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/scientific-db-pubmed-database .cursor/skills/scientific-db-pubmed-database && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "scientific-db-pubmed-database" agent skill from https://github.com/affaan-m/ECC/tree/main/skills/scientific-db-pubmed-database into .cursor/skills/scientific-db-pubmed-database/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "scientific-db-pubmed-database", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/affaan-m/ECC.git --path skills/scientific-db-pubmed-database--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add affaan-m/ECC --skill scientific-db-pubmed-database -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install affaan-m/ECC scientific-db-pubmed-database --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/affaan-m/ECC.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/scientific-db-pubmed-database .gemini/skills/scientific-db-pubmed-database && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "scientific-db-pubmed-database" agent skill from https://github.com/affaan-m/ECC/tree/main/skills/scientific-db-pubmed-database into .gemini/skills/scientific-db-pubmed-database/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "scientific-db-pubmed-database", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install affaan-m/ECC scientific-db-pubmed-databaseInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add affaan-m/ECC --skill scientific-db-pubmed-database -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/affaan-m/ECC.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/scientific-db-pubmed-database .github/skills/scientific-db-pubmed-database && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "scientific-db-pubmed-database" agent skill from https://github.com/affaan-m/ECC/tree/main/skills/scientific-db-pubmed-database into .github/skills/scientific-db-pubmed-database/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "scientific-db-pubmed-database", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add affaan-m/ECC --skill scientific-db-pubmed-database -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install affaan-m/ECC scientific-db-pubmed-database --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/affaan-m/ECC.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/scientific-db-pubmed-database .opencode/skills/scientific-db-pubmed-database && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "scientific-db-pubmed-database" agent skill from https://github.com/affaan-m/ECC/tree/main/skills/scientific-db-pubmed-database into .opencode/skills/scientific-db-pubmed-database/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "scientific-db-pubmed-database", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
scientific-db-pubmed-databaseDirect PubMed and NCBI E-utilities search workflows for biomedical literature, MeSH queries, PMID lookup, citation retrieval, and API-backed literature monitoring.
Scientific DB Pubmed Database is an agent skill from affaan-m/ECC. Direct PubMed and NCBI E-utilities search workflows for biomedical literature, MeSH queries, PMID lookup, citation retrieval, and API-backed literature monitoring. Use when a task needs biomedical literature from PubMed rather than general web search.
Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Research & Science, covering Academic paper search and Web search. It works with PubMed and NCBI. The repository describes itself as: The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 2d515e4. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python and markdown).
From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
eutils.ncbi.nlm.nih.govAlso links to:
pubmed.ncbi.nlm.nih.govncbi.nlm.nih.govsupport.nlm.nih.govFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
NCBI_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Scientific DB Pubmed Database loads about 1.2k tokens when it runs. Until then it costs about 70 tokens; SKILL.md has 370 words of instructions outside code blocks.
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.
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.
The full file from affaan-m/ECC at commit 2d515e4, republished under its MIT licence (© affaan-m). 370 words, ~1,207 tokens.
.claude/skills/scientific-db-pubmed-database/SKILL.md (or your agent's skills folder).Use this skill when a task needs biomedical literature from PubMed rather than general web search.
Start with the research question, split it into concepts, then combine concepts with Boolean operators.
concept_1 AND concept_2 AND filter
synonym_a OR synonym_b
NOT exclusion_termUseful PubMed field tags:
[ti]: title[ab]: abstract[tiab]: title or abstract[au]: author[ta]: journal title abbreviation[mh]: MeSH term[majr]: major MeSH topic[pt]: publication type[dp]: date of publication[la]: languageExamples:
diabetes mellitus[mh] AND treatment[tiab] AND systematic review[pt] AND 2023:2026[dp]
(metformin[nm] OR insulin[nm]) AND diabetes mellitus, type 2[mh] AND randomized controlled trial[pt]
smith ja[au] AND cancer[tiab] AND 2026[dp] AND english[la]Prefer MeSH when the concept has a stable controlled-vocabulary term. Combine MeSH with title/abstract terms when the topic is new or terminology varies.
Correct subheading syntax puts the subheading before the field tag:
diabetes mellitus, type 2/drug therapy[mh]
cardiovascular diseases/prevention & control[mh]Use [majr] only when the topic must be central to the paper. It can improve
precision but may miss relevant work.
Publication types:
clinical trial[pt]meta-analysis[pt]randomized controlled trial[pt]review[pt]systematic review[pt]guideline[pt]Date filters:
2026[dp]
2020:2026[dp]
2026/03/15[dp]Availability filters:
free full text[sb]
hasabstract[text]NCBI E-utilities supports repeatable API workflows:
esearch.fcgi: search and return PMIDs.esummary.fcgi: return lightweight article metadata.efetch.fcgi: fetch abstracts or full records in XML, MEDLINE, or text.elink.fcgi: find related articles and linked resources.Use an email and API key for production scripts. Store API keys in environment variables, never in committed files or command history.
import os
import time
import requests
BASE = "https://eutils.ncbi.nlm.nih.gov/entrez/eutils"
def esearch(query: str, retmax: int = 20) -> list[str]:
params = {
"db": "pubmed",
"term": query,
"retmode": "json",
"retmax": retmax,
"tool": "ecc-pubmed-search",
"email": os.environ.get("NCBI_EMAIL", ""),
}
api_key = os.environ.get("NCBI_API_KEY")
if api_key:
params["api_key"] = api_key
response = requests.get(f"{BASE}/esearch.fcgi", params=params, timeout=30)
response.raise_for_status()
time.sleep(0.35)
return response.json()["esearchresult"]["idlist"]
pmids = esearch("hypertension[mh] AND randomized controlled trial[pt] AND 2024:2026[dp]")
print(pmids)For batches, prefer NCBI history server parameters (usehistory=y,
WebEnv, query_key) instead of passing very long PMID lists through URLs.
For each search pass, record:
Example:
| Database | Date searched | Query | Filters | Results |
| --- | --- | --- | --- | ---: |
| PubMed | 2026-05-11 | `sickle cell disease[mh] AND CRISPR[tiab]` | 2020:2026[dp], English | 42 |raise_for_status() or otherwise handle non-200
responses before parsing?© affaan-m, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/scientific-db-pubmed-database of affaan-m/ECC.
Open the folder on GitHubat commit 2d515e4
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in affaan-m/ECC, which our catalogue first saw on October 7, 2026.
Scientific DB Pubmed Database 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Scientific DB Pubmed Database this skillaffaan-m/ECC | 277k | 1 repos | ~1.2k | Automated safety check: Pass | MIT | |
| PubMed REST API Searchdavila7/claude-code-templates | 33k | 14 repos | ~3.9k | Automated safety check: Pass | MIT | |
| Pubmed Databasegoogle-deepmind/science-skills | 3.2k | 2 repos | ~2.1k | Automated safety check: Notes | Apache-2.0 | |
| Ncbi Sequence Fetchgoogle-deepmind/science-skills | 3.2k | 1 repos | ~2.3k | Automated safety check: Notes | Apache-2.0 | |
| Journal Skillsaipoch/medical-research-skills | 1.9k | — | ~1.7k | Automated safety check: Pass | MIT | |
| Pubmed Databasejaechang-hits/SciAgent-Skills | 374 | 1 repos | ~4.4k | Automated safety check: Pass | CC-BY-4.0 |
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.
google-deepmind/science-skills
Search PubMed for scientific literature, including published clinical trials.
google-deepmind/science-skills
Retrieve protein and nucleotide sequences from NCBI databases using E-utilities.
aipoch/medical-research-skills
Recommends target journals for manuscript submission by analyzing the paper topic/abstract and the journal distribution of similar PubMed literature; use when users ask for journal…
jaechang-hits/SciAgent-Skills
Programmatic PubMed access via NCBI E-utilities REST API. An agent skill from jaechang-hits/SciAgent-Skills.
maziyarpanahi/openmed
Searches and fetches PubMed and PMC via NCBI E-utilities (ESearch then EFetch/ESummary) to gather biomedical evidence and build text corpora.
affaan-m/ECC
Audits your installed Claude skills and commands for quality, with a quick mode for recently changed skills and a full mode that evaluates all of them through subagents.
affaan-m/ECC
Ingests, indexes, searches, edits and monitors video, audio and live streams through the VideoDB Python SDK, returning stream links, clips and timestamps.
affaan-m/ECC
Route broad documentation-governance requests to existing ECC skills and run an opt-in, read-only audit of mapped documentation roles, links, ADR indexes, and evidence references.
affaan-m/ECC
Scans installed skills for principles that recur across them and proposes rule-file changes: append, revise, add a section, create a file or leave as covered.
affaan-m/ECC
Builds DRAFT counterparty agreements from one markdown template and a small JSON spec per party, with clauses picked by the party's role.
affaan-m/ECC
Set an ECC-specific frontend design direction for production UI work.
Categories
Direct PubMed and NCBI E-utilities search workflows for biomedical literature, MeSH queries, PMID lookup, citation retrieval, and API-backed literature monitoring. Scientific DB Pubmed Database is an agent skill from affaan-m/ECC. Direct PubMed and NCBI E-utilities search workflows for biomedical literature, MeSH queries, PMID lookup, citation retrieval, and API-backed literature monitoring.
Scientific DB Pubmed Database fits situations like: A task needs biomedical literature from PubMed rather than general web search; tasks that involve Academic paper search; tasks that involve Web search.
Run `npx skills add affaan-m/ECC --skill scientific-db-pubmed-database -a claude-code`. Or copy the skill folder (skills/scientific-db-pubmed-database in affaan-m/ECC) into .claude/skills/scientific-db-pubmed-database in your project. Claude Code loads it when a task matches its description.
Run `npx skills add affaan-m/ECC --skill scientific-db-pubmed-database -a codex`. Or copy the skill folder (skills/scientific-db-pubmed-database in affaan-m/ECC) into .agents/skills/scientific-db-pubmed-database in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add affaan-m/ECC --skill scientific-db-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/scientific-db-pubmed-database, .gemini/skills/scientific-db-pubmed-database, .github/skills/scientific-db-pubmed-database and .opencode/skills/scientific-db-pubmed-database in your project.
Going by SKILL.md and its folder, Scientific DB Pubmed Database needs credentials named NCBI_API_KEY. Our summary lists: Python 3; A credential in NCBI_API_KEY.
SKILL.md names 4 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, ncbi.nlm.nih.gov and support.nlm.nih.gov. This is read from the text; nothing was executed.
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.
Scientific DB Pubmed Database is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Scientific DB Pubmed Database: PubMed REST API Search (davila7/claude-code-templates, 33k stars), Pubmed Database (google-deepmind/science-skills, 3.2k stars), Ncbi Sequence Fetch (google-deepmind/science-skills, 3.2k stars) and Journal Skills (aipoch/medical-research-skills, 1.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
affaan-m (a GitHub user) maintains it in affaan-m/ECC, which has 276,673 GitHub stars. The repository holds 683 skills in this directory. The repository was last updated on October 11, 2026.
Source: affaan-m/ECC on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.