Skip to content

NextPDF Connect

NextPDF Connect

NextPDF Connect is the nextpdf/server package. It runs as a long-lived service that exposes the NextPDF PDF 2.0 engine to artificial intelligence (AI) agents and Hypertext Transfer Protocol (HTTP) clients. The same tool registry is available through three transports: Model Context Protocol (MCP) over standard input and output, a Representational State Transfer (REST) Application Programming Interface (API) described by an OpenAPI 3.1 document, and gRPC defined by the nextpdf.connect.v1 Protocol Buffers package. Every tool declares a risk level. Tools at the highest level must pass a human-in-the-loop (HITL) confirmation gate before they run.

Use this section when you operate or integrate the server. Start with the Overview to understand the architecture, choose a transport, then use the API reference for exact tool and service symbols.

These pages cover the server’s concepts, configuration, and operations.

PageUse it for
OverviewThe package boundary, the three transports, and why tool count is a runtime property.
QuickstartA runnable first MCP handshake and the matching REST render request.
ConfigurationThe MCP YAML file, NEXTPDF_* environment variables, and the upgrade-only risk override.
Boot and discoveryHow each transport connects its server and discovers tools and tiers at boot.
Tool catalogThe verified, always-available core tool set and how runtime computes the total count.
HITL risk tiersThe four-level risk model and the confirmation challenge for tools that require approval.
DeploymentRoadRunner worker profiles, Docker, Redis-backed stores, and gRPC mutual Transport Layer Security (TLS).
Security and operationsAuthentication, transport security, the threat model, and the data-residency posture.

Each transport has its own reference page.

Transport pageUse it for
MCP transportJavaScript Object Notation Remote Procedure Call (JSON-RPC) 2.0 framing over stdio, and the initialize / tools/list / tools/call methods.
REST transportThe RoadRunner PSR-15 pipeline, OpenAPI 3.1 contract, bearer authentication, and tier-gated routes.
gRPC transportThe nextpdf.connect.v1.NextPDFConnect service, server-streaming RPCs, and metadata authentication.

Use these two pages when you build against the server.

PageRole
API referenceEvery registered tool by name and class, gRPC service and message symbols, the error model, and rate limits.
Developer guideThe architecture boundary, runtime lifecycle, tier resolution, confirmation gate, extension points, and testing checklist.