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
| Primitive | Use it for |
|---|---|
| Files | Passive private PDF assets that may later feed a workflow or hosted link. |
| Documents | Parsed PDFs with pages, markdown, entities, chat completions, and citation context. |
| Host | Public or access-controlled PDF deployments on clean okrapdf.dev hostnames. |
| MCP | Remote agent tools for upload, verification, visual review, SQL/code analysis, and UI rendering. |
| Workflows | Built-in document workflows such as invoice extraction runs with reviewable outputs. |
| Collections | Multi-document groups for fan-out questions, exports, and analysis. |
How requests flow
Start here
Get an API key
Create a key in app.okrapdf.com/settings.
Ship a document surface
Add page rendering with React hooks, publish a hosted PDF with Host, or run invoice extraction.