mcp-Pdf2png

mcp-Pdf2png

5

The PDF to PNG MCP Server is a Model Context Protocol server that facilitates the conversion of PDF documents into PNG images using a simple tool call. It requires Python, UV, and Poppler for functionality and supports configuration through Claude Desktop.

PDF to PNG MCP Server

A Model Context Protocol (MCP) server that provides PDF to PNG conversion capabilities. This server allows you to convert PDF documents into PNG images with a simple MCP tool call.

Prerequisites

  • Python 3.10 or higher
  • UV package manager
  • Poppler (required for pdf2image)

Installing Poppler

  • Windows: Download and install from poppler-windows
  • macOS: Use Homebrew to install
  • Linux: Use apt-get to install

Installation

  1. Clone the repository
  2. Create and activate a virtual environment
  3. Install the package

Usage

1. Configure MCP Client

Add server configuration to your claude_desktop_config.json.

2. Using the Server

Provides a single tool pdf2png with parameters:

  • read_file_path
  • write_folder_path

Output

  • Each PDF page is converted to a PNG image
  • Files are named sequentially

Contributing

Contributions are welcome through Pull Requests.