SmartPDF API · MCP

PDF operations for your code and AI agents

47 operations via REST API and MCP: conversion, compression, OCR with Russian support, a PDF editor, personal data redaction. Servers in Moscow, pay per request in rubles.

300 ₽ on your balance when you sign up — about 1,200 requests. No subscription, no card required.

Compress the contracts linked in the task and send me links to the results
smartpdf · compress_pdfcontract-01.pdf
4.2 MB → 1.1 MB0.25 ₽
smartpdf · compress_pdfcontract-02.pdf
2.8 MB → 0.9 MB0.25 ₽
smartpdf · compress_pdfreconciliation.pdf
12.6 MB → 3.4 MB0.50 ₽
Done: 3 files compressed, 1 ₽ charged to the API balance. Links below.
01 / Integration

Four ways to connect

One account and one balance for everything: API keys work for both REST and MCP.

01

REST API

POST /v1/pdf/compress

Any language or framework: upload → operation → status → download. Signed webhooks instead of polling.

Quick start
02

MCP server

mcp.smartpdf.ru/mcp

47 operations for Claude Code, Cursor, VS Code, Codex, and other agents. The key goes in the request header.

Connect an agent
03

n8n and Make

MCP Client · HTTP

PDFs in no-code workflows: the MCP Client node or an HTTP request to the REST API.

Guides
04

Claude Code plugin

/plugin install smartpdf@smartpdf

MCP and a skill for files on your computer — one command in Claude Code.

Install
02 / Agents

Connect to an agent in a minute

The MCP server gives your agent 47 SmartPDF operations — it picks the right one itself. Files go in as public links, and the result comes back as a download link. Payment comes from the same balance as the API.

Ask your agent:

  • Compress the PDFs at these links and send me links to the results
  • Recognize the text in this contract scan and turn it into a Word document
  • Merge three invoices into one PDF and number the pages
  • Add a “COPY” watermark to every page
  • How much is left on my SmartPDF balance?

The agent first uploads a file from your computer via the REST API — how to pass a file.

mcp.smartpdf.ru/mcp
export SMARTPDF_API_KEY=sk_live_…   # key from your dashboard
claude mcp add --transport http smartpdf https://mcp.smartpdf.ru/mcp \
  --scope user --header 'Authorization: Bearer ${SMARTPDF_API_KEY}'
Terminal. The single quotes are required: Claude Code substitutes the key from the variable when connecting, so it won’t end up in the settings. To check, run claude mcp list: smartpdf ✓ connected.
All clients: Windsurf, Cline, n8n, Make
03 / Operations

47 PDF and image operations

The same tools as on smartpdf.ru — for your code. Each operation is a single POST request with JSON parameters.

04 / Code

The full cycle in four requests

Upload a file, start the operation, wait for the done status, and download the result. Every example has been tested by running it against the API.

Compress PDF
#!/usr/bin/env bash
# SmartPDF API — Compress PDF: upload → operation → wait → download.
# Requires curl and jq.
# Get an API key in your dashboard: https://smartpdf.ru/en/dashboard/api-keys
set -euo pipefail
API="https://api.smartpdf.ru/v1"
AUTH="X-API-Key: $SMARTPDF_API_KEY"

# 1. Upload the file
FILE_ID=$(curl -sS --fail-with-body -H "$AUTH" -F "file=@document.pdf" "$API/upload" | jq -r .file_id)

# 2. Start the operation
BODY=$(jq -n --arg file_id "$FILE_ID" '{file_id: $file_id, level: "medium"}')
TASK_ID=$(curl -sS --fail-with-body -H "$AUTH" -H "Content-Type: application/json" \
  -d "$BODY" "$API/pdf/compress" | jq -r .task_id)

