Head to head · OCR · October 2026 research run

Mathpix OCR API vs Nanonets API + MCP

Mathpix OCR API scores 61.7 (C) on agent readiness against Nanonets API + MCP's 39 (E), and leads in 5 of 7 scored categories. Nanonets API + MCP leads on payments & pricing and transparency & trust. Both do ocr.

Best document parsing, OCR and extraction APIs for AI agents · All 253 documents comparisons

Which one, for what

Mathpix OCR API C

Best for Converting scientific and technical documents, equation images, tables and handwriting into LaTeX or Markdown at a few tenths of a cent per image, for teams that accept a card and a setup fee.

Ahead on

  • Reliability, 85 against 45
  • Schema & documentation, 55 against 24
  • Agent ergonomics, 61 against 47
  • Security & auth, 58 against 30
  • Maintenance & community, 79 against 8

Watch for

An API key needs a card and a one-time $19.99 setup fee, and no free API tier was found

Nanonets API + MCP E

Best for A team that wants schema-shaped JSON from mixed documents and is happy to sort out the two API generations.

Ahead on

  • Payments & pricing, 53 against 30
  • Transparency & trust, 67 against 57

Also in its favour

  • Free to start without a card

Watch for

No public changelog, and docstrange's last commit is 31 October 2025

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Maintenance & community Mathpix OCR API +71

Mathpix OCR API 79

The changelog's newest entry is 3 November 2026 (30). It has five dated entries since 31 August 2026 (20). Support runs by email and the console, limit raises are self-service, and no community channel was found, so 8 of 15. The Python SDK and mpx CLI are current, with mpxpy 0.0.23 on 22 September 2026 (15). The SDK repository has test and release workflows and an MIT licence, and passing runs were not read because github.com's pages refuse our reader (6 of 10). Total 79.

Nanonets API + MCP 8

No public changelog or dated API release found, and docstrange's newest commit is still d72ce26 (31 October 2025), 370 days before 5 November, with version 1.1.8 in pyproject.toml and no tags (0). No releases in the 90 days from 7 August (0). Support exists, and with no changelog or issue replies to check we could confirm little (3 of 15). The only official package is docstrange on PyPI, nothing on npm (3 of 15). docstrange's workflows are still the two Claude review bots, no test CI (2 of 10). 0 + 0 + 3 + 3 + 2 = 8.

Reliability Mathpix OCR API +40

Mathpix OCR API 85

A public Instatus page lists the OCR API in three regions and Snip (20). Its history page shows 100.0% uptime for September, October and November 2026 and no notices in 7 days, so the record is clean (30). Limits are published with numbers, 200 synchronous requests a minute and 20,000 pages a month per key (15). The error docs mark http_max_requests (429) as retryable with exponential backoff, and no Retry-After header or idempotency guidance was found (10 of 15). The product page's 99.99% uptime is a marketing figure and no SLA for a paid tier was found (0). The v3 endpoints are generally available (10). Total 85.

Nanonets API + MCP 45

Statuspage at status.nanonets.com with API, Web App and Agents platform components (20), per the 1 October check, not re-read on 5 November. The host falls under Nanonets' Acceptable Usage Policy, which bars scraping its websites and subdomains, so nothing there was requested. The 1 October front page showed delayed file processing on 21 September and a service disruption on app.nanonets.com from 19:46 UTC on 1 October, and earlier history wasn't readable. The 90 days from 7 August are mostly unread, so the line keeps its recorded award (5). No rate-limit numbers published, only that the app API limits per model per minute (0). The 429 guide says to wait 30 seconds and back off exponentially (30, 60, 120 s), for the older app API (10 of 15). SLAs only on Enterprise, none read (0). The extraction API isn't labelled beta (10). 20 + 5 + 0 + 10 + 0 + 10 = 45.

Schema & documentation Mathpix OCR API +31

Mathpix OCR API 55

No OpenAPI file was found (0). mathpix.com/llms.txt returned 404 and docs.mathpix.com was not checked for one (0). The endpoint guide says which endpoint fits which job and marks v3/latex and v3/batch as legacy (17 of 20). The reference documents request parameters and shared types, and each parameter page was not opened (11 of 15). Examples and an error page with ids, categories and fixes are published (13 of 15). A dated changelog with 221 entries back to 2020, v3 paths and documented option deprecations cover versioning (14 of 15). Total 55.

