Labsco
SunZhi-Will logo

Website to Markdown MCP Server

β˜… 4

from SunZhi-Will

Fetches and converts website content to Markdown with AI-powered cleanup, OpenAPI support, and stealth browsing.

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedFreeQuick setup

🌐 Website to Markdown MCP Server

<div align="center">

Language: English | 繁體中文

</div>

A powerful Model Context Protocol (MCP) server designed for fetching website content and converting it to Markdown format, making it easier for AI to understand and process website information.

✨ Key Features

<div align="center">
🌟 Enhanced ProcessingπŸ“Š OpenAPI Supportβš™οΈ Smart Analysis🎯 Advanced Extraction
AI-powered content cleanupOpenAPI 3.x/Swagger 2.0Reading time calculationMain content detection
Auto ad removalProfessional validationWord count statisticsLanguage detection
Content summarizationStructured API parsingSmart retry mechanismMulti-format support
</div>

πŸ†• What's New in v1.2.0

<div align="center">

πŸš€ Major Enhancements

</div>
FeatureStatusDescription
🧠 Enhanced Content Processorβœ…AI-powered content cleaning and extraction
πŸ“Š Smart Analyticsβœ…Word count, reading time, content summary
🌍 Language Detectionβœ…Automatic language identification
🎯 Intelligent Retryβœ…Smart retry mechanism with exponential backoff
πŸ” Stealth Browserβœ…Anti-detection browsing capabilities
⚑ Rate Limitingβœ…Built-in rate limiting and concurrency control
🧹 Content Cleanupβœ…Remove ads, navigation, and irrelevant content
πŸ“ Enhanced Markdownβœ…Support for strikethrough, underline, highlights

πŸ”₯ Enhanced Output Features

πŸ“Š Rich Content Analysis

Every fetched content now includes:

  • πŸ“ Content Summary: AI-generated summary of the main content
  • ⏱️ Reading Time: Estimated reading time based on content length
  • πŸ”’ Word Count: Accurate word count for both English and Chinese
  • 🌍 Language Detection: Automatic language identification
  • 🎯 Content Quality Score: Assessment of content relevance

πŸ“‹ Enhanced Markdown Output

# πŸš€ Example Website

**Source**: https://example.com
**Website**: example_site - Example Website
**πŸ“Š Reading Time**: 5 minutes
**πŸ”’ Word Count**: 1,250 words
**🌍 Language**: English
**πŸ“ Summary**: This article discusses the latest developments in web technology...

---

[Enhanced Markdown content with better formatting...]

πŸ†• Complete OpenAPI/Swagger Support

<div align="center">

πŸ”₯ Professional API Documentation

</div>
FeatureOpenAPI 3.xSwagger 2.0Description
πŸ” Auto Detectionβœ…βœ…Support JSON/YAML formats
βœ… Professional Validationβœ…βœ…Using @readme/openapi-parser
πŸ“‹ Structured Parsingβœ…βœ…Endpoints, parameters, responses
πŸ”— Reference Resolutionβœ…βœ…Auto handle $ref references
πŸ“Š Smart Summaryβœ…βœ…Generate API overview
πŸ“ Formatted Outputβœ…βœ…Readable Markdown

🌟 Pre-configured Example Websites

{
  "websites": [
    {
      "name": "petstore_openapi",
      "url": "https://petstore3.swagger.io/api/v3/openapi.json",
      "description": "πŸ• Swagger Petstore OpenAPI 3.0 Spec (Demo)"
    },
    {
      "name": "petstore_swagger",
      "url": "https://petstore.swagger.io/v2/swagger.json",
      "description": "🐱 Swagger Petstore Swagger 2.0 Spec (Demo)"
    },
    {
      "name": "github_api",
      "url": "https://raw.githubusercontent.com/github/rest-api-description/main/descriptions/api.github.com/api.github.com.json",
      "description": "πŸ™ GitHub REST API OpenAPI Spec"
    }
  ]
}

πŸ”§ Available Tools

🌐 General Tools

Tool NameFunctionParametersExample
fetch_websiteFetch any websiteurl: Website URLFetch OpenAPI spec files
list_configured_websitesList configured websitesNoneView all available websites

🎯 Dedicated Tools

Each configured website automatically generates corresponding dedicated tools:

  • fetch_petstore_openapi - Fetch Petstore OpenAPI 3.0 spec
  • fetch_petstore_swagger - Fetch Petstore Swagger 2.0 spec
  • fetch_github_api - Fetch GitHub API spec
  • fetch_tailwind_css - Fetch Tailwind CSS documentation

πŸ“Š Enhanced Output Format Examples

🌐 General Website Content with Analytics

# Website Title

**Source**: https://example.com
**Website**: example_site - Example Website
**πŸ“Š Reading Time**: 3 minutes
**πŸ”’ Word Count**: 650 words
**🌍 Language**: English
**πŸ“ Summary**: This article provides a comprehensive overview of modern web development practices, covering frontend frameworks, backend technologies, and deployment strategies.

