npm defuddle-fetch-mcp-serverstdioMITupdated 17d ago
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.
What can you do with Defuddle Fetch?
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:The MCP protocol is a standard for giving AI models access to tools.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.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.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/defuddleURL: https://github.com/kepano/defuddle/issues/61Open#61[](https://github.com/domdomegg)## DescriptionThe MCP protocol is a standard for giving AI models access to tools.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.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.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
Follow the instructions on install-mcp, which generates the right config for your MCP client (Claude Code, Claude Desktop, Cursor, Cline, VS Code, and more).
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.
Install
Add Defuddle Fetch to your client. Pick the one you use.
claude mcp add defuddle-fetch-mcp-server -- npx -y defuddle-fetch-mcp-servercodex mcp add defuddle-fetch-mcp-server -- npx -y defuddle-fetch-mcp-serveramp mcp add defuddle-fetch-mcp-server -- npx -y defuddle-fetch-mcp-server{
"mcpServers": {
"defuddle-fetch-mcp-server": {
"command": "npx",
"args": [
"-y",
"defuddle-fetch-mcp-server"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"defuddle-fetch-mcp-server": {
"command": "npx",
"args": [
"-y",
"defuddle-fetch-mcp-server"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"defuddle-fetch-mcp-server","command":"npx","args":["-y","defuddle-fetch-mcp-server"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"defuddle-fetch-mcp-server": {
"command": "npx",
"args": [
"-y",
"defuddle-fetch-mcp-server"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"defuddle-fetch-mcp-server": {
"command": "npx",
"args": [
"-y",
"defuddle-fetch-mcp-server"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"defuddle-fetch-mcp-server": {
"command": "npx",
"args": [
"-y",
"defuddle-fetch-mcp-server"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"defuddle-fetch-mcp-server": {
"type": "local",
"command": "npx",
"args": [
"-y",
"defuddle-fetch-mcp-server"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"defuddle-fetch-mcp-server": {
"command": {
"path": "npx",
"args": [
"-y",
"defuddle-fetch-mcp-server"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y defuddle-fetch-mcp-serverRun `goose configure`, choose **Add Extension โ Command-line Extension**, and paste this command.
2 tools
Defuddle Fetch exposes 2 tools to a connected agent.
- max_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.
Score
79 / 100
Good
- Documentation25/25
- Maintenance25/25
- Trust13/20
- Capability4/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 10 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 2 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint โ no local install
Version history
| Versions | Published |
|---|---|
| 1.0.4Latest | Dec 5, 2025 |
| 1.0.3 | Dec 5, 2025 |
| 1.0.2 | Dec 5, 2025 |