MD-PDF MCP Server
A server for converting Markdown files to PDF format. Requires pandoc and weasyprint.
MD-PDF MCP Server
A Model Context Protocol (MCP) server for converting between Markdown and PDF formats.
System Requirements
Tested on:
- macOS 14.3.0 (Darwin 23.3.0, ARM64)
- Python 3.13.0
- uv 0.7.13
- pandoc 3.6.2
Features
- Convert Markdown content/files to PDF with size options (small, medium, large)
- Convert PDF files to Markdown format
- Extract text from specific PDF pages
- Retrieve PDF metadata
MCP Tools
convert_markdown_to_pdf(markdown_content, output_filename, size, pdf_engine)convert_markdown_file_to_pdf(markdown_file_path, output_filename, size, pdf_engine)convert_pdf_to_markdown(pdf_file_path, output_filename)extract_text_from_pdf(pdf_file_path, page_numbers)get_pdf_info(pdf_file_path)
Installation
# Install dependencies
curl -LsSf https://astral.sh/uv/install.sh | sh
brew install pandoc weasyprint
# Setup project
uv sync
Running the Server
uv run python main.py
MCP Integration
Claude Desktop
{
"mcpServers": {
"md-pdf": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/md-pdf",
"run",
"main.py"
]
}
}
}
Cursor
Configure MCP in Cursor settings
{
"servers": {
"md-pdf": {
"command": "uv",
"args": ["run", "main.py"],
"cwd": "/absolute/path/to/md-pdf"
}
}
}
Size Options
s: 8pt font, 0.35in margins (compact)m: 9pt font, 0.5in margins (standard)l: 11pt font, 1in margins (detailed)
Project Structure
md-pdf/
├── data/ # Test files
├── tools/ # MCP tool definitions
├── utils/ # Conversion utilities
├── main.py # Server entry point
└── server.py # MCP server instance
관련 서버
Kone.vc
스폰서Monetize your AI agent with contextual product recommendations
SpellChecker
A fast, multilingual spell-checker for Large Language Models.
DAISYS
Generate high-quality text-to-speech and text-to-voice outputs using the DAISYS platform.
Airfield Directory
Provides airfield aeronautical information for general aviation private pilots like runways, fuel prices, landing fees, weather, webcams and more
Multi-Carrier Shipping API — powered by Secureship
Secureship MCP gives AI assistants access to a multi-carrier shipping API covering rate comparison, label generation, package tracking, pickup scheduling, address book management, shipment history, customs documents, and more — across carriers like UPS, FedEx, Purolator, Canpar, and others. Browse 150+ live endpoint schemas, parameters, and auth details — always current, never stale.
Google Docs & Drive
Interact with Google Docs and Google Drive for document creation, editing, and file management, with support for shared drives.
XenonFlare MCP Server
his server allows AI assistants (like Claude) to manage your social media content.
MCP Data Analizer
Analyze and visualize data from .xlsx and .csv files using matplotlib and plotly.
Dovetail
Connect AI tools to the Dovetail API for user research and customer feedback analysis.
system-prompts-mcp-server
Model Context Protocol server exposing system prompt files and summaries.
MediaWiki MCP Server
Connect AI assistants to any MediaWiki wiki (Wikipedia, Fandom, corporate wikis) with 33+ tools for search, read, edit, and Markdown conversion.