# PDF to Markdown

> PDF to Markdown is a freemium MCP server for files and documents. Hosted MCP gateway that sets up PDF-to-Markdown conversion requests. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** Web, API
- **Website:** https://pdf2md.dudko.dev
- **Repository:** https://github.com/dudko-dev/pdf-to-md-mcp-setup
- **MCP Registry name:** dev.dudko/pdf-to-md
- **Categories:** files and documents
- **Listing updated:** 2026-11-16

## About

The server itself never touches a document. It acts as a front door to the pdf2md HTTP API: the assistant asks it for a checked request, and then runs that request wherever the PDF actually sits, so files do not pass through the model or the MCP server.

Two tools are exposed. One explains how the API works (endpoints, options, limits, errors); the other validates conversion options for the convert, detect and text endpoints and returns a ready-to-run URL, headers and curl command carrying a credential that lasts 15 minutes. Sign-in uses OAuth 2.1 with a dudko.dev account, so there is no API key to paste.

Conversions count against the account's plan like any other API call, while the MCP tools themselves are free. The README notes that scanned PDFs with no text layer are rejected with a 422 because pdf2md does no OCR, and that the detect endpoint can tell you this before a conversion is spent.

## Features

- **Request builder:** Validates conversion options and returns the exact URL, headers and curl command to run.
- **API guide tool:** Explains endpoints, options, limits and error codes of the pdf2md API.
- **Short-lived credential:** Each request carries a credential valid for 15 minutes, for this API only.
- **OAuth 2.1 sign-in:** Authenticates with a dudko.dev account; tokens are bound to the server URL.
- **Scan detection:** The detect option reveals scanned PDFs before a conversion is used.

## Good for

- Convert a local PDF to Markdown from inside an AI assistant
- Check whether a PDF has a text layer before spending a conversion
- Get a curl command for batch PDF conversion in a script
- Prepare PDF text for use in LLM prompts

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http pdf-to-md https://pdf2md.dudko.dev/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://pdf2md.dudko.dev/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "pdf-to-md": {
      "url": "https://pdf2md.dudko.dev/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "pdf-to-md": {
      "type": "http",
      "url": "https://pdf2md.dudko.dev/mcp"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "pdf-to-md": {
      "serverUrl": "https://pdf2md.dudko.dev/mcp"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "pdf-to-md": {
      "type": "http",
      "url": "https://pdf2md.dudko.dev/mcp"
    }
  }
}
```

## Tools

- `api_access`: Explains how the pdf2md API works: endpoints, options, limits and errors.
- `api_request`: Checks conversion options and returns the exact request with a 15-minute credential.

## FAQ

### Does the PDF go through the MCP server?

No. The server only returns a ready-to-run request; the assistant runs it wherever the file is, and the API answers the caller directly.

### Does it handle scanned PDFs?

No. A scan without a text layer returns a 422, since pdf2md does no OCR; the detect option flags this beforehand.

### How do I connect it?

Add https://pdf2md.dudko.dev/mcp as a streamable HTTP server, or install the Claude Code plugin from the dudko-dev marketplace, then sign in when prompted.

### Are the MCP tools free?

Yes, both tools are free, but each conversion request counts against your account's plan.

### Is PDF to Markdown free?

PDF to Markdown has a free plan, with paid plans for more usage or features.

### How do I add PDF to Markdown to Claude Code?

Run this command in your terminal: claude mcp add --transport http pdf-to-md https://pdf2md.dudko.dev/mcp

### What are the best alternatives to PDF to Markdown?

The closest alternatives to PDF to Markdown are ASTra, CARTESIAN ECU, Invoices, SigPen and ConvertAudioToText.

## Alternatives

- [ASTra](https://ai-powered.com/mcp/astra): ASTra is a freemium MCP server for files and documents.
- [CARTESIAN ECU](https://ai-powered.com/mcp/cartesian-ecu): CARTESIAN ECU is a paid MCP server for files and documents.
- [Invoices](https://ai-powered.com/mcp/invoices): Invoices is a paid MCP server for files and documents.
- [SigPen](https://ai-powered.com/mcp/sigpen): SigPen is a freemium MCP server for files and documents.
- [ConvertAudioToText](https://ai-powered.com/mcp/convertaudiototext): ConvertAudioToText is a freemium MCP server for design and media.
- [WhoScribe](https://ai-powered.com/mcp/whoscribe): WhoScribe is a freemium MCP server for design and media.
- [filex](https://ai-powered.com/mcp/filex): filex is an open-source MCP server for files and documents.
- [DocJacket](https://ai-powered.com/mcp/docjacket): DocJacket is a freemium MCP server for productivity.

---
Source: https://ai-powered.com/mcp/pdf-to-markdown
