md2pdf-mcp
MCP Server for Markdown to PDF conversion.
README
md2pdf-mcp
MCP Server for Markdown to PDF conversion.
Description
This server provides a tool to convert Markdown text to PDF files using the convert_markdown library. It's designed to work as an MCP (Model Context Protocol) server that can be integrated with various AI assistants and applications.
Features
- Convert Markdown text to well-formatted PDF files
- Random filename generation using UUID to avoid conflicts
- Configurable output directory via environment variables
- Returns resource links with metadata for easy integration
- Built on FastMCP for reliable MCP server functionality
Installation
You can install and run this tool using uvx:
uvx --from md2pdf-mcp md2pdf
Usage
As MCP Server
Configure the server in your MCP client configuration:
{
"mcpServers": {
"md2pdf": {
"command": "uvx",
"args": ["--from", "md2pdf-mcp", "md2pdf"],
"env": {
"PDF_OUTPUT_DIR": "/path/to/output/folder"
}
}
}
}
Available Tools
The server provides one tool:
convert_md_to_pdf
Converts Markdown text to a PDF file.
Parameters:
markdown_text(string): The Markdown content to convert
Returns: A JSON string containing:
type: "resource_link"uri: File URI of the generated PDFname: Generated filename (UUID-based)mimeType: "application/pdf"annotations: Metadata including audience, priority, and last modified timestamp
Environment Variables
PDF_OUTPUT_DIR: Directory where PDF files will be saved (defaults to user's home directory)
Example Usage
Once the server is running, you can call the tool through your MCP client:
{
"mcpServers": {
"md2pdf": {
"command": "uvx",
"args": ["--from", "md2pdf-mcp", "md2pdf"],
"env": {
"PDF_OUTPUT_DIR": "/path/to/output/folder"
}
}
}
}
License
MIT License
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.