kcc-epub-converter
Converts large comic archives (CBZ/CBR) into Kindle-optimized EPUB volumes with GPU acceleration, smart chunking under Amazon's 200MB limit, and device-specific profiles for manga/comics.
README
📚 KCC CBZ-to-Kindle EPUB MCP Server
An advanced Model Context Protocol (MCP) server built on top of Kindle Comic Converter (KCC) and PyTorch CUDA GPU acceleration.
Specifically designed to handle large comic archives (.cbz, .cbr, zip files up to 1GB+) and convert them into Kindle-optimized EPUB volumes cleanly partitioned under the ~200MB limit for Amazon's Send to Kindle service.
✨ Features
- ⚡ GPU VRAM Acceleration: Leverages PyTorch CUDA for batch image scaling, grayscale conversion, and gamma processing directly in VRAM.
- 📦 Send-to-Kindle Smart Chunking: Automatically partitions 1GB+ multi-volume comics into ~190MB EPUB chunks to guarantee compliance with Amazon's 200MB upload limit.
- 📱 Multi-Device Target Profiles: Custom E-ink display optimization for:
- Kindle Paperwhite 5 (
KPW5— 1236×1648) - Kindle Scribe (
KS— 1860×2480) - Kindle Oasis (
KO— 1264×1680) - Kindle Paperwhite 3/4 (
KPW34— 1072×1448) - Kindle Voyage / 11 (
KV/K11— 1072×1448)
- Kindle Paperwhite 5 (
- 📖 Manga & Comic Support: Full support for Right-to-Left (RTL Manga) and Left-to-Right (LTR Western Comics) reading styles.
- 🔍 Archive Inspector: Inspect total pages, uncompressed sizes, and estimated volume chunks before converting.
🛠️ Provided MCP Tools
| MCP Tool Name | Description | Key Parameters |
|---|---|---|
convert_cbz_to_kindle_epub |
Main tool to convert CBZ/CBR to Kindle EPUB chunks | file_path, profile, max_chunk_mb (default 190.0), manga_mode, upscale, use_gpu |
inspect_cbz |
Inspects image counts, size, volume estimates & GPU status | file_path |
split_cbz_archive |
Pre-splits a CBZ archive into smaller volume archives | file_path, output_dir, max_chunk_mb |
list_supported_profiles |
Lists device profile resolutions & CUDA device status | None |
⚙️ Requirements & Installation
System Prerequisites
- Python 3.10+
KindleComicConverter(kcc-c2e) CLI binary- NVIDIA GPU with CUDA drivers (Optional, for GPU acceleration)
Installation
# 1. Clone Repository
git clone https://github.com/AmitKumarMyT/kcc-epub-converter-mcp.git
cd kcc-epub-converter-mcp
# 2. Install Dependencies
pip install -r requirements.txt
🔌 Integrating with MCP Clients
Add the server entry to your MCP client configuration (mcp_config.json for Claude Desktop, Gemini Antigravity, or VS Code MCP Extension):
{
"mcpServers": {
"kcc-epub-converter": {
"command": "python3",
"args": [
"/absolute/path/to/kcc-epub-converter-mcp/mcp_server.py"
],
"env": {
"PATH": "/home/myt/.local/bin:/usr/local/bin:/usr/bin:/bin"
}
}
}
}
📜 License
This project is licensed under the terms specified in the LICENSE file.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
E2B
Using MCP to run code via e2b.