Website to PDF/Markdown MCP Server

Website to PDF/Markdown MCP Server

website-to-pdf-mcp•byldangelo

An MCP server that fetches websites, including ones behind authentication, and converts them to PDF or Markdown documents.

License: Not specified•Runtime: Awaiting documentation review•Category: file systems-docs

WHAT IT DOES

  • •Converts a single webpage into a PDF document.
  • •Converts a webpage into Markdown format.
  • •Traverses links on a webpage and combines multiple pages into a single PDF or Markdown file.
  • •Traverses website links and returns the discovered URLs without conversion.

BEST FOR

  • •Turning pages behind username and password authentication into documents.
  • •Converting a whole linked site section into one combined document with a configurable page limit.
  • •Gathering the list of URLs reachable from a starting page.

ABOUT WEBSITE-TO-PDF-MCP

Website to PDF/Markdown MCP Server is cataloged as an MCP server attributed to ldangelo. An MCP server that fetches websites, including ones behind authentication, and converts them to PDF or Markdown documents. It is categorized under file systems-docs. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Website to PDF/Markdown MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can it convert sites that require login?

Yes, it supports authentication via username and password, assuming a simple username/password form.

What functions does the plugin provide in Claude?

It provides converting websites to PDF, converting websites to Markdown, and traversing websites to return discovered URLs.

上游原版 README

在 GitHub 查看同一版本原文

README.md · c8ce5c084c2a · 采集于 2026-11-13 10:43:16 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Website to PDF/Markdown MCP Server

This MCP server fetches websites (including those behind authentication) and converts them to PDF or Markdown documents. It can also traverse links on a webpage and include them in the generated documents or return the discovered URLs.

Features

  • Convert a single webpage to PDF
  • Convert a webpage to Markdown format
  • Traverse links on a webpage and convert multiple pages to a single PDF or Markdown file
  • Support for authentication via username and password
  • Configurable maximum page limit for link traversal
  • Traverse website links and return URLs without conversion

Setup

  1. Clone this repository
  2. Install dependencies:
    npm install
    
  3. Copy the sample environment file:
    cp .env.example .env
    
  4. Start the server:
    npm start
    

API Endpoints

Convert Website to PDF

POST /api/convert

Request Body:

{
  "url": "https://example.com",
  "username": "optional-username",
  "password": "optional-password",
  "traverseLinks": true,
  "maxPages": 10
}

Parameters:

  • url: (Required) The URL to convert to PDF
  • username: (Optional) Username for authentication
  • password: (Optional) Password for authentication
  • traverseLinks: (Optional) Whether to traverse links on the page (default: false)
  • maxPages: (Optional) Maximum number of pages to process when traversing links (default: 10)

Response:

The response will be the PDF document with appropriate content-type headers:

Content-Type: application/pdf
Content-Disposition: attachment; filename="example_com.pdf"

The binary PDF content is returned directly in the response body.

Convert Website to Markdown

POST /api/to-markdown

Request Body:

{
  "url": "https://example.com",
  "username": "optional-username",
  "password": "optional-password",
  "traverseLinks": true,
  "maxPages": 10
}

Parameters:

  • url: (Required) The URL to convert to Markdown
  • username: (Optional) Username for authentication
  • password: (Optional) Password for authentication
  • traverseLinks: (Optional) Whether to traverse links on the page (default: false)
  • maxPages: (Optional) Maximum number of pages to process when traversing links (default: 10)

Response:

The response will be the Markdown document with appropriate content-type headers:

Content-Type: text/markdown
Content-Disposition: attachment; filename="example_com.md"

The Markdown content is returned directly in the response body.

Traverse Website and Return URLs

POST /api/traverse

Request Body:

{
  "url": "https://example.com",
  "username": "optional-username",
  "password": "optional-password",
  "maxPages": 10
}

Parameters:

  • url: (Required) The URL to start traversal from
  • username: (Optional) Username for authentication
  • password: (Optional) Password for authentication
  • maxPages: (Optional) Maximum number of pages to traverse (default: 10)

Response:

{
  "success": true,
  "message": "Website traversed successfully (found 8 URLs)",
  "urls": [
    "https://example.com",
    "https://example.com/page1",
    "https://example.com/page2",
    ...
  ]
}

Customization

You can customize the PDF and Markdown generation by modifying the relevant functions in src/index.js:

PDF Generation

The websiteToPdf function supports:

  • Custom page formats
  • Background rendering
  • Page margins
  • And more through Puppeteer's options

Markdown Generation

The websiteToMarkdown function uses the Turndown library which offers:

  • Custom rules for conversion
  • Ability to preserve certain HTML elements
  • Options for handling code blocks, headings, and lists

Authentication Handling

The default implementation assumes a simple username/password form. You may need to customize the authentication logic based on the specific websites you're targeting.

Using as a Claude MCP

This server is configured as a Claude MCP (Managed Claude Plugin) that can be used directly with Claude. To use it:

Self-Hosting Setup

  1. Host this server on a platform like Heroku, Vercel, or your own infrastructure
  2. Make sure the server is publicly accessible via HTTPS
  3. Add an icon.png file to your repository

Installing in Claude

  1. Open Claude in your browser and navigate to the Plugins section
  2. Click "Create a plugin"
  3. Enter the URL where your MCP server is hosted
  4. Claude will discover the API endpoints and create the plugin interface
  5. Save and enable the plugin

Usage in Claude

Once installed, you can use the MCP directly in your conversations with Claude:

  • "Convert example.com to a PDF"
  • "Convert example.com to Markdown"
  • "Get all the URLs from example.com"
  • "Convert the website with authentication using username 'myuser' and password 'mypass'"

The plugin provides three main functions:

  1. Converting websites to PDF
  2. Converting websites to Markdown
  3. Traversing websites and returning discovered URLs

Local Development

For local development, you can use tools like ngrok to expose your local server to the internet:

npm start
# In a separate terminal
ngrok http 3000

Then use the ngrok URL when setting up the MCP in Claude.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Website to PDF/Markdown MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/website-to-pdf-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related file systems-docs MCP Servers

Alternative and complementary servers in the same category

View all in file systems-docs →

A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

Repository stats unavailable
Files & Documentation
LoreKeeper MCP server
lorekeeper-rpg-lorekeeper-com•lore-keeper

Hosted MCP server for tabletop RPG worlds that organizes messy notes and documents into a private store and lets MCP apps search lore, read documents, find characters, and optionally generate character or world pictures.

Repository stats unavailable
Files & Documentation

An MCP server that gives AI assistants scoped file system operations inside a project directory, with read-only reference projects plus git and GitHub tools.

Repository stats unavailable
Files & Documentation