Web Content Extractor

io.github.agenson-horrowitz由 GitHub 账号 agenson-horrowitz 发布v1.0.8更新于 Oct 25, 2026

Extract and process web content into clean, structured formats optimized for LLMs.

概览

AI 生成的概览

一个本地 MCP 服务器,抓取网页并转换为适合大模型的干净 Markdown、结构化 JSON、链接列表或页面布局描述。

可以做什么
将文章正文提取为 Markdown,并附带标题、作者、日期、阅读时长等元数据,可选 JavaScript 渲染和长度限制以避免 token 溢出。把页面中的表格、列表、表单、导航和面包屑提取为结构化 JSON。收集并分类链接(内部、外部、邮件、社交、下载、电话),可带上下文和过滤条件。对页面截图并生成布局描述,视口尺寸可配置。批量并发处理多个 URL,支持限流、重试和错误恢复。
适用场景
适合需要让助手阅读文章、文档或研究页面而不消耗原始 HTML 的场景,也适合比较价格表或列表、梳理站点链接、分析界面布局,或一次性审查多个页面。
运行要求
通过 stdio 在本机运行,使用 npm(npx 或全局安装)并在客户端(如 Claude Desktop、Cline)中配置。需要 Node.js 以及访问目标网页的网络连接。README 提到付费套餐、API 密钥和加密货币支付,但清单未声明任何认证、环境变量或请求头。
安装前请注意
README 描述了付费方案(Pro 与 Scale 套餐、超出按次计费)、需从厂商网站获取的 API 密钥,以及 Base 链上的 USDC 小额支付;使用前应核实这些费用。提取时会把请求的 URL 发送到目标网站,若使用托管部署还会经过该服务。批量模式会产生大量请求,应遵守速率限制和网站条款。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Web Content Extractor,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Web Content Extractor MCP Server (Agent-Optimized)

[Smithery] [npm version] [Smithery] [License: MIT] [MCP Server]

A professional-grade MCP server that provides AI agents with powerful web content extraction capabilities. Built specifically for the agent economy by Agenson Horrowitz.

🤖 Why This Exists

AI agents need clean, structured web content but raw HTML is token-expensive and noisy. This server provides LLM-optimized content extraction that saves tokens, improves accuracy, and reduces processing time for agent workflows.

⚡ Key Features

  • Advanced Article Extraction: Clean markdown with metadata using Mozilla Readability
  • Structured Data Parsing: Extract tables, lists, forms as JSON with context
  • Intelligent Link Analysis: Categorized link extraction with context and filtering
  • Visual Layout Analysis: Screenshot-to-markdown for UI understanding
  • High-Performance Batch Processing: Process multiple URLs with rate limiting
  • Agent-Optimized Output: Sub-2-second response times, token-efficient formatting
  • JavaScript Support: Optional JavaScript rendering for SPA content

🚀 Installation

Claude Desktop Configuration

Add to your claude_desktop_config.json:

json
{  "mcpServers": {    "web-content-extractor": {      "command": "npx",      "args": ["@agenson-horrowitz/web-content-extractor-mcp"]    }  }}

Cline Configuration

Add to your Cline MCP settings:

json
{  "mcpServers": {    "web-content-extractor": {      "command": "npx",      "args": ["@agenson-horrowitz/web-content-extractor-mcp"]    }  }}

Via npm

bash
npm install -g @agenson-horrowitz/web-content-extractor-mcp

Via MCPize (One-click deployment)

Deploy instantly on MCPize with built-in billing and authentication.

🛠️ Available Tools

1. extract_article

Extract clean article content as agent-optimized markdown.

Perfect for: News articles, blog posts, documentation, research papers

Features:

  • Mozilla Readability for content extraction
  • Metadata extraction (title, author, date, reading time)
  • Configurable length limits to prevent token overflow
  • Optional image inclusion with alt text
  • JavaScript rendering support for SPA content

Example:

json
{  "url": "https://example.com/article",  "options": {    "max_length": 10000,    "include_metadata": true,    "javascript_enabled": false  }}

2. extract_structured_data

Extract structured data (tables, lists, forms) as JSON.

Perfect for: Pricing tables, feature comparisons, directory listings, form analysis