# 3. Wait for the result
while :; do
  TASK=$(curl -sS --fail-with-body -H "$AUTH" "$API/tasks/$TASK_ID")
  STATUS=$(echo "$TASK" | jq -r .status)
  [ "$STATUS" = done ] && break
  [ "$STATUS" = failed ] && { echo "Processing error: $(echo "$TASK" | jq -r .error)" >&2; exit 1; }
  sleep 2
done

# 4. Download the result
RESULT=$(curl -sS --fail-with-body -H "$AUTH" "$API/tasks/$TASK_ID/download")
curl -sS --fail-with-body -o "$(echo "$RESULT" | jq -r .filename)" "$(echo "$RESULT" | jq -r .download_url)"
echo "Done: $(echo "$RESULT" | jq -r .filename)"
bash quickstart.sh — requires curl and jq
05 / Why SmartPDF

Built for work in Russia

152-FZ

Data stays in Russia

Servers and backups are in Moscow. Personal data is processed under Federal Law 152-FZ.

₽

Pay as you go in rubles

Card or SBP, with a self-employed seller’s receipt. No subscription: pay for requests, and your balance never expires.

1 h

Files don’t pile up

Uploaded files are deleted after an hour, results — when your plan’s storage period ends.

HMAC

Signed webhooks

A completion notification signed with HMAC-SHA256 — no need to poll the status.

OCR

OCR that reads Russian

Scans become PDFs with a text layer: Russian, English, German, French.

limit

Spending control

A spending limit for each key: per day, week, month, or all time. Regenerate a key without changing its settings.

06 / Pricing

Pay only for requests

One ruble balance for REST and MCP. Charged before queuing; a processing error refunds the payment.

0.25 ₽per request — a file up to 10 MB
  • 300 ₽ on your balance when you sign up — about 1,200 requests.
  • Top-ups from 100 ₽ by card or SBP, with a self-employed seller’s receipt. No subscription.
  • Top-up bonus: from 5,000 ₽ +25%, from 20,000 ₽ +56%, from 65,000 ₽ +92%.
  • The balance never expires and is shared by all keys; each key has its own spending limit.
  • Business plan: 500 regular requests a month included.
How requests are counted — whichever is greater
Most operationsevery 10 MB or part thereof
Text recognition (OCR)10 MB or 10 pages
PDF to Word, Excel, PowerPoint, JPG10 MB or 50 pages (JPG 300 dpi: 25)
Mergeby the total size of the files

Calculator

Requests per file
1
Requests per month
1,000
Per month
250 ₽
07 / FAQ

Frequently asked questions

Do I need a subscription?

No. Each request is paid from your account’s API balance — top it up when you need to. When you sign up, 300 ₽ is credited to your balance.

What is a request, and how is the price calculated?

A request is every 10 MB or part thereof of the input file: a file up to 10 MB is one request, 25 MB is three. For OCR and conversion to Office formats and JPG, pages are counted too — whichever is greater applies. The amount charged is shown in the dashboard and in the API response.

How do I pass a file to an agent?

MCP tools take a public link to the file (up to 100 MB) and return a link to the result. The agent uploads a file from your computer via the REST API: POST /v1/upload.

How long are files stored?

Uploaded files — one hour. Results — according to your account’s plan: one hour on Free, 7 days on Pro, 30 days on Business. Servers are in Moscow.

Is there a watermark?

No: results via the API and MCP have no watermark.

What are the limits?

Up to 10 requests per second per key and 30 operation requests per minute from one IP. File size depends on your account’s plan: 50 MB, 200 MB on Pro, 500 MB on Business. OCR — up to 100 pages at a time.

Can I pay on behalf of a company?

For now — by card or SBP, with a self-employed seller’s receipt. Need a large volume or special terms? Leave a request below.

Do I need the Pro or Business plan?

No, the API works with any plan. On Business, 500 regular requests a month are already included and are used before your balance.

08 / For companies

Let’s discuss your task

Need a large volume, different limits, or help with integration? Tell us about your task — a manager will contact you and help you find the right terms.

smartpdf@yandex.ru