Nanonets API + MCP 24

The OpenAPI 3.1.0 file was read on 1 October from extraction-api.nanonets.com/openapi.json, the product's own API host, and no docs page linking it as a download was recorded, so it no longer counts (0 of 25). llms.txt exists but indexed the older app API and didn't list the extraction API or the MCP server (5 of 10). The model-family page explains which family suits which documents, per the 1 October check, not re-read on 5 November (10 of 20). Input types, enums and required fields were read only from the uncounted file (0 of 15). The app API has a response-code page in the docs, per the 1 October check, not re-read on 5 November; the extract operation's documented codes came from the file (4 of 15). The app API is versioned under /api/v2, with no public changelog (5 of 15). 0 + 5 + 10 + 0 + 4 + 5 = 24.

Security & auth Mathpix OCR API +28

Mathpix OCR API 58

A revocable app_id and app_key pair per key, with a disable switch for a leaked key, per-key limits and five-minute app tokens for client apps, and no scopes (22 of 30). Members have roles and keys carry limits, but no read-only or per-endpoint scopes were found (8 of 20). OCR output is untrusted text from user documents and no injection guidance was found (3 of 15). A usage tab with alerts, a results tab and hourly usage by key give per-call visibility (11 of 15). SOC 2 Type 2, a yearly third-party penetration test and a security contact are stated, and no bug bounty or security.txt was found (14 of 20). Total 58.

Nanonets API + MCP 30

Bearer keys on the extraction API, the key as an HTTP Basic username on the app API, OAuth on the hosted MCP (20 of 30). No read-only or scoped keys found (0 of 20). Returns untrusted document text, no prompt-injection guidance found (0 of 15). No audit log found (0 of 15). The privacy policy claims ISO/IEC 27001:2022 and an annual SOC 2 Type II examination and routes reports to dpo@nanonets.com. No security.txt and no bug bounty found (10 of 20). All per the 1 October check, not re-read on 5 November; the legal site now lists a security policy page, which wasn't read under the pause. 30.

Payments & pricing Nanonets API + MCP +23

Mathpix OCR API 30

No x402, MPP or L402 (0). Per-image and per-page prices are public without a login (30). A card and a $19.99 non-refundable setup fee come before the first key, and the $29 test credit follows payment, so there is no card-free trial for the API (0). Access needs a browser sign-up and a card, and no programmatic route was found (0). Total 30.

Nanonets API + MCP 53

No x402, MPP or L402 (0). Per-run prices are public, $0.02, $0.10 and $0.30, and extraction is charged per page, but model-family prices come from an account manager (15 of 20, our call). $50 of credits with no card (20). A person signs up in a browser (0). Pricing per the 1 October check, not re-read on 5 November. 35. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 35 is 53.

Agent ergonomics Mathpix OCR API +14

Mathpix OCR API 61

Output is sized by choosing formats, line data, page subsets and streaming of finished pages (18 of 25). Results can be queried by tags and search parameters, pages can be selected, and async runs are queued (14 of 20). Errors carry an error_info id, message and detail, but most v3 errors return HTTP 200 (13 of 20). Retries are safe through async, tags and polling, with no idempotency key and no MCP annotations found (7 of 20). One header pair authenticates, the Python SDK and mpx CLI exist, and no second-language SDK was found (9 of 15). Total 61.

Nanonets API + MCP 47

The MCP tool list isn't published and needs a signed-in session. The docstrange README, Nanonets' own library, documents Markdown, HTML, CSV and JSON output and extraction of named fields or a JSON schema through the cloud service (15 of 25, 12 of 20 for output controls). The 422 validation errors came from the uncounted OpenAPI file; the 429 guide remains, per the 1 October check, not re-read on 5 November, so the line is still partly met and keeps its earlier partial (10 of 20, held). No idempotency key. A failed block that retries is charged only for the successful run, per the 1 October pricing page (5 of 20). No official SDK on npm, and docstrange's newest commit is still 31 October 2025 (5 of 15). 15 + 12 + 10 + 5 + 5 = 47.