---

[Enhanced cleaned Markdown content with ads removed and main content extracted...]

πŸ“‹ OpenAPI 3.x Specification File

# πŸš€ Example API (v2.1.0)

**Source**: https://api.example.com/openapi.json
**OpenAPI Version**: 3.0.3
**Validation Status**: βœ… Valid
**πŸ“Š Processing Time**: 1.2 seconds
**πŸ”’ Endpoints**: 25 endpoints
**🌍 Server Locations**: 3 servers

---

## πŸ“‹ API Basic Information

- **API Name**: Example API
- **Version**: 2.1.0
- **OpenAPI Version**: 3.0.3
- **Description**: A powerful example API for modern applications

## 🌐 Servers

1. **https://api.example.com**
   - 🏒 Production server
2. **https://staging-api.example.com**
   - πŸ§ͺ Testing server

## πŸ› οΈ API Endpoints

Total of **25** endpoints:

### πŸ‘₯ `/users`
- **GET**: Get user list
- **POST**: Create new user

### πŸ” `/users/{id}`
- **GET**: Get specific user
- **PUT**: Update user information
- **DELETE**: Delete user

## 🧩 Components

- **Schemas**: 12 data models
- **Parameters**: 8 reusable parameters  
- **Responses**: 15 reusable responses
- **Security Schemes**: 3 security mechanisms

πŸ“ˆ Performance & Optimization

⚑ Performance Features

  • πŸš€ Smart Retry: Intelligent retry with exponential backoff
  • πŸ’Ύ Rate Limiting: Built-in rate limiting to prevent overload
  • 🎯 Content Filtering: Remove irrelevant content for faster processing
  • 🧹 Ad Removal: Automatic ad and popup removal
  • πŸ“Š Stealth Mode: Anti-detection browsing capabilities

πŸ›‘οΈ Security Considerations

  • πŸ”’ HTTPS websites only (recommended)
  • πŸ› οΈ Auto filter malicious scripts
  • πŸ“ Limit output content length
  • πŸ” Stealth browsing to avoid detection

πŸ“¦ Dependencies

<div align="center">
PackageVersionPurpose
@modelcontextprotocol/sdk^1.0.0MCP Core Framework
@readme/openapi-parser^4.1.0Professional OpenAPI Parsing
axios^1.6.0HTTP Request Handling
cheerio^1.0.0HTML Parsing Engine
turndown^7.1.2HTML to Markdown
yaml^2.8.0YAML Format Support
zod^3.22.0Data Validation Framework
playwright^1.40.0Browser automation
</div>

πŸ“ Changelog

πŸŽ‰ v1.2.0 (Latest)

<div align="center">

πŸš€ Major Feature Updates

</div>
  • ✨ Added Enhanced content processing with AI-powered cleanup
  • ✨ Added Smart analytics: word count, reading time, content summary
  • ✨ Added Language detection and multi-language support
  • ✨ Added Stealth browser capabilities for anti-detection
  • ✨ Added Built-in rate limiting and retry mechanisms
  • ✨ Added Advanced content filtering and ad removal
  • πŸ”§ Enhanced Markdown processing with more HTML element support
  • πŸ“Š Improved Output format with rich metadata
  • 🎯 Fixed Various technical issues and dependencies

🎯 v1.1.0 (Previous)

<div align="center">

πŸš€ Major Feature Updates

</div>
  • ✨ Added Full OpenAPI 3.x/Swagger 2.0 support
  • ✨ Added JSON/YAML format auto-detection
  • ✨ Added Professional-grade spec validation and reference resolution
  • ✨ Added Version auto-adaptation mechanism
  • ✨ Added Structured API documentation summary
  • πŸ”§ Pre-configured Multiple OpenAPI/Swagger examples
  • πŸ“¦ Added NPM package distribution with npx support
  • 🎯 Enhanced Installation methods for better user experience

🎯 v1.0.0 (Stable)

  • πŸŽ‰ Initial Release
  • 🌐 Basic Functions Website content fetching
  • πŸ“ Core Functions Markdown conversion
  • βš™οΈ Configuration Support Multi-website management

🀝 Contributing

πŸ’‘ How to Contribute

  1. 🍴 Fork this project
  2. 🌟 Create feature branch (git checkout -b feature/AmazingFeature)
  3. πŸ“ Commit changes (git commit -m 'Add some AmazingFeature')
  4. πŸ“€ Push to branch (git push origin feature/AmazingFeature)
  5. πŸ”„ Open Pull Request

πŸ› Issue Reporting

Report issues on the Issues page, please include:

  • πŸ” Issue Description
  • πŸ”„ Reproduction Steps
  • πŸ’» Environment Information
  • πŸ“Έ Screenshots or Logs

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


<div align="center">

🌟 If this project helps you, please give it a Star!

πŸ’¬ Have questions or suggestions? Feel free to open an Issue!


Made by Sun ❀️ for the Developer Community

</div>