Trafilatura MCP Server

Fast and accurate web content extraction

Local serverstdioPython

What is the Trafilatura MCP Server?

Fast and accurate web content extraction

What it actually does

const html = <html> <head><title>Example Article</title></head> <body> <nav>Home | About | Contact</nav> <article> <h1>Main Title</h1> This is the main content of the article. </article> <footer>Copyright 2024</footer> </body> </html>

  • Fast — 71 files/s for articles, 46 files/s overall (native Rust)
  • Accurate — F1 0.966 on ScrapingHub benchmark, F1 0.859 across 7 page types
  • Page Type Classification — Auto-detects 7 page types (article, forum, product, collection, listing, documentation, service)
  • Per-Type Extraction — Specialized extraction profiles for each page type
  • Extraction Quality Predictor — ML-based confidence scoring (0.0-1.0)
  • Markdown Output — GitHub Flavored Markdown with headings, lists, tables, bold/italic, code blocks

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Trafilatura MCP Server

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

Add to claude_desktop_config.json, then restart Claude Desktop.

Frequently asked questions

Fast and accurate web content extraction Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.