Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

Z-Library

MCP server by heartleo Community

Searches and downloads Z-Library books from the command line or an AI assistant. It also looks up and edits e-book metadata and sends books to Kindle or WeRead. Built for readers and developers who use Z-Library.

  • Score 94
  • 5k stars
  • MIT
  • Updated

About

Z-Library is a command-line tool for searching and downloading books from Z-Library. It also includes a terminal interface, opened with zlib tui, where users can browse favorites, recommendations, popular books, and download history. Search can be filtered by year, language, and format. The tool can also look up and edit e-book metadata, check the daily download quota, and send books to a Kindle or import them into WeRead.

For AI assistants, the zlib mcp command runs a local stdio MCP server. Plugins for Claude Code, Codex, and Grok bundle skills and the same server. Users should log in with zlib login so their password stays out of chat. A read-only flag hides download, history deletion, Kindle delivery, WeRead import, and metadata editing. The project suits readers and developers who want Z-Library access from a terminal or an agent.

Written from the project's README and checked against it.

Tools it gives your assistant

  • SearchSearches Z-Library by title, author, or ISBN, with filters for year, language, and format.
  • DownloadDownloads a book by its complete id, after viewing its details.
  • MetadataLooks up and edits e-book metadata for a file.
  • Kindle deliverySends a file to a configured Kindle address.
  • WeRead importImports a book into a WeRead shelf.
  • ProfileChecks the account and daily download quota.

What you need

  • A Z-Library account
  • The zlib command installed and on PATH for the MCP server
  • A signed-in session created with zlib login
  • SMTP setup for Kindle delivery
SettingNeededWhat it is
ZLIB_MCP_READ_ONLYEnvironment variableOptionalSet to true to expose only read tools: no download, history deletion, Kindle or WeRead delivery, or metadata editing. Default: false
ZLIB_MCP_ALLOWED_DIREnvironment variableOptionalA folder to keep downloads, Kindle attachments, WeRead imports and the metadata tools inside. Leave empty for no limit.

From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.

Try asking

  • Search Z-Library for epub copies of Dune
  • Look up the metadata for my ebook and fix the title and author
  • Send this epub file to my Kindle

Good to know

  • The read-only flag hides download, history deletion, Kindle, WeRead, and metadata editing tools.
  • Book covers appear only on terminals with Kitty graphics or Sixel support, at least 100 columns by 20 rows.
  • Most features need a Z-Library login, while metadata lookup needs no login.

Security check

C
  • Downloads a script from the internet and runs itIn README.md: curl -fsSL https://raw.githubusercontent.com/heartleo/zlib/main/install.sh | sh

Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to Z-Library

All alternatives →
MR Office XinaTian
98

Creates, opens, edits and exports Word, Excel, PowerPoint and PDF files through the MR Office MCP server. It suits AI assistants that need to work on real office documents, with the editor shown in chat when the client supports MCP Apps.

ACA Local and remote 5.8k
kordocchrisryugj
94

Parses Korean documents such as HWP, HWPX, PDF, XLSX, DOCX and PPTX into Markdown, and writes HWPX or HWP official documents from Markdown. It runs as a library, CLI, HTTP API or MCP server for AI assistants.

AAA Local 129k/wk
Desktop Commanderwonderwhy-er
94

Desktop Commander is an MCP server that lets an AI assistant run terminal commands, edit files and manage processes on your computer. It is for developers and users who want an assistant to work with local code and text.

AAA Local 1.4M/wk
MCP Linear tacticlaunch
94

Connects AI assistants to the Linear GraphQL API so they can manage projects, issues, and documents. Built for teams that want planning and project-management workflows in Linear, beyond basic issue CRUD.

AAB Local 69k/wk
Pptx Viewer MCP ChristopherVR
94

pptx-viewer MCP server and tools: manipulate, convert, and collaborate on PowerPoint .pptx files from AI agents.

AAB Local 50k/wk
Dsh Plugin Reactive Resume amruthpillai
94

Reactive Resume is a free, open-source resume builder with an MCP server for document management, imports, exports, checks and job application workflows. It suits people who want to write and track resumes and keep their data under their own control. The source describes the app itself and does not describe the DeepSeek Harness connection.

AAA Local 46k

Compare with MR Office, kordoc or Desktop Commander

Z-Library: common questions

Does Z-Library CLI need a Z-Library account?

Yes, the source says a Z-Library account is needed. Login is saved locally after the first sign in.

Can an AI assistant use this without seeing my password?

The source recommends logging in yourself with zlib login so your password stays out of chat. The MCP server then uses the saved session.

Can I stop an agent from downloading books?

Yes. Adding the --read-only flag after mcp hides download, history deletion, Kindle delivery, WeRead import, and metadata editing.

Is Z-Library the official server?

Z-Library is a community project by heartleo, not verified by a company domain.

Is Z-Library free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is Z-Library safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.

What are alternatives to Z-Library?

Similar MCP servers: MR Office, kordoc, Desktop Commander, MCP Linear.

Does Z-Library work with ChatGPT?

Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.

Add to stack

Loading.