PolarHub
  • Agents
  • MCP Servers
  • Skills
  • PolarBear
PolarHub © 2026
MCP Serversbrowser-automation网页内容提取器
返回「browser-automation」

网页内容提取器

modelscope·@tolik-unicornrider/mcp_scraper

browser-automation0下载LocalModelScope

简介

一个从网站提取有意义内容并将HTML转换为高质量Markdown的MCP服务器,使用Mozilla的Readability引擎。

MCP Server 详情

来自 ModelScope 索引

网站抓取工具

一个用于抓取网站并将 HTML 转换为 Markdown 的命令行工具和 MCP 服务器。

特性

  • 使用 Mozilla 的 Readability 库(与 Firefox 的阅读视图使用的引擎相同)从网页中提取有意义的内容
  • 使用 TurndownService 将干净的 HTML 转换为高质量的 Markdown
  • 通过移除潜在有害的脚本标签来安全处理 HTML
  • 既可以作为命令行工具使用,也可以作为 MCP 服务器运行
  • 支持直接将本地 HTML 文件转换为 Markdown

安装

# Install dependencies
npm install

# Build the project
npm run build

# Optionally, install globally
npm install -g .

使用方法

命令行模式

# Print output to console
scrape https://example.com

# Save output to a file
scrape https://example.com output.md

# Convert a local HTML file to Markdown
scrape --html-file input.html

# Convert a local HTML file and save output to a file
scrape --html-file input.html output.md

# Show help
scrape --help

# Or run via npm script
npm run start:cli -- https://example.com

MCP 服务器模式

此工具可以用作 Model Context Protocol (MCP) 服务器:

# Start in MCP server mode
npm start

代码结构

  • src/index.ts - 核心功能和 MCP 服务器实现
  • src/cli.ts - 命令行界面实现
  • src/data_processing.ts - HTML 到 Markdown 的转换功能

API

该工具导出以下函数:

// Scrape a website and convert to Markdown
import { scrapeToMarkdown } from './build/index.js';

// Convert HTML string to Markdown directly
import { htmlToMarkdown } from './build/data_processing.js';

async function example() {
  // Web scraping
  const markdown = await scrapeToMarkdown('https://example.com');
  console.log(markdown);
  
  // Direct HTML conversion
  const html = '<h1>Hello World</h1><p>This is <strong>bold</strong> text.</p>';
  const md = htmlToMarkdown(html);
  console.log(md);
}

许可证

ISC

相关 MCP Servers(来自「browser-automation」)

快递100 MCP Server

快递100 MCP Server提供快递信息查询、快递运费预估比价、快递时效查询(含发货前时效查询与在途动态时效查询)等功能。

kuaidi100/kuaidi100-mcp

网页截图

暂无描述。

bingal/webshot-mcp

网页开发MCP

一个提供网页开发工具的MCP服务器,例如屏幕捕捉功能,可以让AI代理获取并处理用户屏幕的截图。

@ZukAi-MCP/webdev-mcp

微软Playwright

一种模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页交互,而无需使用视觉模型或截图。

@microsoft/playwright-mcp

消息通知(MCP&Agent挑战赛)

桌面通知、个性化声音、ntfy 手机应用通知、邮件通知和 API 推送,减少 AI 任务等待焦虑,舒适地享用一杯咖啡。​

gimjin/message_mcp-MCP_Agent_Challenge

转Markdown工具

将各种文件类型和网页内容转换为Markdown格式。它提供了一套工具,可以将PDF、图像、音频文件、网页等转换为易读且易于分享的Markdown文本。

@zcaceres/markdownify-mcp

自动安装

点击按钮会唤起 PolarBear 客户端,并把当前 MCP Server 的 Markdown 详情文档地址传给客户端。

/api/mcps/tolik-unicornrider-mcp_scraper/markdown
打开 PolarBear 安装查看 Markdown 文档

手动安装

在 PolarBear 或其他支持 MCP 的客户端中,新建 MCP Server,并参考下方来源或安装提示配置。

# Install dependencies npm install # Build the project npm run build # Optionally, install globally npm install -g .

基本信息

分类
browser-automation / developer-tools
运行方式
No
许可证
Unknown
详情文件
tolik-unicornrider-mcp_scraper.md