ncbi-sequence-fetch
Agent skill fromgoogle-deepmind/science-skills
Retrieve protein and nucleotide sequences from NCBI databases using E-utilities. Supports direct accession lookup, CDS translation, gene+organism search, locus lookup, PubMed-linked sequences, patent protein extraction, and organism+length fallback search. Use when you need to fetch biological sequences by accession, gene name, locus tag, PubMed ID, or patent number.
How to install ncbi-sequence-fetch
install ncbi-sequence-fetch
# install the science-skills pack with the skills CLI
npx skills add google-deepmind/science-skills# or add only this skill to Claude Code: copy the folder
skills/ncbi_sequence_fetch/
# into
~/.claude/skills/ncbi_sequence_fetch/ (all projects)
.claude/skills/ncbi_sequence_fetch/ (one project)
1# NCBI Sequence Fetch23## Prerequisites451. **`uv`**: Read the `uv` skill and follow its Setup instructions to ensure6 `uv` is installed and on PATH.72. **User Notification**: If .licenses/ncbi_sequence_fetch_LICENSE.txt does not8 already exist in the workspace root directory then (1) prominently notify9 the user to check the terms at https://www.ncbi.nlm.nih.gov/ and10 https://www.ncbi.nlm.nih.gov/home/about/policies/, then (2) create the file11 recording the notification text and timestamp.123. **`.env` file**: Make sure the `.env` file exists in your home directory.13 Create one if it does not exist.144. **`NCBI_API_KEY`** (optional): Raises the NCBI rate limit from 3 to 1015 requests/second. The skill works without it, but a key is recommended if the16 user plans many queries or encounters a 429 error. You can register for a17 key for free at https://www.ncbi.nlm.nih.gov/account/settings/. You **MUST**18 use the safe credentials protocol in the `credentials` skill to check for19 and request this key if this skill looks relevant to the user's request.2021## Core Rules2223- **Use the Wrapper**: ALWAYS execute the provided helper scripts to query the24 database rather than accessing the database directly. The scripts25 automatically enforce the required rate limit gracefully.26- **API Key Support**: If the user provides an `NCBI_API_KEY` in their27 environment, the query speed limits are automatically increased28 significantly.29…
Excerpt shown under the repository's Apache-2.0 license.
