Skip to content
heartleo avatar

Z-Library

heartleo/zlib

Search, download, and manage Z-Library books and local e-book metadata from an MCP client.

CCM score
85 of 100
GitHub stars
4.2K
tools
15
transport
STDIO
env vars
2
last updated
Nov 22, 2026
View on GitHub

Own this MCP server? Claim it

What it does

  • Searches and reads with search_books, get_book, get_saved_books, and get_download_history, plus recommendations and popular lists
  • Downloads and manages with download_book, delete_download_history, send_to_kindle, and import_to_weread; check_domains and get_profile cover mirrors and quota
  • Needs a Z-Library account signed in through the CLI first, with Kindle or WeRead delivery needing their own setup and a local zlib binary on PATH
  • Designed for researchers and readers who want book lookup, delivery, and offline metadata cleanup inside an AI assistant

Tools

15 tools

Public tool metadata for what this MCP can expose to an agent.

search_booksSearch books with format, language, year, and order filters

Search books with format, language, year, and order filters

No parameter schema in public metadata yet.

get_bookFetch book metadata and description by `id:hash`

Fetch book metadata and description by `id:hash`

No parameter schema in public metadata yet.

get_recommended_booksPersonalized recommendations for the signed-in account

Personalized recommendations for the signed-in account

No parameter schema in public metadata yet.

get_most_popular_booksMost popular books on Z-Library

Most popular books on Z-Library

No parameter schema in public metadata yet.

get_saved_booksPaged favorite books

Paged favorite books

No parameter schema in public metadata yet.

get_download_historyPaged download history with optional format filter

Paged download history with optional format filter

No parameter schema in public metadata yet.

get_profileAccount profile and daily quota

Account profile and daily quota

No parameter schema in public metadata yet.

check_domainsProbe known mirrors to find reachable domains

Probe known mirrors to find reachable domains

No parameter schema in public metadata yet.

download_bookDownload a book by `id:hash` with MCP progress notifications

Download a book by `id:hash` with MCP progress notifications

No parameter schema in public metadata yet.

delete_download_historyRemove an entry from remote history by ID or `id:hash`

Remove an entry from remote history by ID or `id:hash`

No parameter schema in public metadata yet.

send_to_kindleSend a local ebook file to Kindle via SMTP

Send a local ebook file to Kindle via SMTP

No parameter schema in public metadata yet.

import_to_wereadImport a local EPUB, PDF, MOBI, AZW3 or TXT file into WeRead

Import a local EPUB, PDF, MOBI, AZW3 or TXT file into WeRead

No parameter schema in public metadata yet.

read_metadataRead a local ebook's metadata offline, what a lookup would search for, and the name `rename` would give it

Read a local ebook's metadata offline, what a lookup would search for, and the name `rename` would give it

No parameter schema in public metadata yet.

lookup_metadataLook a book up in online catalogues by file or by title, authors and ISBN; ranked matches, each with the fields it would change

Look a book up in online catalogues by file or by title, authors and ISBN; ranked matches, each with the fields it would change

No parameter schema in public metadata yet.

edit_metadataWrite fields into a local ebook, optionally rename it, with `dry_run` to preview

Write fields into a local ebook, optionally rename it, with `dry_run` to preview

No parameter schema in public metadata yet.

Configuration

ZLIB_MCP_READ_ONLYdefault: false

Set to true to expose only read tools: no download, history deletion, Kindle or WeRead delivery, or metadata editing.

ZLIB_MCP_ALLOWED_DIR

A folder to keep downloads, Kindle attachments, WeRead imports and the metadata tools inside. Leave empty for no limit.

Readme

zlib

A Z-Library CLI for you and your AI agents.

Go version CI Release Downloads License


View the full README on GitHub

Details

Repository
github.com/heartleo/zlib
Website
github.com/heartleo/zlib/blob/main/docs/mcp.md
Categories
Music, Streaming & News, Research & Academic
Package
https://github.com/heartleo/zlib/releases/download/v0.0.15/zlib_0.0.15_linux_x86_64.mcpb
Transport
STDIO
Registry
MCP registry, active

Questions

Which music, streaming and news MCP server ranks highest for searching Z-Library books?

Z-Library ranks in the top 3 of the Music, Streaming & News category on Claude Marketplaces. Its 15 tools let an agent search books by format, language and year, download them, and fix e-book metadata.

What can an agent do with the Z-Library MCP server?

The server lets an agent search and download Z-Library books, fetch book details, and check your favorites, download history and daily quota. It can also send books to Kindle or import them into WeRead, and read, look up and edit local e-book metadata.

What do I need before using the Z-Library MCP server?

You need a Z-Library account and a domain reachable from your network, which the zlib doctor command helps find. The server reads two environment variables, ZLIB_MCP_READ_ONLY and ZLIB_MCP_ALLOWED_DIR, and it runs over stdio.

How do I install the Z-Library MCP server?

Claude Marketplaces lists no install command for this server, so use the packaged mcpb files from its GitHub releases or the zlib CLI from the repository README. Once installed, the agent can search, download and edit e-books through its 15 tools.

Similar to Z-Library

More Music, Streaming & News