Skip to content
Cloud InfrastructureClaude Desktop Guide

Api2Pdf - PDF Generation, Powered by AWS Lambda Claude Desktop Integration

This guide explains how to configure Claude Desktop (Mac and Windows) to use the Api2Pdf - PDF Generation, Powered by AWS Lambda API through the Model Context Protocol (MCP). The integration exposes 9 API endpointsas callable tools inside Claude's chat interface, including Convert raw HTML to PDF, Convert URL to PDF, Convert URL to PDF, and more. No API keys or credentials are needed — setup takes approximately 30 seconds. The server runs locally via npx and communicates over STDIO transport. Paste the JSON configuration below into your claude_desktop_config.json file to get started.

Integration Specs

ClientClaude Desktop
Runtimenpx
AuthenticationNone
Setup Time~30 sec

Setup Instructions

1

Open Claude Settings

Launch Claude Desktop, open Settings (click your profile) → Developer → click 'Edit Config'.

2

Locate configuration file

This opens your local 'claude_desktop_config.json' file in your system editor.

3

Insert Server Config JSON

Paste the JSON configuration schema block (provided below) into the 'mcpServers' object.

4

Add authentication credentials

No credentials needed; leave the 'env' mapping empty.

5

Restart Claude app

Save the config file and restart Claude Desktop to load your new tools.

Configuration JSON

claude_desktop_config.json

Copy and paste this config snippet inside your local configuration file.

{
  "mcpServers": {
    "api2pdf-com": {
      "command": "npx",
      "args": [
        "-y",
        "@mcp/api2pdf-com"
      ],
      "env": {
        "API2PDF___PDF_GENERATION__POWERED_BY_AWS_LAMBDA_API_KEY": "your_api2pdf___pdf_generation__powered_by_aws_lambda_api_key"
      }
    }
  }
}

Required Environment Keys

Provide these variable keys in your local environment section:

API2PDF___PDF_GENERATION__POWERED_BY_AWS_LAMBDA_API_KEY

Replace your_api2pdf___pdf_generation__powered_by_aws_lambda_api_key with your secret key credentials.

Available Tools (9)

These endpoints are parsed from the OpenAPI schema and converted to Claude-compatible tools:

POST/chrome/html
Convert raw HTML to PDF
GET/chrome/url
Convert URL to PDF
POST/chrome/url
Convert URL to PDF
POST/libreoffice/convert
Convert office document or image to PDF
POST/merge
Merge multiple PDFs together
POST/wkhtmltopdf/html
Convert raw HTML to PDF
GET/wkhtmltopdf/url
Convert URL to PDF
POST/wkhtmltopdf/url
Convert URL to PDF
GET/zebra
Generate bar codes and QR codes with ZXING.