Cleanweb
БесплатноНе проверенA lightweight Model Context Protocol (MCP) server Specialized in intelligently extracting core web content, automatically filtering ads and irrelevant elements,
Описание
A lightweight Model Context Protocol (MCP) server Specialized in intelligently extracting core web content, automatically filtering ads and irrelevant elements, and converting to clean Markdown format
README
npm version GitHub stars License: MIT
A lightweight Model Context Protocol (MCP) server
Specialized in intelligently extracting core web content, automatically filtering ads and irrelevant elements, and converting to clean Markdown format
🚀 Quick Start • 📖 Documentation • 🔧 Configuration • 🤝 Contributing
✨ Features
| 🌐 Smart Extraction | 🧹 Content Cleaning | 📝 Format Conversion | ⚡ Lightweight Deploy |
|---|---|---|---|
| Axios + Cheerio + Readability | Auto-filter ads & distractions | HTML → Markdown | Zero browser dependency |
🎯 Core Advantages
- 🌐 Smart Content Extraction: Uses Axios + Cheerio + Readability algorithm to extract main web content
- 🧹 Intelligent Content Cleaning: Automatically removes ads, navigation, sidebars and other distracting elements
- 📝 Markdown Conversion: Converts HTML content to clean Markdown format
- 🖼️ Image Link Optimization: Automatically handles overly long image links for better readability
- ⚡ Lightweight Deployment: No browser dependencies, simple and fast deployment
- 🔧 Multiple Output Formats: Supports pure Markdown or JSON format with metadata
- 🚀 MCP Protocol: Fully compatible with Model Context Protocol standard
🛠️ Tech Stack
🚀 Quick Start
📦 Installation
# Install from npm
npm install cleanweb-mcp
# Or clone the repository
git clone https://github.com/guangxiangdebizi/cleanweb-mcp.git
cd cleanweb-mcp
npm install
💡 Advantage: Uses lightweight HTTP client, no browser download required, simpler deployment! Focused on content cleaning and optimization.
🔧 Build Project
npm run build
🎯 Usage
1. Stdio Mode (Local Development)
npm run mcp:stdio
2. SSE Mode (via Supergateway)
npm run mcp:sse
Server will start at http://localhost:3100/sse
3. WebSocket Mode
npm run mcp:ws
4. Development Mode (Watch file changes)
npm run mcp:dev
🛠️ Claude Configuration
Stdio Mode Configuration
Add to Claude's configuration file:
{
"mcpServers": {
"cleanweb-mcp": {
"command": "node",
"args": ["path/to/your/project/build/index.js"]
}
}
}
SSE Mode Configuration
{
"mcpServers": {
"cleanweb-mcp-sse": {
"type": "sse",
"url": "http://localhost:3100/sse",
"timeout": 600
}
}
}
🔨 API Reference
extract_web_content
Intelligently extract web content and convert to Markdown format.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
url |
string | ✅ | - | The web URL to extract content from |
format |
string | ❌ | markdown |
Return format: markdown or json |
timeout |
number | ❌ | 30000 |
Page loading timeout (milliseconds) |
Usage Examples
// Basic usage
extract_web_content({
url: "https://example.com/article"
})
// Advanced usage
extract_web_content({
url: "https://example.com/article",
format: "json",
timeout: 60000
})
📁 Project Structure
cleanweb-mcp/
├── 📄 README.md # Project documentation
├── 📦 package.json # Project configuration
├── ⚙️ tsconfig.json # TypeScript configuration
├── 🔧 claude-config-example.json # Claude configuration example
├── 📖 example-usage.md # Usage examples
├── 🏗️ build/ # Compiled output
│ ├── index.js
│ └── tools/
│ └── web-content-extractor.js
└── 📝 src/ # Source code
├── index.ts # MCP server main entry
└── tools/
└── web-content-extractor.ts # Web content extraction tool
🔄 Migration from Express Server
The original Express server (server.js) can still run independently:
npm start
The MCP version provides the same core functionality but integrates with AI assistants through the MCP protocol.
🚨 Important Notes
- Lightweight Implementation: Uses HTTP client to fetch static content, no browser dependencies required
- Network Access: Requires access to target websites
- Static Content: Primarily suitable for static HTML content, dynamically rendered content may not be accessible
- Timeout Settings: For slow-loading websites, you can appropriately increase the timeout parameter
- Content Optimization: Automatically optimizes image link display for better readability
🤝 Contributing
Welcome to submit Issues and Pull Requests! If you have any questions or suggestions, feel free to contact me.
📞 Contact
- GitHub: guangxiangdebizi
- Email: [email protected]
- LinkedIn: Xingyu Chen
- NPM: @xingyuchen
🔗 Related Links
- GitHub Repository: https://github.com/guangxiangdebizi/cleanweb-mcp
- NPM Package: https://www.npmjs.com/package/cleanweb-mcp
📄 License
MIT License - See LICENSE file for details
Установка Cleanweb
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/guangxiangdebizi/cleanweb-mcpFAQ
Cleanweb MCP бесплатный?
Да, Cleanweb MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Cleanweb?
Нет, Cleanweb работает без API-ключей и переменных окружения.
Cleanweb — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Cleanweb в Claude Desktop, Claude Code или Cursor?
Открой Cleanweb на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
автор: lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
MCPHub
Website to list high quality MCP servers and reviews by real users. Also provide online chatbot for popular LLM models with MCP server support.
MCP Servers Rating and User Reviews
Website to rate MCP servers, write authentic user reviews, and [search engine for agent & mcp](http://www.deepnlp.org/search/agent)
mkinf
An Open Source registry of hosted MCP Servers to accelerate AI agent workflows.
Compare Cleanweb with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
