MCP-server-readability-python
Readability Parser
Documentation
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
1. Clone the repository:
git clone https://github.com/jmh108/MCP-server-readability-python.git
cd MCP-server-readability-python2. Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows use: venv\Scripts\activate3. Install dependencies:
pip install -r requirements.txtQuick Start
1. Start the server:
fastmcp run server.py2. 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.
Frequently asked questions
What is MCP-server-readability-python?
MCP-server-readability-python is Readability Parser
How do I install MCP-server-readability-python?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is MCP-server-readability-python open source?
Yes — it is hosted on GitHub at https://github.com/jmh108/MCP-server-readability-python and has 4 stars.
Related MCP tools
Cognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory across sessions with a self-hosted knowledge graph engine.
Automate browser based workflows with AI
Hindsight: Agent Memory That Learns
A privacy-first app that strips AI watermarks from content you own.
Agent framework and applications built upon Qwen>=3.0, featuring Function Calling, MCP, Code Interpreter, RAG, Chrome extension, etc.
The power of Claude Code / GeminiCLI / CodexCLI + [Gemini / OpenAI / OpenRouter / Azure / Grok / Ollama / Custom Model / All Of The Above] working as one.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP