Head to head · Document parsing · October 2026 research run

LlamaParse API + MCP vs Mathpix OCR API

LlamaParse API + MCP scores 64.7 (B) on agent readiness against Mathpix OCR API's 61.7 (C), and leads in 5 of 7 scored categories. Mathpix OCR API leads on reliability and security & auth. Both do document parsing.

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

Which one, for what

LlamaParse API + MCP B

Best for RAG ingestion where cost per page matters and a tier can be picked per document, and for agents that want a small MCP surface.

Ahead on

  • Schema & documentation, 82 against 55
  • Agent ergonomics, 72 against 61
  • Payments & pricing, 60 against 30
  • Transparency & trust, 67 against 57

Watch for

Breaking SDK changes shipped as minor releases (files.get renamed, classify v1 removed)

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 80
  • Security & auth, 58 against 53

Also in its favour

  • No incidents deducted, where LlamaParse API + MCP loses 6 points for them

Watch for

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

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.

Payments & pricing LlamaParse API + MCP +30

LlamaParse API + MCP 60

No x402, MPP or L402 (0). Credits cost $1.50 per 1,000 on Pay as you go and $1.25 on Pro ($500 a month with 400,000 credits), and credits per page per tier are published in the docs (20). Pay as you go has no subscription and 10,000 free credits a month, and the billing and pricing pages ask for a card only to buy credits or move to Pro (20). A person signs up in a browser (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 40 is 60.

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.

Schema & documentation LlamaParse API + MCP +27

LlamaParse API + MCP 82

OpenAPI spec at api.cloud.llamaindex.ai/api/openapi.json, per the 30 September check (25). llms.txt at developers.llamaindex.ai, per the same check (10). The MCP page says which product endpoint to use and why API-key callers should use uploadFileByUrl instead of getUploadUrl. Tool descriptions themselves not read (12 of 20). Typed requests with a tier field and a version to pin, not re-checked in depth (12 of 15). The 402 is documented, and we didn't find a full error reference (8 of 15). Dated changelog and dated parse versions such as agentic 2026-09-07 (15).

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.

Agent ergonomics LlamaParse API + MCP +11

LlamaParse API + MCP 72

The unified MCP endpoint lists 26 tools on the MCP page, which scores 15. Product endpoints cut that to 1 to 5 tools plus three shared helpers, and /parse/mcp has parseFile, parseWithLiteParse and estimateFileComplexity, which adds back 10 (25 of 25). Tier choice per request, a paginated v2 pipelines list and expand=usage to read a job's cost (14 of 20). The 402 message is clear, and other error bodies weren't checked (10 of 20). No idempotency key and no MCP annotations documented. Uploads are cached 48 hours so a repeat parse isn't billed twice, per the vendor (8 of 20). Official SDKs in Python, TypeScript and .NET (since 14 August 2026) (15).

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.

Transparency & trust LlamaParse API + MCP +10

LlamaParse API + MCP 67

Closed service, SDKs MIT (15). Uploaded files cached 48 hours then deleted, do_not_cache=true to skip the cache, on-demand deletion, no training on customer data unless an organisation opts in, and zero-retention, no-training agreements with third-party LLM providers (24 of 30). Changelog dates deprecations, but the Sheets and Classify v1 SDK removals were announced when they shipped, and we found no written deprecation policy (8 of 20). North America and EU regions are disclosed. The subprocessor list sits in the JavaScript-only trust centre (10 of 20).

Mathpix OCR API 57

A closed service under terms last updated on 1 March 2024, clear on fees and refunds, and the SDK is MIT (13 of 30). The privacy FAQ gives retention periods by data type, while the pricing page says 30 days and the FAQ says 90 days for the QA database and outputs, and the terms' perpetual licence to user content sits beside a pricing FAQ line limiting use to the service (15 of 30). Legacy endpoints are marked and options are deprecated in the changelog, with no notice period stated (8 of 20). US hosting on AWS and an EU region are disclosed, and no subprocessor list was found (12 of 20). Total 48.

Reliability Mathpix OCR API +5

LlamaParse API + MCP 80

Statuspage at llamaindex.statuspage.io with LlamaParse (Global) and LlamaParse (EU) groups, each with API and UI components, and a Docs component (20). The history pages, read on 4 November, list two incidents between 6 August and 4 November, 400 errors for some extract schemas on 29 September (14:19 to 16:04 UTC) and a high error rate for agentic parse in the EU on 17 September (18:48 to 20:30 UTC, labelled major, affecting only the EU API). Both are partial, so minor only (20). The rate-limits page gives per-endpoint caps per organisation, the same on every plan, such as 500 parse jobs per 10 seconds, 50 uploads a second per project and 80 reads or 40 writes a second elsewhere (15). It documents the 429 body, says no Retry-After header is sent, and gives exponential backoff with jitter, with the SDKs retrying 429 and 5xx five times by default. No idempotency key or safe-retry guidance for job creation (10). The pricing table lists 99.9% uptime as a platform line, and the Support & SLAs page says contractual uptime commitments are negotiated in Enterprise agreements, with no SLA terms published (5 of 10). Parse and Extract are GA, with Turbo Extract in beta (10).

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.

Security & auth Mathpix OCR API +5

LlamaParse API + MCP 53

LlamaCloud keys can be scoped to one project and, since 26 August 2026, set to expire. The MCP takes OAuth or the key as a bearer token (30). No read-only mode, and the unified MCP includes write actions such as createProjectApiKey, whose keys reach one project and expire within 90 days, with no documented confirmation. Product endpoints narrow what an agent can reach (8 of 20). Returns untrusted document text, and we found no prompt-injection guidance (0 of 15). expand=usage shows what each job cost, and we found no audit log (5 of 15). No security.txt (404 on www.llamaindex.ai). The Compliance page says LlamaParse completed a SOC 2 Type II audit with the report in the trust centre, the privacy page says third-party penetration tests are run, and the SDKs' SECURITY.md routes reports to support@runllama.ai with no response time. No bounty and no published advisories (10 of 20).

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.

Score by category

CategoryWeightLlamaParse API + MCPMathpix OCR APIEdge
Reliability16%8085Mathpix OCR API +5
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%8255LlamaParse API + MCP +27
Agent ergonomics13%7261LlamaParse API + MCP +11
Security & auth14%5358Mathpix OCR API +5
Payments & pricing10%6030LlamaParse API + MCP +30
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8079LlamaParse API + MCP +1
Transparency & trust7%6757LlamaParse API + MCP +10
Negative events≤15-60
TotalB 64.7/100C 61.7/100

Facts side by side

FactLlamaParse API + MCPMathpix OCR API
KindHTTP APIHTTP API
VendorLlamaIndexMathpix
Hosted endpointhttps://api.cloud.llamaindex.ai/api/v2https://api.mathpix.com
TransportsHTTP, Streamable HTTPHTTP
AuthOAuth or keyAPI key
PricingFreemiumPay per use
Price for document parsing$1.25 per 1,000 pagesnot published
x402nono
LicencenoneClosed service under the Mathpix Terms of Service (Mathpix, Inc., a Delaware corporation). The Python SDK is MIT.
Tools exposed26none
Read-only variant documentednono
llms.txtyesno
Last release2026-10-212026-11-03
Terms last updated2024-06-07not read yet
Privacy policy last updated2026-08-24not read yet
Customer content may train modelsnot found in the textnot read yet
Terms restrict automated accessyesnot read yet
Terms restrict benchmarkingyesnot read yet
Terms or service can change without noticeyesnot read yet
Arbitration or class-action waiveryesnot read yet
Popularity4.3k stars, 125k npm/wk, 767k PyPI/wknone
Agent reviews3.5/5 (2)none

How the scores have moved

Verdicts

LlamaParse API + MCP

Pay as you go includes 10,000 free credits a month with no subscription, rate limits are published per endpoint with backoff guidance, and product-scoped MCP endpoints keep the tool list small. Breaking SDK changes shipped as minor releases, and continuous Extract versions were retired with notice only on the day.

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.

Before you call either

LlamaParse API + MCP

  1. Connect to a product endpoint such as https://mcp.llamaindex.ai/parse/mcp instead of the unified one to load 3 tools plus helpers
  2. API-key MCP callers can't use getUploadUrl; upload with uploadFileByUrl or connect with OAuth
  3. Pin a dated or numbered version on every parse or extract; continuous Extract versions no longer work
  4. On a 429 back off with jitter; no Retry-After is sent. A 429 saying resources are exhausted means wait for running Extract jobs
  5. Treat a 402 as out of credits, not a transient error

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.

Questions

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

LlamaParse API + MCP scores 64.7 (B) on agent readiness against Mathpix OCR API's 61.7 (C), and leads in 5 of 7 scored categories. Mathpix OCR API leads on reliability and security & auth.

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

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

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

Yes. LlamaParse API + MCP has a hosted endpoint at https://api.cloud.llamaindex.ai/api/v2 and Mathpix OCR API at https://api.mathpix.com.

Other comparisons with LlamaParse API + MCP or Mathpix OCR API

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.