Readability Parser
Extracts and transforms webpage content into clean, LLM-optimized Markdown using the Readability algorithm.
MCP Server Readability Parser (Python / FastMCP)
Credits/Reference
This project is based on the original server-moz-readability implementation of emzimmer. (For the original README documentation, please refer to the original README.md.)
This Python implementation adapts the original concept to run as python based MCP using FastMCP
Mozilla Readability Parser MCP Server
A Python implementation of the Model Context Protocol (MCP) server that extracts and transforms webpage content into clean, LLM-optimized Markdown.
Table of Contents
Features
- Removes ads, navigation, footers and other non-essential content
- Converts clean HTML into well-formatted Markdown
- Handles errors gracefully
- Optimized for LLM processing
- Lightweight and fast
Why Not Just Fetch?
Unlike simple fetch requests, this server:
- Extracts only relevant content using Readability algorithm
- Eliminates noise like ads, popups, and navigation menus
- Reduces token usage by removing unnecessary HTML/CSS
- Provides consistent Markdown formatting for better LLM processing
- Handles complex web pages with dynamic content
Installation
- Clone the repository:
git clone https://github.com/jmh108/MCP-server-readability-python.git
cd MCP-server-readability-python
- Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows use: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
Quick Start
- Start the server:
fastmcp run server.py
- Example request:
curl -X POST http://localhost:8000/tools/extract_content \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/article"}'
Tool Reference
extract_content
Fetches and transforms webpage content into clean Markdown.
Arguments:
{
"url": {
"type": "string",
"description": "The website URL to parse",
"required": true
}
}
Returns:
{
"content": "Markdown content..."
}
MCP Server Configuration
To configure the MCP server, add the following to your MCP settings file:
{
"mcpServers": {
"readability": {
"command": "fastmcp",
"args": ["run", "server.py"],
"env": {}
}
}
}
The server can then be started using the MCP protocol and accessed via the parse tool.
Dependencies
- readability-lxml - Content extraction
- html2text - HTML to Markdown conversion
- beautifulsoup4 - DOM parsing
- requests - HTTP requests
License
MIT License - See LICENSE for details.
Servidores relacionados
Bright Data
patrocinadorDiscover, extract, and interact with the web - one interface powering automated access across the public internet.
Trends MCP
Real-time trend data from Google (Search, Images, News, Shopping), YouTube, TikTok, Reddit, Amazon, Wikipedia, X (Twitter), LinkedIn, Spotify, GitHub, Steam, npm, App Store, news sentiment and web traffic via one MCP connection. Free API key, 20 requests/day, no credit card required.
Crypto News MCP Server
Fetches the latest cryptocurrency news and converts article content from HTML to Markdown.
MCP Undetected Chromedriver
Automate Chrome browser control while bypassing anti-bot detection using undetected-chromedriver.
Jina Reader
Fetch the content of a remote URL as Markdown with Jina Reader.
MCP Image Downloader
A server for downloading and optimizing images from the web.
Browserbase
Automate browser interactions in the cloud (e.g. web navigation, data extraction, form filling, and more)
freesound-mcp
A Model Context Protocol (MCP) server that enables AI applications to search and download audio resources from the Freesound platform via natural language commands.
YouTube Transcript Extractor
Extracts transcripts from public YouTube videos.
Firecrawl
Extract web data with Firecrawl
MCP LLMS.txt Explorer
Explore and analyze websites that have implemented the llms.txt standard.