m190 avatar

Mathpix MCP by usefulapi

m190/usefulapi-mcp

Read and manage Mathpix OCR results, usage, and deletions for images and PDFs.

CCM score
67 of 100
GitHub stars
1
tools
12
transport
HTTP
last updated
Nov 24, 2026
View on GitHub

Own this MCP server? Claim it

What it does

  • Runs OCR with mathpix_ocr_image and mathpix_submit_document, which are billed per image or per page; reads results with mathpix_get_document_output and mathpix_get_conversion_output
  • Checks state and history with mathpix_get_usage, mathpix_list_image_results, mathpix_list_documents, and status tools; deletes outputs permanently with mathpix_delete_document and mathpix_delete_conversion
  • Requires a Mathpix API key and a public URL for images and documents; deletions cannot be undone
  • Designed for extracting math, text, and tables from scans and reconciling Mathpix billing

Install

$ npx -y add-mcp https://mathpix.usefulapi.io/mcp --name mathpix -y

Adds the server to every agent config it finds in this project.

Review the command, arguments and environment values before installing. MCP servers run with your local permissions.

Other ways

Claude Code

$ claude mcp add --transport http mathpix https://mathpix.usefulapi.io/mcp

Run in your terminal. Add --scope user to make it available in every project.

Tools

Verified live · 12 tools

Verified live against the running server on Nov 25, 2026.

mathpix_get_usageAPI usage counts for this Mathpix account over a date range, grouped by usage type (image, image-async, pdf ...), request arguments or app id and aggregated by a timespan. Use it to reconcile billing and watch consumption. Free to call. GET /v3/ocr-usage.4 params

API usage counts for this Mathpix account over a date range, grouped by usage type (image, image-async, pdf ...), request arguments or app id and aggregated by a timespan. Use it to reconcile billing and watch consumption. Free to call. GET /v3/ocr-usage.

Parameters* required
from_datestring
Start (included): ISO 8601 date or date-time.
group_bystring
What to group the counts by (default usage_type).one of usage_type · request_args_hash · app_id
timespanstring
Aggregation period, a lowercase word such as month (default), week or day. Mathpix rejects values it does not know.
to_datestring
End (excluded): ISO 8601 date or date-time.
mathpix_list_image_resultsSearch and list stored results of earlier image/strokes OCR requests (/v3/text etc.), newest first: the recognized text, confidence, detected content types and the request options. Requests made with improve_mathpix=false are not stored. Free to call. GET /v3/ocr-results.11 params

Search and list stored results of earlier image/strokes OCR requests (/v3/text etc.), newest first: the recognized text, confidence, detected content types and the request options. Requests made with improve_mathpix=false are not stored. Free to call. GET /v3/ocr-results.

Parameters* required
contains_chemistryboolean
true: results containing chemistry diagrams.
contains_diagramboolean
true: results containing diagrams.
contains_tableboolean
true: results containing a table.
from_datestring
Only results at or after this ISO 8601 date or date-time.
is_handwrittenboolean
true: results containing handwritten text/math.
is_printedboolean
true: results containing printed text/math.
pageinteger
Page number, from 1 (default 1). Pass the previous reply's next_page.
per_pageinteger
Results per page, 1-100 (default 25).
tagsarray
Only results carrying these tags (as set on the OCR request).
textstring
Only results whose recognized text contains this string.
to_datestring
Only results before this ISO 8601 date or date-time.
mathpix_list_documentsList documents previously submitted for async processing (/v3/pdf), newest first: pdf_id, input file or URL, status (received, loaded, split, completed, error), page counts and timestamps. Use the pdf_id with the get/output tools. Free to call. GET /v3/pdf-results.4 params

List documents previously submitted for async processing (/v3/pdf), newest first: pdf_id, input file or URL, status (received, loaded, split, completed, error), page counts and timestamps. Use the pdf_id with the get/output tools. Free to call. GET /v3/pdf-results.

