defuddle-fetch-mcp-server
An MCP server that fetches web content and converts it to clean markdown using the Defuddle library, enabling LLMs to read web pages with better extraction than the default fetch server.
README
defuddle-fetch-mcp-server
A Model Context Protocol server that provides web content fetching capabilities using the Defuddle library. This server enables LLMs to retrieve and process content from web pages, automatically cleaning up the HTML and converting it to clean, readable markdown.
This is a drop-in replacement for the default fetch MCP server that uses Readability. This generally provides better results for most modern webpages.
Comparison
(using this issue)
| Default Fetch MCP | Defuddle Fetch MCP |
|---|---|
| Contents of https://github.com/kepano/defuddle/issues/61:<br><br>The MCP protocol is a standard for giving AI models access to tools.<br><br>There's a default fetch MCP server, which enables AI models to fetch content from websites. This uses Readability.js which is a bit meh, particularly at navigating GitHub (which I try to use it for a lot). I appreciate there is the GitHub MCP, but a more general web browsing solution seems particularly nice here.<br><br>Defuddle seems significantly better than Readability.js at processing pages nicely, and the model of having custom extractors to make particular sites work well seems great.<br><br>It'd be neat if someone built a defuddle-based fetch MCP server. I might get round to this later if I get frustrated enough with the default fetch MCP 😄 | # idea: defuddle-based fetch MCP server · Issue #61 · kepano/defuddle<br><br>URL: https://github.com/kepano/defuddle/issues/61<br><br>Open<br><br>#61<br><br>[](https://github.com/domdomegg)<br><br>## Description<br><br>The MCP protocol is a standard for giving AI models access to tools.<br><br>There's a default fetch MCP server, which enables AI models to fetch content from websites. This uses Readability.js which is a bit meh, particularly at navigating GitHub (which I try to use it for a lot). I appreciate there is the GitHub MCP, but a more general web browsing solution seems particularly nice here.<br><br>Defuddle seems significantly better than Readability.js at processing pages nicely, and the model of having custom extractors to make particular sites work well seems great.<br><br>It'd be neat if someone built a defuddle-based fetch MCP server. I might get round to this later if I get frustrated enough with the default fetch MCP 😄 |
Features
- Better Content Extraction: Uses Defuddle to remove webpage clutter and extract main content: while keeping things like the page title and key metadata
- Flexible Output: Supports both markdown and raw HTML output
- Chunked Reading: Supports pagination with
start_indexandmax_lengthparameters - Rich Metadata: Extracts title, author, publication date, word count, and more
Installation
To use this server with the Claude Desktop app, add the following configuration to the "mcpServers" section of your claude_desktop_config.json:
{
"mcpServers": {
"defuddle-fetch": {
"command": "npx",
"args": [
"-y",
"defuddle-fetch-mcp-server"
]
}
}
}
Components
Tools
- fetch
- Fetches a URL from the internet and extracts its contents as clean, markdown text using Defuddle
- Input parameters:
url(string, required): URL to fetchmax_length(number, optional): Maximum number of characters to return. Defaults to 5000.start_index(number, optional): Start content from this character index. Defaults to 0.raw(boolean, optional): Get raw content without markdown conversion. Defaults to false.
- Returns cleaned content with metadata including title, author, publication date, word count, domain, and processing time
Contributing
Pull requests are welcomed on GitHub! To get started:
- Install Git and Node.js
- Clone the repository
- Install dependencies with
npm install - Run
npm run testto run tests - Build with
npm run build
To add it to Claude Desktop, run npm run build then add the following configuration to your claude_desktop_config.json:
{
"mcpServers": {
"defuddle-fetch": {
"command": "node",
"args": [
"/path/to/clone/defuddle-fetch-mcp-server/dist/index.js"
]
}
}
}
Releases
Versions follow the semantic versioning spec.
To release:
- Use
npm version <major | minor | patch>to bump the version - Run
git push --follow-tagsto push with tags - Wait for GitHub Actions to publish to the NPM registry.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.