mcpField
Z
Z-Library

Z-Library

本地服务
github.com游戏娱乐5.1k1 天前更新

关于 Z-Library

Z-Library 是一款命令行工具,可搜索和下载图书、管理电子书元数据,并将文件发送到 Kindle 或 WeRead。它面向读者和 AI Agent,也提供终端界面、脚本输出以及可选的 MCP 服务。

主要功能

  1. 01按条件筛选和排序搜索
  2. 02浏览收藏与推荐书目
  3. 03下载图书并查看封面
  4. 04查询和编辑电子书元数据
  5. 05发送图书到 Kindle 和 WeRead
  6. 06终端界面与 JSON 输出

适用场景

  1. 01按书名、作者或 ISBN 查找图书
  2. 02将选中的图书下载到指定目录
  3. 03修正电子书文件的元数据
  4. 04将图书导入 Kindle 或 WeRead

MCP 相关

`zlib mcp` 命令会启动供客户端使用的本地 stdio MCP 服务。只读选项会隐藏下载、删除历史、发送、导入和编辑元数据等工具。

配置

本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。

暂未收录安装方式

我们还没有获取到这个服务的安装包或远程地址,请按项目 README 中的说明安装。

代码仓库
安装包
mcpbzlib_0.0.15_linux_x86_64.mcpb
mcpbzlib_0.0.15_linux_arm64.mcpb
mcpbzlib_0.0.15_darwin_x86_64.mcpb
mcpbzlib_0.0.15_darwin_arm64.mcpb
mcpbzlib_0.0.15_windows_x86_64.mcpb
mcpbzlib_0.0.15_windows_arm64.mcpb

工具

还没有获取到工具列表

本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。

README 原文English

来自项目 README

README 暂无中文译文,以下为英文原文;中文介绍见上方。

zlib

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

Go version CI Release Downloads License

heartleo%2Fzlib | Trendshift

English | 简体中文

Install · Quick start · Terminal interface · Commands · Agent setup · Docs

Book search in the terminal

Features

🔍 Search — filter by year, language, and format; sort results
📚 Browse — favorites, recommendations, popular books, and download history
📥 Download — view book details, choose a download directory
🖼️ Covers — show book covers in the terminal
🏷️ Metadata — look up and edit e-book metadata
📖 Send to Kindle — deliver files to your Kindle address
🌏 Send to WeRead — import books into your WeRead shelf
🕒 Profile — check your daily download quota
🎨 Themes — change the color theme
🌐 Network — check which mirrors work, trust your own mirror, or use a proxy
🤖 AI Agent Integration — integrate with Claude Code and Codex through Agent plugins

Install

macOS / Linux with Homebrew:

brew install heartleo/tap/zlib-cli

重要

The Homebrew formula was renamed from zlib to zlib-cli.
Use the command above. The installed command is still zlib.

macOS / Linux with the install script (installs to /usr/local/bin, may ask for sudo):

curl -fsSL https://raw.githubusercontent.com/heartleo/zlib/main/install.sh | sh

Windows with winget:

winget install --id heartleo.zlib --exact

Or download a binary from Releases and put it on your PATH. See Installation for Go installation, source builds, and upgrades.

Quick start

You need a Z-Library account. First, find a domain reachable from your network:

zlib doctor

Log in with a domain from the results. Replace the example URL below with one from your results; enter your email and password in the prompt:

zlib login --domain https://z-lib.gd
zlib tui

Press /, choose /search, enter a title, author, or ISBN, and press Ctrl+S. You can also type /search dune and press Enter. Select a book and press Enter to confirm the download.

Downloads default to the current directory. You can choose another folder before downloading. Login is saved locally; subsequent sessions only need zlib tui.

If no domain works or login fails, see Troubleshooting. Existing browser sessions can be imported as cookies.

Terminal interface

zlib tui opens one persistent shell. Every screen lists its keys at the bottom; these cover a first session:

KeyAction
/Open the command list: search, favorites, history, profile, metadata, settings, themes
↑/↓ or j/kSelect a book
←/→Previous or next page of results
EnterDownload the selected book, after a confirmation
Ctrl+FChange the query and filters of the current search
EscGo back
/quitExit

On a terminal with Kitty graphics or Sixel support, at least 100 columns by 20 rows, the selected book's card shows its cover; other terminals show text only (Book covers). /meta opens a file picker, then looks the chosen e-book up online and lets you review each field before writing it. It needs no login (E-book metadata).

Settings live under /config (network, downloads, search formats, metadata, Kindle, WeRead). See Terminal interface for every screen and key.

Commands

Pass a query for table output, or add --json for scripts:

zlib search "dune" --ext epub
zlib search "dune" --ext epub --json --count 10
TaskCommand
Browse favoriteszlib favorites
Browse recommendationszlib recommended
Browse popular bookszlib most-popular
Browse download historyzlib history
Check account and quotazlib profile
Send to Kindlezlib kindle send ./book.epub
Send to WeReadzlib weread import ./book.epub
Show a file's metadatazlib meta book.epub
Look up a file's metadatazlib meta book.epub --fetch
Edit a file's metadatazlib meta book.epub -t "Dune" -a "Frank Herbert" --rename

To download, replace id:hash with a book's complete id from the results:

zlib download "id:hash"

Run zlib <command> --help for flags. Usage covers filters, pagination, and download options.

Agent setup

Install the plugin, or register the MCP server (zlib mcp). The plugin brings the skills and the MCP server. If zlib is missing, the skills install it on first use; the MCP server needs it on PATH. Log in yourself with zlib login so your password stays out of chat.

Claude Code

Plugin:

/plugin marketplace add heartleo/zlib
/plugin install zlib@zlib-plugin-cc
Codex

Plugin:

codex plugin marketplace add heartleo/zlib
codex plugin add zlib@zlib
Grok

Plugin:

grok plugin marketplace add heartleo/zlib
grok plugin install zlib --trust
MCP server

Register zlib mcp as a local stdio server. zlib must be on PATH and signed in:

# Claude Code
claude mcp add -s user zlib -- zlib mcp

# Codex
codex mcp add zlib -- zlib mcp

# Grok
grok mcp add zlib -- zlib mcp

Add --read-only after mcp to hide download, history deletion, Kindle delivery, WeRead import and metadata editing. See MCP server for other clients, flags, and tools.

Documentation

GuideCovers
InstallationInstall methods, source builds, zlib update
UsageSearch, downloads, favorites, history
Terminal interfaceCommands and keyboard controls
Book coversSupported terminals, limits and cache
E-book metadataLookup sources, editing, renaming, formats
ConfigurationDomains, proxies, folders, configuration paths
ThemesAvailable palettes and preview controls
KindleSMTP setup and delivery
WeReadQR login and imports into WeRead
MCP serverClient setup, flags, and tools for zlib mcp
TroubleshootingLogin and network problems

Report bugs in Issues with your zlib version, OS, command, and error. Omit passwords, cookies, and session files. Report security vulnerabilities privately as described in SECURITY.md.

Star History

Star History Chart

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。