zlib2k-cli

Search Z-Library for books, download them, and send to your Kindle.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "zlib2k-cli" with this command: npx skills add semihum/zlibrary2kindle

ZLibrary2Kindle

Search Z-Library for books, download (EPUB preferred), and send to your Kindle via email.

Prerequisites

  1. ZLibrary account — email and password
  2. Kindle email whitelisted — Add sender in Amazon account settings
  3. Gmail App Password — Required for Gmail SMTP with 2FA

Setup

# Simplest — no install needed
uvx zlibrary2kindle --help

# Or install locally
pip install zlibrary2kindle
z2k --help

# Set environment variables
export ZLIBRARY_EMAIL="your@email.com"
export ZLIBRARY_PASSWORD="your-password"
export KINDLE_EMAIL="your-name@kindle.com"
export SENDER_EMAIL="your@email.com"
export SENDER_PASSWORD="xxxx xxxx xxxx xxxx"  # Gmail App Password

Tools

zlibrary_login

Authenticate to ZLibrary. Session cookies are saved to ~/.cache/zlibrary2kindle/session.json and reused automatically.

uvx zlibrary2kindle login
# or after install: z2k login

zlibrary_search

Search for books by title, author, ISBN, etc.

uvx zlibrary2kindle search "Python programming"
# or after install: z2k search "随园食单" --limit 5

Returns: list of books with book_id for use in download.

zlibrary_download

Download a book by its book_id (from search results).

uvx zlibrary2kindle download w8n2rz2N8Q
# or after install: z2k download <book_id>

Files saved to /tmp/zlibrary2kindle/downloads/.

kindle_send_email

Send a downloaded book to your Kindle.

uvx zlibrary2kindle send /path/to/book.epub "Book Title"
# or after install: z2k send /path/to/book.epub "Book Title" --to your@kindle.com

File is deleted after sending.

Quick workflow

# 1. Login (once)
uvx zlibrary2kindle login

# 2. Search
uvx zlibrary2kindle search "随园食单"
# → [z9lRkJxQ8y] 随园食单 | [清]袁枚

# 3. Download
uvx zlibrary2kindle download z9lRkJxQ8y

# 4. Send to Kindle
uvx zlibrary2kindle send /tmp/zlibrary2kindle/downloads/随园食单.epub "随园食单"

MCP Mode

When Claude Code has this project's MCP server loaded, tools are available directly: zlibrary_login, zlibrary_search, zlibrary_download, kindle_send_email.

Configuration

VariableDescription
ZLIBRARY_EMAILZLibrary account email
ZLIBRARY_PASSWORDZLibrary account password
KINDLE_EMAILTarget Kindle email address
SENDER_EMAILSMTP sender email
SENDER_PASSWORDSMTP password or Gmail App Password
SMTP_HOSTSMTP server (default: smtp.gmail.com)
SMTP_PORTSMTP port (default: 587)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Tyche Pro — Invoice & Fortune Engine

Tyche Pro — Invoice & Fortune Engine. Generate professional PDF-ready invoices, track multi-currency payments, apply tax and late fee calculations, send ti...

Registry SourceRecently Updated
General

wechat mp push 微信公众号图文生成与推送技能

支持通过AI生成符合公众号规范的图文(文章和贴图),并推送到公众号草稿箱,兼容其它SKILL生成的图文、图片进行推送。通过配置向导扫码授权,支持多账号。无需泄露公众号Secret密钥,无需配置公众号IP白名单。

Registry SourceRecently Updated
General

Difficult Conversation Prep

This skill helps you prepare and practice. It is not a substitute for professional therapy, mediation, or legal counsel. Clarify your situation, goals, scrip...

Registry SourceRecently Updated
General

Neighbor Conflict Resolution Script

Provides step-by-step scripts and advice for diplomatically resolving common neighbor disputes while aiming to preserve good relations.

Registry SourceRecently Updated