kcc-epub-converter

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.

Category
访问服务器

README

📚 KCC CBZ-to-Kindle EPUB MCP Server

License Python 3.10+ MCP Standard NVIDIA CUDA

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)
  • 📖 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.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选