What tool does the server provide?
The server provides one tool called `convert_md_to_pdf`, which accepts a `markdown_text` parameter (string) and converts it to a PDF file.
@chunliu
Basic information
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.
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"md2pdf": {
"command": "uvx",
"args": [
"--from",
"md2pdf-mcp",
"md2pdf"
],
"env": {
"PDF_OUTPUT_DIR": "/path/to/output/folder"
}
}
}
}Convert Markdown text to PDF. Args: markdown_text (str): The Markdown text to convert. Returns: str: The JSON string with PDF metadata.
Md2pdf Mcp is an MCP (Model Context Protocol) server that converts Markdown text into well-formatted PDF files. It integrates with AI assistants and applications through the MCP protocol, using the convert_markdown library for conversion and FastMCP for server functionality.
Install and run the server via uvx --from md2pdf-mcp md2pdf. Configure it in your MCP client by adding a JSON entry with the command and optional PDF_OUTPUT_DIR environment variable. The server exposes a single tool, convert_md_to_pdf, which takes a markdown_text string parameter and returns a resource link to the generated PDF.
PDF_OUTPUT_DIR environment variableThe server provides one tool called `convert_md_to_pdf`, which accepts a `markdown_text` parameter (string) and converts it to a PDF file.
Set the `PDF_OUTPUT_DIR` environment variable to your desired output folder. If not set, PDFs are saved to the user’s home directory.
The tool returns a JSON string containing a resource link with fields: `type` (always `"resource_link"`), `uri` (file URI of the PDF), `name` (UUID-based filename), `mimeType` (`"application/pdf"`), and `annotations` (metadata including audience, priority, and last modified timestamp).
Use the command `uvx --from md2pdf-mcp md2pdf` in your terminal or configure it in your MCP client’s `mcpServers` configuration with the same command and optional environment variables.
📄 The PDF intelligence layer for AI agents — Agent Document Twin, evidence-first extraction, visual crops, OCR provenance, trust reports, and benchmark-gated releases. MCP server for Claude, Cursor, VS Code, and any MCP client.
A MCP server providing realistic browser-like HTTP request capabilities with accurate TLS/JA3/JA4 fingerprints for bypassing anti-bot measures. It also supports converting PDF and HTML documents to Markdown for easier processing by LLMs.
filesystem MCP server for accessing WSL distributions from Windows
The SSE version of the MCP service is modified from the Filesystem MCP server
MCP server to integrate AWS S3 and LLM
Comments