# Private Ebook Library You Host Yourself

> Turn your DRM-free ebooks and PDFs into a private, searchable library on your own computer or home server, installed and customized by your AI.

Private Ebook Library You Host Yourself is a paid AI agent skill on Agensi by 許威廉 willians, in Productivity. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5.9 (one-time purchase)
- Creator: [許威廉 willians](https://www.agensi.io/creators/willians888)
- Category: [Productivity](https://www.agensi.io/skills/productivity)
- Version: 1.0
- Last updated: 2026-11-28
- Security: scan passed (2026-11-28); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/private-ebook-library-you-host-yourself
- Tags: productivity, python, fastapi, sqlite, self-hosted, ebooks

## About this skill

Turn your DRM-free ebooks and PDFs into a private, searchable library on your own computer or home server. Your AI installs a working FastAPI + SQLite app, sets it to local-only or password access, and customizes it: categories, classification rules, AI provider. Covers and metadata come from Google Books; PDF highlights become reading notes.

Also replies in Traditional Chinese.

**A ready-to-run private library for the DRM-free ebooks and documents you own, installed and customized by your AI.**

### What it does
You get a working web app and a Skill that tells your AI how to set it up safely and change it:

- **Upload or batch-import** EPUB, PDF, MOBI, AZW3, TXT, DJVU, FB2, CBZ and more (200 MB per file). Originals stay where they are.
- **Automatic metadata**: title, author, ISBN, publisher and a cover thumbnail from the Google Books API, with title clean-up and Simplified-to-Traditional Chinese conversion.
- **Classification** into 17 default categories using layered keyword rules, with optional AI suggestions through your own Gemini or Anthropic API key (rate-limit back-off and fallback built in).
- **PDF highlights to notes**: highlighted and underlined passages are pulled out of your PDFs; magazine-article PDFs get issue numbers and their own section.
- **Search, filters, trash with restore**, download stats, an inline PDF viewer, and for a household: comments, emoji reactions and a shared to-read / to-buy list.
- **Private by default**: it listens only on your own computer. Household access requires a password, and there is no anonymous public mode.

### Who it's for
Readers with a folder of DRM-free purchases, public-domain classics and their own papers who want one tidy, searchable shelf on their own computer, NAS or home server, without a cloud service.

### How it works
1. Your AI asks four things: OS, where it runs, just you or a household, and whether you have an AI key.
2. It copies the app, creates a Python virtual environment, writes the settings file and starts the server.
3. It checks the homepage and API, uploads a public-domain test book and confirms it's listed.
4. It imports your folder (dry run first) and shows you how to start, stop and back up.
5. Later requests: new categories, keyword rules, a different AI model, English UI strings or a new feature, each compile-checked and verified.

### What you provide / what you get
**You provide:** a computer with Python 3, your own ebook files, optionally a Gemini or Anthropic API key.
**You get:** the full app source (FastAPI, SQLite, no-build React page, batch import script, start script), an architecture guide with known gotchas, and a hosting checklist your AI reads before anything leaves localhost.

### Example requests
- "Set up my ebook library on this Mac, just for me, and import ~/Books/DRM-free."
- "Let my family use it on our home Wi-Fi with a password, and add a 'Poetry' category."

### Requirements
Python 3.10+ (tested on 3.13), macOS, Linux or Windows. Internet for Google Books metadata and the page's CDN scripts. An AI API key is optional; a ChatGPT or Claude subscription is not an API key.

### Limits
- For files you have the right to store. No DRM removal or conversion of protected files, and no public or anonymous sharing.
- One shared login for a household, not per-user accounts.
- The interface and keyword rules are Traditional-Chinese-first. Your AI can translate the UI.
- It opens PDFs in the browser; other formats download to your own reader app.
- The hosting checklist is practical guidance, not legal advice.

## Requires

- Python

## Known limitations

No DRM removal or conversion. Single shared password only (no multi-user roles). UI is Traditional Chinese by default. Requires internet for Google Books metadata and frontend CDNs.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Private Ebook Library You Host Yourself skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What core problems does the Self Hosted Ebook Library Kit solve for collectors?

The kit automates the deployment of a private FastAPI-based ebook server, handling the heavy lifting of database configuration, metadata fetching via Google Books, and AI-powered genre classification so you don't have to build it from scratch.

### Does the library support all ebook formats and annotations?

The skill supports DRM-free EPUB, PDF, and MOBI files, and includes a specific feature to extract highlights and annotations directly from your PDF documents.

### What is included in the purchase of this skill?

You receive the complete deployment-ready asset package, including the FastAPI backend, the React frontend, the automated batch importer script, and a guided setup workflow for environment variables.

### Can I share my library with other people or devices in my household?

Yes, the library is private by default (localhost); however, the setup process includes an option to configure password-protected LAN access for sharing your collection with other devices in your home.

### Do I need a constant internet connection to access my ebooks?

While an internet connection is required for the initial setup, CDN-linked frontend assets, and fetching metadata, the core library and reading functionality work entirely offline once your books are indexed.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
