PyNCBI documentation

PyNCBI is a programmatic, AI-agent-ready Python engine, CLI (pyncbi) and Model Context Protocol server (pyncbi mcp) for NCBI: GEO (Series, Samples, Platforms, DataSets), Entrez search with pagination, PubMed abstracts and PMC full-text Methods, Gene and platform annotation, SRA runs and FASTQ files, BioSample / BioProject / Taxonomy records, ClinVar and dbSNP variants, and genome assemblies via NCBI Datasets — using only the Python standard library, with no third-party runtime dependencies.

Installation

pip install PyNCBI

Optional: set NCBI_API_KEY for 10 requests/second (default 3) and PYNCBI_AGENT_MODE=1 for machine-oriented output (no progress bars or colors).

Indices