Better Fetch - Advanced Web Content MCP Server

Better Fetch - Advanced Web Content MCP Server

better-fetch•byflutterninja9

An MCP server that intelligently fetches and processes web content with nested URL crawling, transforming documentation sites and web resources into clean, structured markdown for AI consumption.

License: MIT•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Provides a fetch_website_nested tool for comprehensive web crawling with nested URL processing, configurable depth, page limits, domain restrictions, and include/exclude regex patterns.
  • •Provides a fetch_website_single tool for simple single-page content extraction.
  • •Cleans content by removing ads, navigation, and scripts, detects main content areas, and generates markdown with automatic titles and a table of contents.
  • •Preserves code blocks and links while integrating metadata such as source URLs and generation timestamps into the markdown output.

BEST FOR

  • •Converting API docs, framework docs, and tutorial series into organized markdown documents.
  • •Preparing clean, structured web content for LLM training and RAG system input.
  • •Gathering competitor documentation and product information from multiple related pages for research.

ABOUT BETTER-FETCH

Better Fetch - Advanced Web Content MCP Server is cataloged as an MCP server attributed to flutterninja9. An MCP server that intelligently fetches and processes web content with nested URL crawling, transforming documentation sites and web resources into clean, structured markdown for AI consumption. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Better Fetch - Advanced Web Content MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Can I restrict crawling to a single domain or exclude certain URLs?

Yes. Nested fetching supports sameDomainOnly restriction and include/exclude regex patterns to focus the crawl.

What are the default crawl limits?

By default it crawls to a max depth of 2 levels, up to 50 pages, with a 10-second request timeout and a 500ms delay between requests.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 8dc10b97e607 · 采集于 2026-11-13 11:04:26 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MseeP.ai Security Assessment Badge

Better Fetch Banner

Better Fetch - Advanced Web Content MCP Server

License: MIT TypeScript Node.js smithery badge npm version

A powerful Model Context Protocol (MCP) server that intelligently fetches and processes web content with nested URL crawling capabilities. Transform any documentation site or web resource into clean, structured markdown files perfect for AI consumption and analysis.

🚀 Key Features

🕸️ Smart Web Crawling

  • Nested URL Fetching: Automatically discovers and crawls linked pages up to configurable depth
  • Single Page Mode: Option for simple single-page content extraction
  • Domain Filtering: Stay within the same domain or allow cross-domain crawling
  • Pattern Matching: Include/exclude URLs based on regex patterns

🧠 Intelligent Content Processing

  • Content Cleaning: Removes ads, navigation, scripts, and other noise automatically
  • Smart Section Detection: Identifies main content areas (<main>, <article>, .content)
  • Automatic Titles: Generates meaningful section headers based on page titles and URL structure
  • Table of Contents: Creates organized TOC with proper nesting

📝 Advanced Markdown Generation

  • Clean Formatting: Converts HTML to well-structured markdown
  • Code Block Preservation: Maintains formatting for code snippets and technical content
  • Link Preservation: Keeps all important links with proper markdown syntax
  • Metadata Integration: Includes source URLs, generation timestamps, and site information

⚙️ Highly Configurable

  • Crawl Depth Control: Set maximum levels to crawl (default: 2)
  • Page Limits: Control maximum pages to process (default: 50)
  • Timeout Settings: Configurable request timeouts
  • Respectful Crawling: Built-in delays between requests
  • Error Handling: Graceful handling of failed requests and invalid URLs

📋 Available Tools

1. fetch_website_nested

Comprehensive web crawling with nested URL processing.

Parameters:

  • url (required): Starting URL to crawl
  • maxDepth (optional, default: 2): Maximum crawl depth
  • maxPages (optional, default: 50): Maximum pages to process
  • sameDomainOnly (optional, default: true): Restrict to same domain
  • excludePatterns (optional): Array of regex patterns to exclude
  • includePatterns (optional): Array of regex patterns to include
  • timeout (optional, default: 10000): Request timeout in milliseconds

2. fetch_website_single

Simple single-page content extraction.

Parameters:

  • url (required): URL to fetch
  • timeout (optional, default: 10000): Request timeout in milliseconds

💡 Use Cases

📚 Documentation Processing

  • API Documentation: Convert REST API docs, SDK guides, and technical references
  • Framework Docs: Process React, Vue, Angular, or any framework documentation
  • Library Guides: Extract comprehensive guides from library documentation sites
  • Tutorial Series: Gather multi-part tutorials into single organized documents

🔍 Content Analysis & Research

  • Competitive Analysis: Gather competitor documentation and feature descriptions
  • Market Research: Extract product information from multiple related pages
  • Academic Research: Collect and organize web-based research materials
  • Knowledge Base Creation: Transform scattered web content into structured knowledge bases

🤖 AI Training & Context

  • LLM Context Preparation: Create clean, structured content for AI model training
  • RAG System Input: Generate high-quality documents for Retrieval-Augmented Generation
  • Chatbot Knowledge: Build comprehensive knowledge bases for customer service bots
  • Content Summarization: Prepare web content for automated summarization tasks

