pdftomarkdown
Converts YouTube video URLs into timestamped Markdown transcripts, including description and metadata.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@pdftomarkdownConvert this PDF into clean, structured Markdown"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
๐ PDF to Markdown (PDF to MD) โ Fast, Private, Open-Source Converter
The ultimate open-source PDF to Markdown converter for Humans, Developers, and AI Agents.
Effortlessly convert PDFs, Word (.docx), Excel & CSVs (.xlsx,.csv), and YouTube URLs into clean, structured, token-efficient Markdown (.md).
๐ Table of Contents
Related MCP server: md-converter-mcp
๐ฏ Why PDF to Markdown?
PDFs are designed for visual printing, not editing or AI computing. They trap content inside fixed-coordinate binary blobs. Markdown (.md) is the universal standard for:
๐ค AI & LLM Workflows: Maximizes prompt token density for Claude, ChatGPT, Cursor, and Gemini by stripping layout bloat.
๐๏ธ Knowledge Management: Effortless importing into Obsidian, Notion, Logseq, Roam, and Apple Notes.
๐ Technical Documentation: Direct ingestion into static site generators like Docusaurus, VitePress, MkDocs, and Astro.
๐ฟ Git Version Control: Clean line-by-line diffs instead of opaque binary changes.
๐๏ธ Architecture & Conversion Flow
INPUT SOURCE
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โผ โผ โผ
๐ PDF Document ๐ Word / Excel ๐ฅ YouTube Link
(Local / Remote URL) (.docx, .xlsx, .csv) (Video URL / Shorts)
โ โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Unified Geometric & NLP Engine โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โข Visual Reading Order Sorter โ
โ โข H1โH4 Typography Hierarchy โ
โ โข GFM Table Reconstructor โ
โ โข Code Block & List Parser โ
โ โข Link & Metadata Extractor โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โผ
CLEAN MARKDOWN
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โผ โผ โผ
๐ Web UI Workspace ๐ป CLI Output Stream ๐ค AI Agent Context
(Split Editor + Preview) (stdout / .md file export) (Claude / Cursor MCP)โจ Key Features
๐ 100% In-Browser Privacy: In the web app, documents are converted locally in memory via WebAssembly / JavaScript. Zero files are uploaded to any external server.
โก Zero-Install CLI (
npx): Convert any PDF, Word doc, or CSV straight from your command line with no setup.๐ Smart Table Detection: Automatically aligns multi-column rows into clean GitHub Flavored Markdown (GFM) pipe tables (
| Header | ... |).๐๏ธ Multi-Format Extensibility: Converts PDFs, Word (
.docx), Excel/CSVs (.csv), and YouTube videos into Markdown.๐ค Native Model Context Protocol (MCP) Server: Connect directly to Claude Desktop, Cursor, Windsurf, and Antigravity with zero coding.
๐จ Minimalist Dual-Panel Workspace: Live side-by-side raw Markdown editor and rendered HTML preview with line, word, and character counters.
๐ Blazing Fast: Converts standard multi-page documents in milliseconds without requiring heavy GPUs or multi-gigabyte models.
๐ How to Use (3 Ways)
1. Live Web Application (Zero Install)
Visit pdftomarkdown.fyi:
Drag and drop any PDF file.
Click Convert to Markdown.
Preview the rendered document side-by-side and click Copy Markdown or Download .md.
2. Zero-Install CLI (npx)
No installation required. Run directly in your terminal:
# Convert a local PDF file
npx pdftomarkdown research-paper.pdf -o paper.md
# Convert a Word document (.docx)
npx pdftomarkdown document.docx -o doc.md
# Convert a CSV table to GFM pipe tables
npx pdftomarkdown financials.csv -o financials.md
# Extract timestamped transcript from a YouTube video
npx pdftomarkdown "https://www.youtube.com/watch?v=dQw4w9WgXcQ" > video.md
# Convert with an automatic Table of Contents
npx pdftomarkdown manual.pdf --toc -o manual.md
# Pipe directly into an AI tool / LLM
cat quarterly-report.pdf | npx pdftomarkdown | llm "Summarize the key takeaways"3. AI Agent & MCP Server (Claude / Cursor)
Equip your AI assistants with PDF to Markdown capabilities with zero coding.
Claude Desktop Configuration:
Add this entry to your claude_desktop_config.json:
{
"mcpServers": {
"pdftomarkdown": {
"command": "npx",
"args": ["-y", "pdftomarkdown", "--mcp"]
}
}
}Now you can prompt Claude:
"Read
whitepaper.pdfand convert it to clean markdown with table of contents."
๐ Benchmark & Comparison Matrix
Capability | pdftomarkdown | PSPDFKit | Marker | Microsoft MarkItDown |
Instant Live Web App | โ Yes (pdftomarkdown.fyi) | โ No | โ No | โ No |
100% In-Browser Privacy | โ Yes (0 uploads) | โ No | โ No | โ No |
Zero-Install CLI ( | โ Yes | โ Yes | โ (Heavy Python) | โ (Python pip) |
Live Rendered Preview | โ Yes (Side-by-side) | โ No | โ No | โ No |
Word ( | โ Yes | โ No | โ No | โ Yes |
Excel / CSV to GFM Table | โ Yes | โ No | โ No | โ Yes |
YouTube Video to Transcript | โ Yes | โ No | โ No | โ Yes |
Model Context Protocol (MCP) | โ Yes (Built-in) | โ ๏ธ Partial | โ No | โ ๏ธ Python only |
Execution Speed | โก < 200 ms / page | โก < 200 ms / page | ๐ข 5โ20 s (GPU) | โก < 500 ms / page |
Hardware Overhead | ๐ชถ Featherweight (JS) | ๐ชถ Featherweight | ๐ Giant (10GB+ PyTorch) | ๐ Python Env |
๐๏ธ Supported Formats
Format | Extension | Output Style |
PDF Documents |
| Headings (H1โH4), lists, GFM tables, links, code blocks |
Word Documents |
| Headings, bold/italic, bullet lists, clean links |
Excel & CSV |
| GitHub Flavored Markdown (GFM) pipe tables |
YouTube URLs |
| Timestamped transcript ( |
Plain Text & Code |
| Formatted code fences & readable Markdown blocks |
๐ ๏ธ CLI Reference & Options
pdftomarkdown โ The universal document to Markdown converter.
Usage:
npx pdftomarkdown <file-or-url> [options]
Options:
-o, --output <file> Write output directly to a file (.md)
--toc Automatically generate a Table of Contents
--no-tables Disable automatic GFM table detection
--mcp Start Model Context Protocol (MCP) server
-v, --version Show current version
-h, --help Show help documentation๐ป Programmatic API (Node / TypeScript)
You can import and use the converter directly inside your Node.js or TypeScript projects:
import { convertPdfToMarkdown, convertAnyToMarkdown } from 'pdftomarkdown';
// Convert a PDF buffer or file
const markdown = await convertPdfToMarkdown(pdfBuffer, {
includeToc: true,
detectTables: true,
preservePageBreaks: true,
});
console.log(markdown);๐ Technical SEO & Performance
Primary Keywords: PDF to Markdown, PDF to MD, PDF to Markdown converter, convert PDF to Markdown.
Secondary Keywords: PDF to Markdown online, free PDF to Markdown converter, convert PDF file to Markdown, extract Markdown from PDF, Word to Markdown, YouTube to Markdown.
Technical Standards: Semantic HTML5, Schema.org
WebSite,WebApplication, andFAQPageJSON-LD schemas, sitemap.xml, robots.txt.Zero Client Overhead: No heavy UI frameworks on the parser engine, optimized WebAssembly worker threads.
โ Frequently Asked Questions (FAQ)
What is PDF to Markdown conversion?
PDF to Markdown conversion parses the geometry, fonts, and text positions inside fixed-layout PDF files and translates them into plain-text Markdown (.md) format, preserving headings, lists, tables, and links.
How do I convert PDF to Markdown for free?
You can use the live web app at pdftomarkdown.fyi or run npx pdftomarkdown input.pdf -o output.md in your terminal. Both are 100% free with no registration or subscriptions.
Is my document kept private?
Yes. When using the web app, all parsing occurs locally in your browser's memory. No files or text streams are ever sent to our servers.
Can I convert tables from PDF to Markdown?
Yes. Our engine detects horizontally and vertically aligned text columns and formats them into standard GitHub Flavored Markdown (GFM) pipe tables.
Can I use the output with ChatGPT, Claude, and LLMs?
Yes. Clean Markdown is the optimal input format for AI prompts and RAG vector databases, minimizing token usage while maintaining document hierarchy.
๐ License & Disclaimer
Distributed under the MIT License. See LICENSE for more information.
Disclaimer: All product names, logos, and brands (including Microsoft, PSPDFKit/Nutrient, Marker, Claude, and ChatGPT) are property of their respective owners and are used here solely for identification, compatibility, and comparative purposes.
Copyright ยฉ 2026 PDF to Markdown
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Convert PDF, DOCX, HTML, and URLs to clean, LLM-ready markdown with tables preserved
Convert documents and web pages to clean Markdown: PDF, DOCX, XLSX, EPUB, scanned files, any URL.
Parse PDF/Word/PPT/HTML to Markdown; tables as JSON, image extraction, RAG chunking, page ranges.
High-fidelity PDF to structured Markdown conversion and document field extraction.
Related MCP Servers
- AlicenseAqualityDmaintenanceConverts various file types (PDF, images, audio, DOCX, XLSX, PPTX) and web content (YouTube videos, web pages, Bing search results) into Markdown format for easy reading and sharing.10347MIT
- FlicenseAqualityCmaintenanceConverts files (PDF, DOCX, PPTX, XLSX, images via OCR) and URLs to Markdown, enabling AI clients to read them via a single MCP tool.1-
- AlicenseAqualityCmaintenanceConverts PDF, DOCX, PPTX, XLSX, CSV, and JSON into clean, compact, AI-ready Markdown, reducing tokens up to 65%.147MIT
- AlicenseNot gradedqualityAmaintenanceConverts documents (PDF, DOCX, XLSX, EPUB, etc.) to clean, structured Markdown, and retrieves document info, for use with AI agents.MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/HEMANT16/pdftomarkdown'
If you have feedback or need assistance with the MCP directory API, please join our Discord server