Parameters* required
from_datestring
Only documents at or after this ISO 8601 date or date-time.
pageinteger
Page number, from 1 (default 1). Pass the previous reply's next_page.
per_pageinteger
Results per page, 1-100 (default 25).
to_datestring
Only documents before this ISO 8601 date or date-time.
mathpix_get_document_statusProcessing status of a submitted document: status (received, loaded, split, completed, error), pages done, and the status of each requested conversion. Poll this until status is completed before reading the output (percent_done reaches 100 before the output files exist). Free...1 params

Processing status of a submitted document: status (received, loaded, split, completed, error), pages done, and the status of each requested conversion. Poll this until status is completed before reading the output (percent_done reaches 100 before the output files exist). Free...

Parameters* required
pdf_id*string
The pdf_id returned by mathpix_submit_document or listed by mathpix_list_documents.
mathpix_get_conversion_statusStatus of the output-format conversions of a document (the pdf_id) or of a Markdown conversion (the conversion_id): one entry per requested format with status processing, completed or error. Free to call. GET /v3/converter/{id}.1 params

Status of the output-format conversions of a document (the pdf_id) or of a Markdown conversion (the conversion_id): one entry per requested format with status processing, completed or error. Free to call. GET /v3/converter/{id}.

Parameters* required
id*string
A pdf_id, or the conversion_id returned by mathpix_convert_markdown.
mathpix_get_document_outputRead the TEXT result of a processed document: mmd (Mathpix Markdown, the primary output), md (plain Markdown), html, latex (single .tex) or lines.json (line-by-line data with geometry). Long outputs come back in slices (offset / next_offset). Binary formats (docx, pdf, zip, im...4 params

Read the TEXT result of a processed document: mmd (Mathpix Markdown, the primary output), md (plain Markdown), html, latex (single .tex) or lines.json (line-by-line data with geometry). Long outputs come back in slices (offset / next_offset). Binary formats (docx, pdf, zip, im...

Parameters* required
format*string
Output format: mmd, md, html, latex, lines.json.one of mmd · md · html · latex · lines.json
id*string
The pdf_id of a completed document.
max_charsinteger
Characters to return, up to 45000 (default 40000); fewer come back when the text needs heavy escaping, so always continue from next_offset.
offsetinteger
Character offset to start from (default 0). Pass the previous reply's next_offset to read on.
mathpix_get_conversion_outputRead the TEXT result of a Markdown conversion started with mathpix_convert_markdown: md, html or latex. Long outputs come back in slices (offset / next_offset). Binary formats cannot be fetched through this server. Free to call. GET /v3/converter/{conversion_id}.{ext}.4 params

Read the TEXT result of a Markdown conversion started with mathpix_convert_markdown: md, html or latex. Long outputs come back in slices (offset / next_offset). Binary formats cannot be fetched through this server. Free to call. GET /v3/converter/{conversion_id}.{ext}.

Parameters* required
format*string
Output format: md, html, latex.one of md · html · latex
id*string
The conversion_id returned by mathpix_convert_markdown.
max_charsinteger
Characters to return, up to 45000 (default 40000); fewer come back when the text needs heavy escaping, so always continue from next_offset.
offsetinteger
Character offset to start from (default 0). Pass the previous reply's next_offset to read on.
mathpix_ocr_imageBILLED BY MATHPIX (pay as you go, per image; see mathpix.com/pricing/api): recognize math, text, tables and chemistry in ONE image and return Mathpix Markdown (LaTeX math inside \( \) / \[ \]), and optionally HTML, styled LaTeX or structured data. The image must be a public UR...7 params

BILLED BY MATHPIX (pay as you go, per image; see mathpix.com/pricing/api): recognize math, text, tables and chemistry in ONE image and return Mathpix Markdown (LaTeX math inside \( \) / \[ \]), and optionally HTML, styled LaTeX or structured data. The image must be a public UR...

Parameters* required
enable_document_layoutboolean
true for a full page (lists, multi-line layout); default is snippet mode.
formatsarray
Output formats (default: text = Mathpix Markdown). data = extracted asciimath/mathml/latex/svg/tsv; latex_styled = single-equation LaTeX.
improve_mathpixboolean
Set false to opt this request out of Mathpix using the image/document to improve its models (it then also will not appear in the results-query tools). Omit to use the account default.
include_line_databoolean
true to also return line-by-line data with positions (larger reply).
include_smilesboolean
true to read chemistry diagrams as <smiles> notation.
src*string
Image to read: a PUBLIC http(s) URL that Mathpix can download (up to 10 MB), or a data:image/png|jpeg|gif|webp|bmp|tiff;base64,... string (up to 1000000 characters; prefer a URL). This server canno...
tagsarray
Tags stored with the result, searchable with mathpix_list_image_results.
mathpix_submit_documentBILLED BY MATHPIX (pay as you go, per page processed; see mathpix.com/pricing/api): start async conversion of a PDF, DOCX, PPTX, EPUB or similar document at a PUBLIC URL into Mathpix Markdown. Returns a pdf_id immediately; poll mathpix_get_document_status until completed, then...4 params

BILLED BY MATHPIX (pay as you go, per page processed; see mathpix.com/pricing/api): start async conversion of a PDF, DOCX, PPTX, EPUB or similar document at a PUBLIC URL into Mathpix Markdown. Returns a pdf_id immediately; poll mathpix_get_document_status until completed, then...

Parameters* required
improve_mathpixboolean
Set false to opt this request out of Mathpix using the image/document to improve its models (it then also will not appear in the results-query tools). Omit to use the account default.
include_smilesboolean
Read chemistry diagrams as <smiles> notation (default true at Mathpix).
page_rangesstring
Pages to process (and be billed for), e.g. "2,4-6"; "2 - -2" = page 2 to the next-to-last. Default: all pages.
url*string
PUBLIC http(s) URL where Mathpix can download the document (PDF, DOCX, PPTX, EPUB, ... up to 1 GB). This server cannot read local files.
mathpix_convert_markdownConvert Mathpix Markdown (MMD) text into plain Markdown, HTML or LaTeX. Returns a conversion_id; read the result with mathpix_get_conversion_output (check mathpix_get_conversion_status first). Conversions may be billed by Mathpix under your plan; see mathpix.com/pricing/api. E...3 params

Convert Mathpix Markdown (MMD) text into plain Markdown, HTML or LaTeX. Returns a conversion_id; read the result with mathpix_get_conversion_output (check mathpix_get_conversion_status first). Conversions may be billed by Mathpix under your plan; see mathpix.com/pricing/api. E...

Parameters* required
formats*array
Output formats to produce: md, html and/or latex.
improve_mathpixboolean
Set false to opt this request out of Mathpix using the image/document to improve its models (it then also will not appear in the results-query tools). Omit to use the account default.
mmd*string
The Mathpix Markdown text to convert (up to 500000 characters).
mathpix_delete_documentPERMANENTLY delete a processed document's output at Mathpix (Markdown, JSON lines, images, all converted formats) and the uploaded source copy. Cannot be undone; read what you need first. Only billing metadata is kept. DELETE /v3/pdf/{pdf_id}.1 params

PERMANENTLY delete a processed document's output at Mathpix (Markdown, JSON lines, images, all converted formats) and the uploaded source copy. Cannot be undone; read what you need first. Only billing metadata is kept. DELETE /v3/pdf/{pdf_id}.

Parameters* required
pdf_id*string
The pdf_id of the document to delete.
mathpix_delete_conversionPERMANENTLY delete the output files of a Markdown conversion at Mathpix. Cannot be undone; read what you need first. DELETE /v3/converter/{conversion_id}.1 params

PERMANENTLY delete the output files of a Markdown conversion at Mathpix. Cannot be undone; read what you need first. DELETE /v3/converter/{conversion_id}.

Parameters* required
conversion_id*string
The conversion_id of the conversion to delete.

Readme

usefulapi

Hosted MCP servers for the tools you already use — connect from Claude, Cursor, or any MCP client. No local install, no key-juggling: authorize once and go.

Portal: https://usefulapi.io

Servers


View the full README on GitHub

Details

Repository
github.com/m190/usefulapi-mcp
Website
usefulapi.io/mathpix
Categories
Docs & Knowledge Bases, AI Image, Video & Voice
Transport
HTTP
Registry
MCP registry, active
Prompts
7
Tools verified
Nov 25, 2026

More from m190

All 30

Similar to Mathpix MCP by usefulapi

More Docs & Knowledge Bases