← All tools

pdf_to_text · REST + MCP

Extract text from a PDF

Extract the text from a PDF file at a URL and return it as markdown, page by page. Use it to read a PDF, parse a form, report, paper, invoice, or document, or convert a PDF to text. Works on PDFs with a text layer (scanned image-only PDFs return little or no text; no OCR).

$0.005 USD per successful paid call

Free to try. A few calls a day over MCP without a key. Daily limits apply; with a key, calls use the price above.

Charged once per call that returns a result, including an empty result list. Failed calls are free.

Connect your agent

Use it in your chat

Start with no key

In Claude.ai, Claude Desktop, Claude Code, ChatGPT or Codex, add a custom connector with this URL. No API key or Authorization header is needed.

MCP URL, no key needed
https://unstuckapi.com/mcp

Try a few free calls a day with read_page, domain_check, domain_info, pdf_to_text, vulnerability_lookup, or paper_search. Each free result says how many are left and when they reset (midnight UTC).

A paid tool called without a key returns a new API key and a payment link instead of a result, and nothing is charged. In Claude, a Connect button opens the same payment page. Once credit is added, the agent can continue in the same chat with that key.

Already have a key?

If your connector cannot send headers, use this URL instead. Replace YOUR_API_KEY with your key.

Connector URL with key
https://unstuckapi.com/mcp?key=YOUR_API_KEY

Keep the completed URL private: it contains your API key.

Ask your agent to call pdf_to_text with these arguments:

MCP arguments
{
  "url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
}

Inputs

Send these fields as a JSON object to POST /v1/tools/pdf_to_text.

Input fields for pdf_to_text
FieldTypeDescription & limits
urlstring
Required
The http(s) URL of the PDF file.Minimum characters: 1 · Maximum characters: 2048

Developer option: REST

Replace YOUR_API_KEY with your key. The following command makes a paid call if it succeeds.

Set your API key
export UNSTUCK_API_KEY="YOUR_API_KEY"
REST request
curl 'https://unstuckapi.com/v1/tools/pdf_to_text' \
  -H "Authorization: Bearer $UNSTUCK_API_KEY" \
  -H 'Content-Type: application/json' \
  --data '{"url":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"}'

The response contains result, charged_usd, and your remaining balance_usd. Invalid input and failed tool calls are not charged.

Developer option: MCP with a header

For clients that support headers, connect using Streamable HTTP and these values:

MCP URL
https://unstuckapi.com/mcp
Authorization header
Authorization: Bearer YOUR_API_KEY

Connection guide · Full JSON schemas and prices · Agent instructions