TollNode

Document to Markdown API and MCP for AI agents

TollNode gives Claude, Cursor or any AI agent a PDF, Word file, slide deck or scanned page as clean Markdown, with tables kept and OCR on scans, from $0.007 per document.

Ask in plain words, like 'turn this paper into Markdown and summarize the method', and get the text back.

No subscription · Sign-up optional · From $0.007 per call · Charged only when it works · No Datalab account needed

Claude Code

Convert this PDF to Markdown: arxiv.org/pdf/1706.03762, first page only

TollNode · Datalab · 1$0.007 · 1 document

ResultDetail
Pages read1
First headingAttention Is All You Need
FormatMarkdown with layout kept

Real result.

Works in Claude Code, Cursor, Codex, VS Code and any MCP agent.

What your agent gets from a document

Every result is structured JSON your agent can sort, filter, summarize or turn into a spreadsheet.

What people ask their AI to do with it

Use it as a Document to Markdown MCP server in Claude, Cursor or Codex

Connect once. Then just ask.

Paste this into Claude Code, Cursor or Codex. It connects TollNode and gives your agent a small wallet. Add a few dollars of USDC and you're done.

terminal
npx agentcash add https://tollnode.com

Copy for your AI agent

Paste this into your agent so it knows what this node does and how to call it.

prompt
You can use TollNode's Document to Markdown node. Call POST https://tollnode.com/api/v1/nodes/document-to-markdown with file (required), force_ocr (optional), max_pages (optional). The price depends on max_pages (1, 5, 20, 50; default 5) and is charged only when a result is returned. Over MCP, call the "document-to-markdown" tool; use list_models to see prices. Return results as tables when I ask for lists.

Price

from $0.0054

per page

One call: from $0.007 per document

The price depends on the max_pages you choose. If you don't choose, you get up to 5 pages.

up to 1 page$0.007 per document
up to 5 pagesdefault$0.028 per document
up to 20 pages$0.109 per document
up to 50 pages$0.271 per document

Charged only when a call returns a result. Failed or empty calls cost $0.

Document to Markdown data without a scraper

FAQ

Is this the official Datalab API?
No. TollNode is an independent service. It gives your agent document conversion through its own API and MCP server, priced by the page limit you choose.
Can I use it as a Document to Markdown MCP server in Claude?
Yes. Add https://tollnode.com/mcp in Claude Code, Claude Desktop or Cursor, and the "document-to-markdown" tool appears with its fields and price.
Which files work?
A public https link to a .pdf, .doc, .docx, .ppt, .pptx or image file.
What does max_pages do?
It sets the most pages to read and the price: 1, 5, 20 or 50. The default is 5.
Does it read scans?
Yes. Scanned pages are read with OCR. Set force_ocr to read every page as an image when a scan has a bad text layer.
Do I need a Datalab account?
No. Your agent calls TollNode, and you never log in to Datalab or share cookies.
What if nothing comes back?
You're not charged. TollNode only collects payment when a usable result is returned, and your agent can try a different input.

Ready in a minute

Connect your AI
For developers: endpoint, inputs and an example response

POST https://tollnode.com/api/v1/nodes/document-to-markdown

Input

FieldTypeNotes
file*stringPublic URL of a .pdf, .doc, .docx, .ppt, .pptx or image file (https). Or send the file inline as a base64 data: URI (up to 4.5 MB)
force_ocrbooleanRead every page as an image (for scans with a bad text layer), default false
max_pagesenumMost pages to read; sets the price. Default 5 (1, 5, 20, 50)

Example response

{
  "pages": 1,
  "markdown": "# Attention Is All You Need\n\n## Abstract\n\nThe dominant sequence transduction models are based on…"
}

Also described in the OpenAPI file and llms.txt. Setup for every app: Agents & MCP.