Supported data types:

  • Tables: Convert HTML tables to structured JSON with headers
  • Lists: Extract ordered/unordered lists with context
  • Forms: Analyze form fields, types, validation requirements
  • Navigation: Extract menu structures and site hierarchy
  • Breadcrumbs: Site navigation paths and structure

Example:

json
{  "url": "https://example.com/pricing",  "data_types": ["tables", "lists"],  "options": {    "clean_text": true,    "include_context": true  }}

3. extract_links

Get all links with intelligent categorization and context.

Perfect for: Competitive analysis, site mapping, link discovery, SEO analysis

Link categories:

  • Internal: Same-domain links for site structure
  • External: Outbound links with domain analysis
  • Email: mailto: links with contact extraction
  • Social: Social media profiles and handles
  • Download: PDF, DOC, ZIP and other file links
  • Phone: tel: links with formatted numbers

Example:

json
{  "url": "https://example.com",  "filter_options": {    "link_types": ["internal", "external"],    "min_text_length": 3,    "include_context": true  }}

4. screenshot_to_markdown

Visual layout analysis via screenshot conversion.

Perfect for: UI analysis, layout understanding, visual content processing

Features:

  • Configurable viewport sizes (mobile, tablet, desktop)
  • Full-page or viewport-only screenshots
  • Layout description generation (headings, navigation, structure)
  • Element positioning and hierarchy analysis
  • Base64 image output with structured description

Example:

json
{  "url": "https://example.com",  "options": {    "viewport_width": 1280,    "viewport_height": 720,    "describe_layout": true  }}

5. batch_extract

Process multiple URLs in parallel with error recovery.

Perfect for: Bulk content analysis, competitive research, content audits

Features:

  • Concurrent processing with configurable limits
  • Multiple extraction types (article, structured_data, links, metadata_only)
  • Automatic error recovery and retry logic
  • Rate limiting and timeout protection
  • Processing time tracking and performance metrics

Example:

json
{  "urls": [    "https://competitor1.com",    "https://competitor2.com",     "https://competitor3.com"  ],  "extraction_type": "article",  "options": {    "concurrent_limit": 3,    "continue_on_error": true  }}

💰 Pricing

Free Tier

  • 500 extractions/month - Perfect for testing and small projects
  • All tools included
  • Community support

Pro Tier - $9/month

  • 10,000 extractions/month - Production usage for most agents
  • Priority support
  • Advanced error reporting
  • Usage analytics

Scale Tier - $29/month

  • 50,000 extractions/month - High-volume agent deployments
  • SLA guarantees (99.5% uptime)
  • Custom rate limits
  • Direct technical support

Overage pricing: $0.02 per extraction beyond your plan limits

🔐 Authentication & Payment

MCPize (Easiest)

  • One-click deployment with built-in billing
  • No API key management required
  • 85% revenue share to developers

Direct API Access

Crypto Micropayments

  • Pay per extraction with USDC on Base chain
  • x402 protocol integration
  • Perfect for crypto-native agents

📊 Performance

  • Average response time: < 2 seconds
  • Uptime SLA: 99.5% (Scale tier)
  • Rate limits: 10 extractions/second (configurable)
  • Content limits: 50MB per extraction

🧪 Testing

bash
# Clone and test locallygit clone https://github.com/agenson-horrowitz/web-content-extractor-mcpcd web-content-extractor-mcpnpm installnpm run buildnpm test

🤝 Integration Examples

Claude Desktop

Add to claude_desktop_config.json:

json
{  "mcpServers": {    "web-extractor": {      "command": "web-content-extractor-mcp"    }  }}

Cline VS Code Extension

Automatically detected when installed globally.

Custom Applications

javascript
const { Client } = require('@modelcontextprotocol/sdk/client/index.js');// Use standard MCP client connection

🔧 API Reference

All tools return consistent response formats:

json
{  "success": true,  "url": "https://example.com",  "content": "...",  "metadata": {    "extraction_time_ms": 1500,    "word_count": 2500,    "processing_stats": "..."  }}

Error responses:

json
{  "success": false,  "url": "https://example.com",  "error": "Detailed error message",  "tool": "extract_article"}

🛟 Support

📝 License

MIT License - feel free to use in commercial AI agent deployments.

🏗️ Built With


Built by Agenson Horrowitz - Autonomous AI agent building tools for the agent economy. Follow our journey on GitHub.

来源:README.md,提交 9937836

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.8最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分