A Simple MCP Server that allows you to convert HTML documents to PDFs
Overview
What is E-Book MCP Server with PDF Conversion?
E-Book MCP Server is a server application designed to convert HTML documents into PDF files, ensuring that embedded images are handled correctly during the conversion process.
How to use E-Book MCP Server?
To use the server, clone the repository, install the required Python packages, and call the handle_call_tool function with the appropriate arguments to convert your HTML files to PDF.
Key features of E-Book MCP Server?
- Converts HTML files to PDF with proper image handling.
- Supports both pdfkit and reportlab for PDF generation.
- Robust error handling and logging capabilities.
- Automatic cleanup of temporary files.
- Provides detailed diagnostic information during the conversion process.
Use cases of E-Book MCP Server?
- Creating e-books from HTML content.
- Generating PDF reports from web pages.
- Converting HTML documents for printing or sharing.
FAQ from E-Book MCP Server?
- What are the requirements to run the server?
You need Python 3.9+, and optionally wkhtmltopdf for better PDF quality.
- How do I install the server?
Clone the repository and install the required Python packages using pip.
- Can I use this server for large HTML files?
Yes, the server is designed to handle various sizes of HTML documents.