ncbi-sequence-fetch
Retrieve protein and nucleotide sequences from NCBI databases using E-utilities.
Skill by MarceloClaro
Chalk Labs
Need help deploying ncbi-sequence-fetch?
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.
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/marceloclaro-ncbi-sequence-fetch
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.
About
Reviews
Write a reviewNo 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/ncbi-sequence-fetch
What's inside
- Skill name
ncbi-sequence-fetch- Description
- 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.
- License
- MIT
- Instructions
- 231 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- name: "ncbi-sequence-fetch" does not match folder "ncbi_sequence_fetch"
- files: referenced but missing: scripts/ncbi_fetch.py
- body: contains an absolute path from the author's machine
Files (1)
- SKILL.md
SKILL.md (first lines)
# NCBI Sequence Fetch
## Prerequisites
1. **`uv`**: Read the `uv` skill and follow its Setup instructions to ensure
`uv` is installed and on PATH.
2. **User Notification**: If LICENSE_NOTIFICATION.txt does not already exist in
this skill directory then (1) prominently notify the user to check the terms
at https://www.ncbi.nlm.nih.gov/ and
https://www.ncbi.nlm.nih.gov/home/about/policies/, then (2) create the file
recording the notification text and timestamp.
3. **`.env` file**: Make sure the `.env` file exists in your home directory.
Create one if it does not exist.
4. **`NCBI_API_KEY`** (optional): Raises the NCBI 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/.
If the variable is missing from `.env`, do NOT ask the user to paste it into
the chat (this would leak the key into the agent's context). Instead, give
the user this command — **substituting `ENV_FILE` with the resolved literal
path to the `.env` file**:
```bash
printf "Enter NCBI API key (typing hidden): " && read -s key && echo && echo "NCBI_API_KEY=$key" >> "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.
## Core Rules
- **Use the Wrapper**: ALWAYS execute the provided helper scripts to query the
database rather than accessing the database directly. The scripts
automatically enforce the required rate limit gracefully.
- **API Key Support**: If the user provides an `NCBI_API_KEY` in their
environment, the query speed limits are automatically increased
significantly.
- **Notification**: If this skill is used, ensure this is mentioned in the
output.
## Overview
Wraps NCBI's Entrez E-utilities (efetch, esearch, elink, esummary) for
retrieving protein and nucleotide sequences. Provides 10 subcommands covering
the full range of sequence retrieval workflows:
- `fetch-protein` — Direct protein accession lookup (GenPept, RefSeq)
- `fetch-nucleotide` — Direct nucleotide accession lookup
- `cds-translate` — Fetch CDS and translate to protein (3 methods)
- `search` — Free-text search of any NCBI database
- `elink` — Follow cross-database links (PubMed→Protein, etc.)
- `gene-protein` — Search protein by gene name + organism
- `locus-protein` — Search protein by locus tag + organism
- `pubmed-proteins` — Find proteins linked to a PubMed article
- `patent-search` — Extract protein sequences from patents
- `organism-length` — Last-resort search by organism + exact AA length
## Utility Scripts
**`scripts/ncbi_fetch.py`** — Single script with subcommands.
All subcommands write structured JSON output. Use `--output FILE` to save to a
file, or omit it to print to stdout. A human-readable summary is always printed
to stdout.
### 1. Fetch Protein by Accession
Fetches protein FASTA from NCBI by accession (XP_, NP_, GenPept, etc.)
```bash
uv run scripts/ncbi_fetch.py fetch-protein XP_022033624 -o /tmp/result.json
uv run scripts/ncbi_fetch.py fetch-protein NP_001234567 ABC12345.1
```
### 2. Fetch Nucleotide by Accession
Fetches nucleotide FASTA from NCBI by accession.
```bash
uv run scripts/ncbi_fetch.py fetch-nucleotide MK034466 -o /tmp/result.json
```
### 3. CDS Translate
Fetches a CDS/nucleotide accession and translates to protein sequence. Tries
three approaches in order: 1. NCBI's pre-translated CDS protein (`fasta_cds_aa`)
2. GenBank XML CDS annotation translations 3. Raw nucleotide → 6-frame ORF
finding
```bash
uv run scripts/ncbi_fetch.py cds-translate MK034466 -o /tmp/result.json
uv run scripts/ncbi_fetch.py cds-translate HQ662330 --target-length 1043
```
If the accession is a **genomic record** (not mRNA/CDS), the tool will report
`is_genomic: true` so you can fall back to a homology-based approach instead.
### 4. Search Any Database
Free-text search using Entrez query syntax. Supports all NCBI databases.
```bash
# Search protein database
uv run scripts/ncbi_fetch.py search "WRR4B[Gene Name] AND Arabidopsis[Organism]" \
--database protein --retmax 5 --fetch-sequences
# Search nucleotide database
uv run scripts/ncbi_fetch.py search "Rz2[Gene Name] AND Beta vulgaris[Organism]" \
--database nuccore --retmax 10
# Search with patent filter
uv run scripts/ncbi_fetch.py search "disease resistance AND Solanum[Organism] AND patent[Properties]" \
--database protein --fetch-sequences
# Search by sequence length
uv run scripts/ncbi_fetch.py search '"Oryza sativa"[Organism] AND 1043[SLEN]' \
--database protein --fetch-sequences --retmax 50From MarceloClaro/OpenCode_Ecosystem, MIT.
More from MarceloClaro/OpenCode_Ecosystem
- 0.546score
deploy
MarceloClaro
Checklist e procedimento pré-deploy.
SkillCFreshness: C★ 12Claude Code +9 - 0.545score
nexus-phd-strategist
MarceloClaro
Skill para orquestração de análises de nível PhD, integrando Teoria dos Jogos, 204 tipos de raciocínio (25 categorias) e auditoria Qualis A1.
SkillCFreshness: C★ 12Claude Code +9 - 0.542score
geology-ml-framework
MarceloClaro
Automatiza a criação de frameworks de Machine Learning (Perceptron/Softmax) para Geociências com rigor acadêmico Qualis A1.
SkillCFreshness: C★ 12Claude Code +9 - 0.542score
ecosystem-auditor
MarceloClaro
Automatiza a auditoria, diagnóstico e correção de ecossistemas multiagentes complexos.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
commit
MarceloClaro
Formata e valida mensagens de commit seguindo Conventional Commits.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
publish-pattern
MarceloClaro
Publica padrões reutilizáveis no global-index do claude-memories.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
pr-review
MarceloClaro
Checklist para abrir ou revisar pull request.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
reasoning-orchestrator
MarceloClaro
OpenCode Reasoning Orchestrator (v8.0).
SkillCFreshness: C★ 12Claude Code +9 - 0.540score
foldseek-structural-search
MarceloClaro
Performs 3D structural searches of proteins against various databases (PDB, AlphaFold, CATH, MGnify, etc.) using the Foldseek API.
SkillCFreshness: C★ 12Claude Code +9 - 0.540score
alphafold-database-fetch-and-analyze
MarceloClaro
Retrieve and analyze AlphaFold predicted structures for a protein.
SkillCFreshness: C★ 12Claude Code +9 - 0.540score
bugfix
MarceloClaro
Skill do ecossistema OpenCode - bugfix
SkillCFreshness: C★ 12Claude Code +9 - 0.540score
jaspar-database
MarceloClaro
Query the JASPAR database for Transcription Factor (TF) binding profiles.
SkillCFreshness: C★ 12Claude Code +9
Signals
- Stars
- 12
- Forks
- 3
- Open issues
- 0
- Last commit (this folder)
- Jun 14, 2026 (4 months ago)
- Last release
- May 30, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.369score
ncbi-sequence-fetch
Marvellbrazil
Retrieve protein and nucleotide sequences from NCBI databases using E-utilities.
SkillAFreshness: A★ 5Claude Code +9 - 0.315score
ncbi-sequence-fetch
hanyanphysics
Retrieve protein and nucleotide sequences from NCBI databases using E-utilities.
SkillCFreshness: C★ 5Claude Code +9
More from MarceloClaro
- 0.546score
deploy
MarceloClaro
Checklist e procedimento pré-deploy.
SkillCFreshness: C★ 12Claude Code +9 - 0.545score
nexus-phd-strategist
MarceloClaro
Skill para orquestração de análises de nível PhD, integrando Teoria dos Jogos, 204 tipos de raciocínio (25 categorias) e auditoria Qualis A1.
SkillCFreshness: C★ 12Claude Code +9 - 0.542score
ecosystem-auditor
MarceloClaro
Automatiza a auditoria, diagnóstico e correção de ecossistemas multiagentes complexos.
SkillCFreshness: C★ 12Claude Code +9 - 0.542score
geology-ml-framework
MarceloClaro
Automatiza a criação de frameworks de Machine Learning (Perceptron/Softmax) para Geociências com rigor acadêmico Qualis A1.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
pr-review
MarceloClaro
Checklist para abrir ou revisar pull request.
SkillCFreshness: C★ 12Claude Code +9 - 0.541score
publish-pattern
MarceloClaro
Publica padrões reutilizáveis no global-index do claude-memories.
SkillCFreshness: C★ 12Claude Code +9
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 ncbi-sequence-fetch 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.
Cite this page
ncbi-sequence-fetch skill. Agent Mart. https://agentmart.dev/skills/marceloclaro-ncbi-sequence-fetch (last updated 2026-10-24)