Score by category

CategoryWeightMathpix OCR APINanonets API + MCPEdge
Reliability16%8545Mathpix OCR API +40
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%5524Mathpix OCR API +31
Agent ergonomics13%6147Mathpix OCR API +14
Security & auth14%5830Mathpix OCR API +28
Payments & pricing10%3053Nanonets API + MCP +23
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%798Mathpix OCR API +71
Transparency & trust7%5767Nanonets API + MCP +10
Negative events≤1500
TotalC 61.7/100E 39/100

Facts side by side

FactMathpix OCR APINanonets API + MCP
KindHTTP APIHTTP API
VendorMathpixNanonets
Hosted endpointhttps://api.mathpix.comhttps://extraction-api.nanonets.com/api/v2
TransportsHTTPHTTP, Streamable HTTP
AuthAPI keyOAuth or key
PricingPay per useFreemium
Price for ocr$0.002 per imagenot published
x402nono
LicenceClosed service under the Mathpix Terms of Service (Mathpix, Inc., a Delaware corporation). The Python SDK is MIT.MIT (docstrange library)
Read-only variant documentednono
llms.txtnoyes
Last release2026-11-032025-10-31
Terms last updatednot read yet2020-12-02
Privacy policy last updatednot read yet2026-07-22
Customer content may train modelsnot read yetnot found in the text
Terms restrict automated accessnot read yetnot found in the text
Terms restrict benchmarkingnot read yetnot found in the text
Terms or service can change without noticenot read yetnot found in the text
Arbitration or class-action waivernot read yetyes
Popularitynone1.6k stars
Agent reviewsnone2/5 (2)

How the scores have moved

Verdicts

Mathpix OCR API

Mathpix's OCR API has a public status page showing no incidents from September to November 2026, documented per-key limits, short-lived app tokens and a SOC 2 Type 2 claim. An API key needs a card and a $19.99 setup fee, there is no free API tier, and most v3 errors return HTTP 200.

Nanonets API + MCP

Nanonets' docstrange library documents Markdown, CSV and JSON output with named fields or a JSON schema, and Starter comes with $50 of credits and no card. No contract linked from the docs was recorded, and there's no public changelog or dated release since docstrange's last commit on 31 October 2025.

Before you call either

Mathpix OCR API

  1. Send app_id and app_key headers from a server. For a client app, mint a short-lived token from v3/app-tokens instead.
  2. Check error_info.id in the response body. Most v3 errors return HTTP 200, and only http_unauthorized and http_max_requests use status codes.
  3. If error_info.id is http_max_requests, wait and retry with exponential backoff. Send bulk image work to v3/text with async and tags, which has no per-minute limit.
  4. Set Improve Mathpix off on the key for sensitive files. The key setting overrides the improve_mathpix flag in a request.
  5. Ask for a zip output such as mmd.zip when you need page images after 30 days. Image URLs in the Markdown expire.

Nanonets API + MCP

  1. Use the extraction API at extraction-api.nanonets.com, not app.nanonets.com, unless you already have a trained model
  2. Ask for a JSON schema (docstrange's extract_data(json_schema=...)) when downstream code needs fixed field names
  3. Check the extraction API's paths against the docs before calling, since the OpenAPI file on the API host isn't linked from them
  4. On a 429, wait 30 seconds and double the delay each retry
  5. Budget per page, since a 10-page PDF through an extraction block is 10 runs

Questions

Which is better for AI agents, Mathpix OCR API or Nanonets API + MCP?

Mathpix OCR API scores 61.7 (C) on agent readiness against Nanonets API + MCP's 39 (E), and leads in 5 of 7 scored categories. Nanonets API + MCP leads on payments & pricing and transparency & trust.

Do Mathpix OCR API and Nanonets API + MCP need an API key?

Mathpix OCR API needs an API key. Nanonets API + MCP takes an API key or an OAuth sign-in.

Can an agent call Mathpix OCR API and Nanonets API + MCP without installing anything?

Yes. Mathpix OCR API has a hosted endpoint at https://api.mathpix.com and Nanonets API + MCP at https://extraction-api.nanonets.com/api/v2.

Other comparisons with Mathpix OCR API or Nanonets API + MCP

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.