Utilizes Mozilla's Readability library (the same engine used in Firefox's Reader View) to extract meaningful content from web pages for conversion to Markdown
Converts clean HTML to high-quality Markdown with TurndownService, supporting both web scraping and direct conversion of local HTML files
Leverages Mozilla's Readability library to extract the main content from web pages while removing clutter and navigation elements
Website Scraper
A command-line tool and MCP server for scraping websites and converting HTML to Markdown.
Features
Extracts meaningful content from web pages using Mozilla's Readability library (the same engine used in Firefox's Reader View)
Converts clean HTML to high-quality Markdown with TurndownService
Securely handles HTML by removing potentially harmful script tags
Works as both a command-line tool and an MCP server
Supports direct conversion of local HTML files to Markdown
Related MCP server: MCP Server Fetch Python
Installation
Usage
CLI Mode
MCP Server Mode
This tool can be used as a Model Context Protocol (MCP) server:
Code Structure
src/index.ts- Core functionality and MCP server implementationsrc/cli.ts- Command-line interface implementationsrc/data_processing.ts- HTML to Markdown conversion functionality
API
The tool exports the following functions:
License
ISC