Markdown to PDF

API documentation

MCP for AI agents

On this page

Integrate

MCP for AI agents

Connect the remote MCP server to Claude Code and compatible AI agents.

Configure the server

Add the remote HTTP server once and provide a publishing-scoped API key through an environment variable.

.mcp.json
{
  "mcpServers": {
    "markdown-to-pdf": {
      "type": "http",
      "url": "https://markdowntopdfconverter.com/mcp",
      "headers": {
        "Authorization": "Bearer ${MD2PDF_API_KEY}"
      }
    }
  }
}

Publish from the conversation

Ask the agent to recommend a task-specific template before rendering. Returned artifact links are private and short-lived.

Checking API access

Loading your activation state.