seanivore_md_pdf_mcp

seanivore_md_pdf_mcp

by seanivore
Converts Markdown files to styled PDFs using VS Code's markdown styling and Python's ReportLab.

Markdown to PDF Conversion MCP Server

Convert Markdown files into beautifully styled PDFs using VS Code's markdown styling and Python's ReportLab library.

Overview

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.

Components

Resources

The server implements a simple note storage system with:

  • Custom note:// URI scheme for accessing individual notes
  • Each note resource includes a name, description, and text/plain mimetype

Prompts

The server provides a single prompt:

  • summarize-notes: Creates summaries of all stored notes
  • Optional "style" argument to control detail level (brief or detailed)
  • Generates a prompt combining all current notes with the specified style preference

Tools

The server implements one tool:

  • add-note: Adds a new note to the server
  • Requires "name" and "content" as string arguments
  • Updates server state and notifies clients of resource changes

Configuration

[TODO: Add configuration details specific to your implementation]

Quickstart

Install

Claude Desktop

  • MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%/Claude/claude_desktop_config.json

Development/Unpublished Servers Configuration

"mcpServers": {
  "md-pdf-mcp": {
    "command": "uv",
    "args": [
      "--directory",
      "/Users/path/to/your/local/md-pdf-mcp",
      "run",
      "md-pdf-mcp"
    ]
  }
}

Published Servers Configuration

"mcpServers": {
  "md-pdf-mcp": {
    "command": "uvx",
    "args": [
      "md-pdf-mcp"
    ]
  }
}

Development

Building and Publishing

To prepare the package for distribution:

  1. Sync dependencies and update lockfile:

shell uv sync

  1. Build package distributions:

shell uv build

This will create source and wheel distributions in the dist/ directory.

  1. Publish to PyPI:

shell uv publish

Note: You'll need to set PyPI credentials via environment variables or command flags:

  • Token: --token or UV_PUBLISH_TOKEN
  • Or username/password: --username/UV_PUBLISH_USERNAME and --password/UV_PUBLISH_PASSWORD

Debugging

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.

About

Markdown to PDF Conversion MCP

seanivore.github.io/portfolio/

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

0 forks

Report repository

Releases


No releases published

Languages

Features & Capabilities

Categories
mcp_server model_context_protocol python vscode pdf-converter markdown-formatting claudeme

Implementation Details

Stats

0 Views
5 GitHub Stars

Repository Info

seanivore Organization

Similar MCP Servers

continuedev_continue by continuedev
25049
21423
9300