Skip to main content

Build PDF-aware agents and apps

OkraPDF gives every PDF a durable API surface: upload or reference a file once, then read pages, ask questions, verify citations, render previews, host clean links, and run document workflows from the same document ID. The fastest paths are the remote MCP server for agent tools, the TypeScript SDK for app code, and REST for direct platform integration.

Add to Claude

Connect the remote MCP server at https://api.okrapdf.com/mcp.

API Quickstart

Upload a PDF, poll status, read markdown, and ask a cited question.

TypeScript SDK

Use @okrapdf/sdk for sessions, file uploads, collections, and workflows.

Host PDFs

Publish clean *.okrapdf.dev links from files or documents.

Core primitives

PrimitiveUse it for
FilesPassive private PDF assets that may later feed a workflow or hosted link.
DocumentsParsed PDFs with pages, markdown, entities, chat completions, and citation context.
HostPublic or access-controlled PDF deployments on clean okrapdf.dev hostnames.
MCPRemote agent tools for upload, verification, visual review, SQL/code analysis, and UI rendering.
WorkflowsBuilt-in document workflows such as invoice extraction runs with reviewable outputs.
CollectionsMulti-document groups for fan-out questions, exports, and analysis.

How requests flow

Start here

1

Get an API key

Create a key in app.okrapdf.com/settings.
2

Pick an integration path

Use MCP for Claude and other agents, SDK for TypeScript apps, or REST for direct HTTP.
3

Ship a document surface

Add page rendering with React hooks, publish a hosted PDF with Host, or run invoice extraction.