Skip to main content
Glama
defuddle-mcp

defuddle-mcp

by ryanxili

defuddle-mcp

npm version npm downloads License: MIT

A Model Context Protocol (MCP) server that extracts clean article content from web pages, removing clutter like ads, sidebars, and navigation elements.

Features

  • 🧹 Clean Content Extraction - Removes ads, sidebars, and other distractions

  • 📝 Markdown Output - Returns content in clean Markdown format with frontmatter

  • 🚀 Zero Dependencies - Built with Node.js built-ins only

  • ⚡ Fast & Lightweight - Minimal overhead, quick startup

Related MCP server: urltomarkdown-mcp

Requirements

  • Node.js >= 18 (for built-in fetch support)

Installation

Install from npm

npm install -g defuddle-mcp

Install from source

git clone https://github.com/ryanxili/defuddle-mcp.git
cd defuddle-mcp
npm install -g .

Usage

As a Global CLI Tool

defuddle-mcp

With MCP Host (e.g., Claude Desktop)

Add to your MCP configuration:

{
  "mcpServers": {
    "defuddle": {
      "command": "npx",
      "args": ["-y", "defuddle-mcp"]
    }
  }
}

Or with global install:

{
  "mcpServers": {
    "defuddle": {
      "command": "defuddle-mcp"
    }
  }
}

Programmatically

node index.js

The server runs on stdio and communicates via JSON-RPC 2.0.

Tool: defuddle

Extract clean article content from a web page.

Property

Type

Description

url

string

The URL of the web page to extract content from (required)

Example Request

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "defuddle",
    "arguments": {
      "url": "https://example.com/article"
    }
  }
}

Example Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "---\ntitle: Example Article\nsource: https://example.com/article\nlanguage: en\nword_count: 1234\n---\n\n# Article Content\n\n..."
      }
    ]
  }
}

API Reference

Methods

Method

Description

initialize

Initialize the MCP session

tools/list

List available tools

tools/call

Call a specific tool

Error Codes

Code

Message

Description

-32700

Parse error

Invalid JSON received

-32601

Method not found

Requested method does not exist

License

MIT © Defuddle

Available Tools

1 tool
defuddleA

Extract clean article content from a web page, removing clutter like ads and sidebars.

Inputs: url (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only a single tool in the set, there is no possibility of confusion or misselection between tools. The tool's purpose (clean article extraction from a web page) is unambiguous.

    Naming Consistency4/5

    The lone tool name 'defuddle' is short, lowercase, and readable, matching the server name. There is no verb_noun convention to violate, though a more descriptive name like 'extract_article' would be clearer.

    Tool Count3/5

    A single non-trivial tool is borderline thin for a server surface; there is no companion operation such as fetching raw HTML or batch extraction. The count is defensible for a narrowly focused utility but feels minimal.

    Completeness3/5

    The core extraction operation exists, but there are notable gaps: no options for output format (markdown vs. text), metadata/frontmatter retrieval, or batch URL processing. Agents can work around this by calling the tool repeatedly, but the surface is shallow.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers