home / mcp / yakpdf mcp server

Yakpdf MCP Server

Provides access to the Yakpdf API through an MCP Server with a PDF generation tool.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "bach-ai-tools-bachai-yakpdf": {
      "command": "uvx",
      "args": [
        "--from",
        "bach-yakpdf",
        "bach_yakpdf"
      ],
      "env": {
        "API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}

This MCP Server provides programmatic access to the Yakpdf API, enabling you to generate PDFs and integrate Yakpdf capabilities into your applications through a lightweight, stdio-based MCP endpoint.

How to use

You can use this MCP Server by loading it into an MCP client or platform that manages MCP servers. The standard approach is to run the server locally in stdio mode or connect to it through an MCP management platform that supports the bach-yakpdf service. With the server available, you can request PDF generation from a URL or HTML string via the Yakpdf API integration.

Key usage patterns include starting the server with an MCP client integration, configuring your client with the provided environment variable for authentication, and issuing PDF generation requests through the client’s normal workflow. Ensure you supply your API key in the environment or in the client’s secure configuration so requests are authenticated. The service exposes a PDF generation tool that you can invoke as part of your workflow.

How to install

Prerequisites you need before installation: Python and pip for development options, and uvx for a streamlined runtime (recommended). Ensure you have a working Python environment and internet access to fetch dependencies.

# Prerequisites
python --version
pip --version

# Install via Python package manager
pip install bach-yakpdf

# Run in standard development mode
python server.py

# Alternative: use uvx for a zero-config experience
uvx --from bach-yakpdf bach_yakpdf

# Or run latest version with uvx
uvx --from bach-yakpdf@latest bach_yakpdf

Configuration and running notes

This API requires authentication. Set your API key as an environment variable to authorize requests from your MCP client. The following variable is used by the MCP server and any clients invoking it.

export API_KEY="your_api_key_here"

Client configuration examples

If you are configuring a Cursor MCP or Claude Desktop, you would reference the bach-yakpdf MCP config as shown in the example below. This enables your client to start the stdio-based server with the correct arguments and environment.

{
  "mcpServers": {
    "bach_yakpdf": {
      "command": "uvx",
      "args": ["--from", "bach-yakpdf", "bach_yakpdf"],
      "env": {
        "API_KEY": "your_api_key_here"
      }
    }
  }
}

Available tool

This server includes a PDF generation tool that creates a PDF from a URL or an HTML string. The endpoint is designed to be used through the MCP client workflow and is exposed as part of the Yakpdf integration.

Available tools

pdf

Generate a PDF from a URL or HTML string. Endpoints include a PDF generation flow suitable for client integration.