### Pubmed Database
Works with
name: "pubmed-database"
description: "Search PubMed for scientific literature, including published clinical trials. Fetch abstracts and full text. Link published research to biological databases (gene, protein, nucleotide, PubChem) to dis..."
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionpubmed-databaseExecute the skills CLI command in your project's root directory to begin installation:
Fetches pubmed-database from google-deepmind/science-skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate pubmed-database. Access via /pubmed-database in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
0
total installs
0
this week
0
upvotes
Run in your terminal
0
installs
0
this week
—
stars
| name | pubmed-database |
| description | >- Search PubMed for scientific literature, including published clinical trials. Fetch abstracts and full text. Link published research to biological databases (gene, protein, nucleotide, PubChem) to discover associations between papers and specific compounds or genes. Verify medical spelling, match raw citations, and cache result sets for bulk processing. Interfaces NCBI E-utilities and PMC BioC APIs. |
uv: Read the uv skill and follow its Setup instructions to ensure
uv is installed and on PATH..env file: Make sure the .env file exists in your home directory.
Create one if it does not exist.NCBI_API_KEY (optional): Raises the NCBI E-utilities rate limit from 3
to 10 requests/second. The skill works without it, but a key is recommended
if the user plans many queries or encounters a 429 error. The user can
obtain one for free by registering at
https://www.ncbi.nlm.nih.gov/account/settings/USER_EMAIL (optional but recommended): Identifies the caller to NCBI
(recommended by their Terms of Use).If the variables are missing from .env, do NOT ask the user to paste them into
the chat (this would leak keys into the agent's context). Instead, give the user
these commands — substituting ENV_FILE with the resolved literal path to the
.env file:
printf "Enter NCBI API key (typing hidden): " && read -s key && echo && echo "NCBI_API_KEY=$key" >> "ENV_FILE" && echo "Saved."
printf "Enter contact email: " && read email && echo "USER_EMAIL=$email" >> "ENV_FILE" && echo "Saved."
The scripts load credentials automatically via dotenv. NEVER read,
print, or inspect the .env file or its variables (e.g. no cat, grep,
echo, printenv, or os.environ.get on keys). Credentials must stay
out of the agent's context.
This skill provides CLI access to the NCBI PubMed and PubMed Central APIs via
scripts/pubmed_api.py — a single CLI with 10 functions covering search, fetch,
linking, full text, spelling, discovery, citation matching, and caching.
scripts/pubmed_api.py which
manages rate limits automatically and prevents API abuse. Setting the
NCBI_API_KEY environment variable raises the rate limit from 3 to 10
requests/second. Querying the API any other way (e.g. via curl, wget, or
hand-written code) is strictly forbidden.jq to filter and transform JSON output (or python
equivalents if jq is not available) to prevent hallucinations and context
overflow.tmp_$TASK_ID/) to avoid file collisions.SKILL.md - This filescripts/pubmed_api.py - The skill CLIreferences/ - Directory with detailed function specifications
advanced-linking.mdadvanced-search.mdbulk-workflows.mdcitation-matching.mdcross-database-linking.mdfetch-and-resolve.mdsearch-and-discovery.mdutilities.mduv run scripts/pubmed_api.py <output_file> <function_name> <required_args> [--flag value ...]
"35113657,31234568").--flag value instead
of positional args.output_file. On error,
the process exits with a non-zero code and no output file is written.uv run scripts/pubmed_api.py ./search_results.json search_pubmed "BRCA1" --max_results 5
cat ./search_results.json | jq '.[]' -r
uv run scripts/pubmed_api.py ./abstracts.json fetch_article_abstracts "35113657"
cat ./abstracts.json | jq '.[0].title' -r
Join PMIDs for the next call (most common chaining pattern):
cat ./search_results.json | jq -r 'join(",")'
Slim abstracts to essential fields and truncate long abstracts:
cat ./abstracts.json | jq '[.[] | {pmid, title, snippet: (.abstract // "")[:500]}]'
Filter by keyword (null-safe):
cat ./abstracts.json | jq '[.[] | select((.title // "") | contains("Review"))]'
When processing larger result sets (>10 abstracts):
jq to verify keywords in abstracts before reading
the full JSON into context.title and abstract fields unless explicitly
instructed otherwise. Author lists and metadata contribute to noise.⚠️ MANDATORY: You MUST read the linked reference file for a function group before calling any function in that group. The tables below only describe what each function does — not how to call it. Argument names, argument order, flags, and output schemas are only documented in the reference files. Do NOT guess or infer arguments from function names. If you call a function without first reading its reference, you will produce incorrect invocations.
search_pubmed: Find PMIDs matching a free-text or structured NCBI query.global_database_discovery: Count how many records match a query across
every NCBI database.fetch_article_abstracts: Retrieve metadata and abstracts for a batch of
PMIDs.get_full_text_pmc: Retrieve open-access full text from PMC.fetch_database_summary: Resolve opaque UIDs from any NCBI database into
human-readable metadata.find_linked_biological_data: Find records in other NCBI databases linked
to a source record.discover_available_links: List all available ELink linknames for a given
record.When working with more than ~10 PMIDs, avoid processing IDs one-by-one.
Upload them to the NCBI History Server via cache_results_history to get a
session handle (webenv + query_key), then pass that handle to
fetch_article_abstracts or find_linked_biological_data for a single bulk
call. Chain with jq shell pipelines to slim results before reading into
context. This prevents turn exhaustion and context overflow. See the reference
for complete workflow recipes (search→fetch, cross-db exploration, citation
resolution, and bulk retrieval with data slimming).
cache_results_history: Upload PMIDs to the NCBI History Server for bulk
retrieval.verify_medical_spelling: Spell-check biomedical terms before searching.match_raw_citations: Resolve incomplete bibliographic citations to PMIDs.Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
google-deepmind/science-skills
google-deepmind/science-skills
google-deepmind/science-skills
K-Dense-AI/scientific-agent-skills
K-Dense-AI/scientific-agent-skills
K-Dense-AI/scientific-agent-skills
Registry listing for pubmed-database matched our evaluation — installs cleanly and behaves as described in the markdown.
pubmed-database fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
pubmed-database reduced setup friction for our internal harness; good balance of opinion and flexibility.
We added pubmed-database from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
pubmed-database has been reliable in day-to-day use. Documentation quality is above average for community skills.
pubmed-database fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
Registry listing for pubmed-database matched our evaluation — installs cleanly and behaves as described in the markdown.
Solid pick for teams standardizing on skills: pubmed-database is focused, and the summary matches what you get after install.
pubmed-database has been reliable in day-to-day use. Documentation quality is above average for community skills.
Solid pick for teams standardizing on skills: pubmed-database is focused, and the summary matches what you get after install.
showing 1-10 of 60