drio
Open app

E-Book MCP Server with PDF Conversion

Source

A Simple MCP Server that allows you to convert HTML documents to PDFs

Catalog onlyCatalog onlySTDIO

Overview

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.

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.

  • 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.
  1. Creating e-books from HTML content.
  2. Generating PDF reports from web pages.
  3. Converting HTML documents for printing or sharing.

Add to your AI client

Use these steps to connect E-Book MCP Server with PDF Conversion in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "mcp-server-pdf-conversion-rmcendarfer2017": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-pdf-conversion-rmcendarfer2017"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "mcp-server-pdf-conversion-rmcendarfer2017": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-pdf-conversion-rmcendarfer2017"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-server-pdf-conversion-rmcendarfer2017": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-pdf-conversion-rmcendarfer2017"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "mcp-server-pdf-conversion-rmcendarfer2017": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-pdf-conversion-rmcendarfer2017"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-server-pdf-conversion-rmcendarfer2017": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-pdf-conversion-rmcendarfer2017"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-server-pdf-conversion-rmcendarfer2017": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-server-pdf-conversion-rmcendarfer2017"
      ]
    }
  }
}

FAQ

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.