🛠️ Installation & Setup

The simplest way to use Better Fetch is via npx. Just add this to your MCP client configuration:

For Claude Desktop - Add to claude_desktop_config.json:

{
  "mcpServers": {
    "better-fetch": {
      "command": "npx",
      "args": ["-y", "@infero.mcp/better-fetch"]
    }
  }
}

For VS Code MCP Extension:

{
  "better-fetch": {
    "command": "npx",
    "args": ["-y", "@infero.mcp/better-fetch"]
  }
}

This automatically downloads and runs the latest version without any manual installation or build steps.

Installing via Smithery

To install Better Fetch for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @infero.mcp/better-fetch --client claude

Prerequisites

  • Node.js 18+
  • npm or yarn
  • MCP-compatible client (Claude Desktop, VS Code with MCP extension, etc.)

Step 1: Clone and Install

git clone https://github.com/flutterninja9/better-fetch.git
cd better-fetch
npm install

Step 2: Build the Project

npm run build

Step 3: Test the Server (Optional)

# Quick test
npm run dev

# Or run comprehensive tests
node test-mcp.js

Step 4: Configure Your MCP Client

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "better-fetch": {
      "command": "npx",
      "args": ["-y", "@infero.mcp/better-fetch"]
    }
  }
}
{
  "better-fetch": {
    "command": "npx",
    "args": ["-y", "@infero.mcp/better-fetch"]
  }
}

For Custom MCP Client (via npm):

{
  "name": "better-fetch",
  "command": "npx",
  "args": ["-y", "@infero.mcp/better-fetch"]
}

Manual Installation (Alternative)

If you prefer to install and build locally:

For Claude Desktop:

{
  "mcpServers": {
    "better-fetch": {
      "command": "node",
      "args": ["/absolute/path/to/better-fetch/dist/server.js"],
      "env": {
        "NODE_ENV": "production"
      }
    }
  }
}

For VS Code MCP Extension:

{
  "better-fetch": {
    "command": "node",
    "args": ["/absolute/path/to/better-fetch/dist/server.js"]
  }
}

📖 Usage Examples

Basic Documentation Crawling

Fetch all the web contents from this Flutter Shadcn UI documentation site:
https://flutter-shadcn-ui.mariuti.com/

Use nested fetching with a maximum depth of 3 levels and process up to 100 pages.

Advanced Configuration

Fetch content from the React documentation but exclude any URLs containing 'api' or 'reference' and only process pages containing 'tutorial' or 'guide':

URL: https://react.dev
Max Depth: 2
Exclude Patterns: ["/api/", "/reference/"]
Include Patterns: ["/tutorial/", "/guide/"]
Max Pages: 30

Single Page Extraction

Extract the content from this specific page only:
https://nextjs.org/docs/getting-started/installation

Use single page mode to avoid crawling related links.

📄 Sample Output

The server generates comprehensive markdown files with the following structure:

# Site Name Documentation

*Scraped from: https://example.com*
*Generated on: 2024-01-15T10:30:00.000Z*

## Table of Contents

- [Getting Started](#getting-started)
  - [Installation](#installation)
  - [Quick Start](#quick-start)
- [API Reference](#api-reference)
  - [Core Functions](#core-functions)

---

## Getting Started

*Source: [https://example.com/getting-started](https://example.com/getting-started)*

[Clean markdown content here...]

---

## Installation

*Source: [https://example.com/installation](https://example.com/installation)*

[Installation instructions in markdown...]

For a complete example, refer to output.md which demonstrates the server's output when processing a real documentation site.

🔧 Development

Project Structure

better-fetch/
├── src/
│   └── server.ts          # Main server implementation
├── dist/                 # Compiled JavaScript
├── test-mcp.js          # Testing utilities
├── output.md            # Sample output file
├── package.json
├── tsconfig.json
└── README.md

Available Scripts

npm run dev          # Run in development mode with hot reload
npm run build        # Compile TypeScript to JavaScript
npm run start        # Run the compiled server
npm run clean        # Clean dist directory
npm test             # Run test suite

Testing Your Changes

# Interactive testing
node interactive-test.js

# Automated test suite
node test-mcp.js

# Manual JSON-RPC testing
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | node dist/index.js

🚦 Performance & Limits

Default Limits

  • Max Depth: 2 levels (configurable)
  • Max Pages: 50 pages (configurable)
  • Request Timeout: 10 seconds (configurable)
  • Crawl Delay: 500ms between requests (respectful crawling)

Performance Tips

  • Set appropriate maxPages limits for large sites
  • Use includePatterns to focus on relevant content
  • Enable sameDomainOnly to avoid external link crawling
  • Adjust timeout based on target site response times

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Setup

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Make your changes and add tests
  4. Commit your changes: git commit -m 'Add amazing feature'
  5. Push to the branch: git push origin feature/amazing-feature
  6. Open a Pull Request

📜 License

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

🆘 Support & Issues

🙏 Acknowledgments


Made with ❤️ for the AI and developer community

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Better Fetch - Advanced Web Content MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/better-fetch)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research