Automate PDFs with Built-In MCP Server & HTTP API
Mac PDF Editor is one of the first desktop PDF editors with a native Local HTTP Control API (http://127.0.0.1:4890) and a zero-dependency Model Context Protocol (MCP) server (mcp/server.mjs).
Connect to Claude Desktop, Cursor, or Antigravity
{
"mcpServers": {
"mac-pdf-editor": {
"command": "node",
"args": ["/path/to/mac-pdf-editor/mcp/server.mjs"]
}
}
}
Available MCP Tools & API Actions
pdf_editor_health/GET /health: verify app statuspdf_editor_get_state/GET /state: inspect open file, pages, zoom, metadatapdf_editor_open: open any local PDF in the live UIpdf_editor_extract_text&pdf_editor_search_text: read & search PDF contentpdf_editor_add_annotation: programmatically place text, highlights, rectangles, signatures, or stampspdf_editor_page_rotate,page_duplicate,page_delete: manipulate pagespdf_editor_save,pdf_editor_compress,pdf_editor_export_png: save, compress via Rustlopdf, and export PNG