Document Tools
Detect and reconstruct embedded math formulas from vector PDFs: math-font recognition (CMMI/CMSY/CMEX, STIX, Cambria Math), Unicode math, super/subscripts and stacked fractions, AMS equation numbers ((2a)/(2b) subequations) preserved; outputs copyable LaTeX, presentation MathML (MathJax/KaTeX-compatible) and a downloadable .tex bundle.
Call this tool from your code in three languages.
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'http://127.0.0.1:3003/api/upload/presign/pdf-latex-mathml-mathjax-formula-extractor-and-equation-number-preserver' \
-H 'Content-Type: application/json' \
-d '{"filename":"pdfFile.ext","contentType":"application/octet-stream","size":12345}'
# 2) PUT the file bytes directly to the presigned uploadUrl
curl -X PUT '<presigned uploadUrl>' \
--data-binary @/path/to/file.ext
# 3) Call the tool, passing the returned storageKey for each file field
curl -X POST 'http://127.0.0.1:3003/en/api/tools/pdf-latex-mathml-mathjax-formula-extractor-and-equation-number-preserver' \
-F 'pdfFile=uploads/2026/01/01/your-tool-1700000000000-abc123.ext' \
-F 'scope=display' \
-F 'maxPages=20' \
-F 'renderPreview=true' \
-F 'writeTexBundle=false'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST http://127.0.0.1:3003/en/api/tools/pdf-latex-mathml-mathjax-formula-extractor-and-equation-number-preserver| Name | Type | Required | Description |
|---|---|---|---|
| pdfFile | fileupload required | Yes | — |
| scope | select | No | — |
| maxPages | number | No | — |
| renderPreview | checkbox | No | — |
| writeTexBundle | checkbox | No | — |
HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-pdf-latex-mathml-mathjax-formula-extractor-and-equation-number-preserver": {
"name": "pdf-latex-mathml-mathjax-formula-extractor-and-equation-number-preserver",
"description": "Detect and reconstruct embedded math formulas from vector PDFs: math-font recognition (CMMI/CMSY/CMEX, STIX, Cambria Math), Unicode math, super/subscripts and stacked fractions, AMS equation numbers ((2a)/(2b) subequations) preserved; outputs copyable LaTeX, presentation MathML (MathJax/KaTeX-compatible) and a downloadable .tex bundle.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=pdf-latex-mathml-mathjax-formula-extractor-and-equation-number-preserver",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "pdf-latex-mathml-mathjax-formula-extractor-and-equation-number-preserver",
"arguments": {
"pdfFile": "https://example.com/file.ext",
"scope": "display",
"maxPages": 20,
"renderPreview": true,
"writeTexBundle": false
}
}
}Questions or issues? Contact [email protected]