Convert Markdown files into beautifully styled PDFs using VS Code's markdown styling and Python's ReportLab library.
The Markdown to PDF Conversion MCP Server is a powerful tool designed to transform Markdown content into professionally formatted PDF documents. It leverages VS Code's styling capabilities and Python's ReportLab library to ensure high-quality output.
The server implements a simple note storage system with:
note://
URI scheme for accessing individual notestext/plain
mimetypeThe server provides a single prompt:
brief
or detailed
)The server implements one tool:
[TODO: Add configuration details specific to your implementation]
~/Library/Application\ Support/Claude/claude_desktop_config.json
%APPDATA%/Claude/claude_desktop_config.json
"mcpServers": {
"md-pdf-mcp": {
"command": "uv",
"args": [
"--directory",
"/Users/path/to/your/local/md-pdf-mcp",
"run",
"md-pdf-mcp"
]
}
}
"mcpServers": {
"md-pdf-mcp": {
"command": "uvx",
"args": [
"md-pdf-mcp"
]
}
}
To prepare the package for distribution:
shell
uv sync
shell
uv build
This will create source and wheel distributions in the dist/
directory.
shell
uv publish
Note: You'll need to set PyPI credentials via environment variables or command flags:
--token
or UV_PUBLISH_TOKEN
--username
/UV_PUBLISH_USERNAME
and --password
/UV_PUBLISH_PASSWORD
Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.
You can launch the MCP Inspector via npm
with this command:
npx @modelcontextprotocol/inspector uv --directory /Users/seanivore/Development/md-pdf-mcp run md-pdf-mcp
Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.
Markdown to PDF Conversion MCP
seanivore.github.io/portfolio/
No releases published