mcp-md-converter
Allows converting Markdown to Google Docs by uploading HTML to Google Drive.
Click on "Deploy 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., "@mcp-md-converter Convert README.md to PDF and save as output.pdf"
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.
mcp-md-converter
MCP server exposing two tools so an AI coding agent (Claude Code, etc.) can turn a Markdown file it just wrote into a PDF or a Google Doc.
md_to_pdf— renders Markdown → HTML → PDF locally via headless Chromium (puppeteer). No network, no Google account needed.md_to_gdoc— uploads Markdown (as HTML) to Google Drive, which auto-converts it into a native, formatted Google Doc (headings, lists, tables, code blocks).
1. Install
cd mcp-md-converter
npm install
npm run buildRelated MCP server: Markdown2PDF MCP Server
2. Google auth (only needed for md_to_gdoc)
In Google Cloud Console, create/select a project.
Enable the Google Drive API.
Create OAuth client credentials → Application type Desktop app.
Download the JSON and save it as:
~/.mcp-md-converter/credentials.jsonRun the one-time login:
npm run authThis opens a browser, you approve access, and a
token.jsonis cached in~/.mcp-md-converter/. Refresh tokens auto-renew after that — no repeat login.
Scope used: drive.file (the app can only see/create files it makes — not your whole Drive).
3. Register with Claude Code
claude mcp add md-converter -- node /Users/bheshrajneupane/Agent/mcp-md-converter/dist/main.jsOr add directly to your MCP config (.mcp.json / Claude Code settings):
{
"mcpServers": {
"md-converter": {
"command": "node",
"args": ["/Users/bheshrajneupane/Agent/mcp-md-converter/dist/main.js"]
}
}
}4. Usage
Once registered, ask the agent things like:
"Convert README.md to a PDF at ~/Desktop/readme.pdf"
"Turn this markdown into a Google Doc titled 'Design Spec'"
Tool params:
Tool | Params |
|
|
|
|
Troubleshooting
PDF render fails to launch Chromium (sandboxed/restricted shells, some CI): point puppeteer at a system Chrome install instead of its bundled one:
export PUPPETEER_EXECUTABLE_PATH="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"Set this env var wherever the MCP server process launches (shell profile, or in the
mcpServersconfig'senvblock).
Notes
PDF rendering downloads a Chromium build via puppeteer on
npm install(~150MB, one-time).Google Doc conversion relies on Drive's HTML→Docs import, so formatting fidelity matches what you'd get pasting HTML into Drive's "New > File upload" — solid for headings, lists, tables, bold/italic, code blocks; very exotic Markdown extensions may not map 1:1.
Available Tools
2 toolsmd_to_gdocConvert Markdown to Google DocA
Upload a Markdown file (or raw Markdown text) to Google Drive as a native Google Doc, preserving headings/lists/tables/code formatting. Requires prior one-time auth (run npm run auth in the mcp-md-converter project).
Inputs: title, markdown, folder_id, markdown_path.
md_to_pdfConvert Markdown to PDFA
Render a Markdown file (or raw Markdown text) to a PDF file on disk, using a headless Chromium render. No network or Google account needed.
Inputs: out_path (required), title, markdown, markdown_path.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
Each tool targets a distinct output format: PDF via headless Chromium and Google Doc via Drive upload. No overlap in purpose, making selection unambiguous.
Both tool names follow the consistent 'md_to_<format>' pattern, making the naming predictable and clear.
With only two tools, the server feels slightly thin for a general-purpose Markdown converter, but it is still reasonably scoped for the specific PDF and Google Doc workflows.
The server covers two common conversion targets (PDF and Google Doc) with no missing operations within those workflows. Minor gaps exist such as no HTML or DOCX output, but the core purpose is satisfied.
Maintenance
Related MCP Connectors
Convert documents to Markdown and back, keep them, and share them as a page with one link.
Generate PDF, Word (.docx) and PowerPoint (.pptx) documents from Markdown over MCP.
Turn Markdown or plain text into a clean PDF document to print or share, plus an editable Word file.
Markdown in, any format out. PDFs merged, split, watermarked. Runs on our own doc engines.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables conversion of Markdown content into PDF documents with customizable paper formats and orientations. Supports both inline Markdown text and file path inputs, automatically generating PDFs using Playwright and Chromium.15 npm2ISC
- AlicenseAqualityDmaintenanceConverts Markdown documents to PDF files with support for syntax highlighting, custom styling, Mermaid diagrams, optional page numbers, and configurable watermarks.163 npmMIT
- AlicenseNot gradedqualityDmaintenanceConverts Markdown files and standalone Mermaid diagrams into high-quality PDF or PNG documents using Puppeteer and SVG rendering. It supports custom CSS styling and provides tools for professional document generation from markdown-based content.4MIT
- AlicenseNot gradedqualityDmaintenanceConverts markdown files into professional PDF documents with automatic table of contents and interactive navigation.8MIT