Better Fetch
Better Fetch is an advanced MCP server that intelligently fetches and processes web content into clean, structured markdown for AI consumption and analysis.
Core Capabilities:
Nested URL crawling - Automatically discover and crawl linked pages up to configurable depth (default: 2 levels, max 50 pages)
Single page extraction - Fetch and convert individual web pages to markdown
Smart domain filtering - Restrict crawling to the starting domain or allow cross-domain discovery
Pattern-based URL filtering - Include/exclude URLs using regex patterns for targeted content extraction
Intelligent content cleaning - Automatically remove navigation, ads, scripts, and other noise to focus on main content
Advanced markdown conversion - Preserve code blocks, links, and formatting with proper structure
Table of Contents generation - Create organized TOC with proper nesting based on site structure
Metadata integration - Include source URLs, timestamps, and site information in output
Configuration Options:
Configurable crawl depth, page limits, and request timeout (default: 10 seconds)
Built-in delays between requests (500ms) for respectful crawling
Graceful error handling for failed requests and invalid URLs
Use Cases:
Documentation processing - Convert API docs, framework guides, and technical references
Content analysis & research - Competitive analysis, market research, and knowledge gathering
AI training preparation - Create clean content for LLM context, RAG systems, chatbot knowledge bases, and content summarization
Used for HTML parsing during web crawling, allowing the MCP server to extract and process web content from documentation sites
Provides capabilities for processing Flutter documentation sites, with an example specifically mentioning Flutter Shadcn UI documentation crawling
Transforms web content into clean, structured markdown files optimized for AI consumption and analysis
Serves as the runtime environment for the MCP server, with requirements specifying Node.js 18+ for operation
Mentioned as a use case for processing framework documentation, converting React docs into clean, structured markdown for AI consumption
Used as the implementation language for the MCP server, providing type safety and modern JavaScript features
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Better Fetchfetch the React documentation with nested links up to 3 levels"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.

Better Fetch - Advanced Web Content MCP Server
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
Related MCP server: Inngest MCP Docs Server
π Available Tools
1. fetch_website_nested
Comprehensive web crawling with nested URL processing.
Parameters:
url(required): Starting URL to crawlmaxDepth(optional, default: 2): Maximum crawl depthmaxPages(optional, default: 50): Maximum pages to processsameDomainOnly(optional, default: true): Restrict to same domainexcludePatterns(optional): Array of regex patterns to excludeincludePatterns(optional): Array of regex patterns to includetimeout(optional, default: 10000): Request timeout in milliseconds
2. fetch_website_single
Simple single-page content extraction.
Parameters:
url(required): URL to fetchtimeout(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
Quick Install via npm (Recommended)
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 claudePrerequisites
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 installStep 2: Build the Project
npm run buildStep 3: Test the Server (Optional)
# Quick test
npm run dev
# Or run comprehensive tests
node test-mcp.jsStep 4: Configure Your MCP Client
For Claude Desktop (Recommended - via npm):
Add to your claude_desktop_config.json:
{
"mcpServers": {
"better-fetch": {
"command": "npx",
"args": ["-y", "@infero.mcp/better-fetch"]
}
}
}For VS Code MCP Extension (Recommended - via npm):
{
"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: 30Single 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.mdAvailable 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 suiteTesting 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
maxPageslimits for large sitesUse
includePatternsto focus on relevant contentEnable
sameDomainOnlyto avoid external link crawlingAdjust
timeoutbased on target site response times
π€ Contributing
We welcome contributions! Please see our Contributing Guide for details.
Development Setup
Fork the repository
Create a feature branch:
git checkout -b feature/amazing-featureMake your changes and add tests
Commit your changes:
git commit -m 'Add amazing feature'Push to the branch:
git push origin feature/amazing-featureOpen a Pull Request
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π Support & Issues
Bug Reports: GitHub Issues
Feature Requests: GitHub Discussions
Documentation: Check the Wiki
npm Package: @infero.mcp/better-fetch
π Acknowledgments
Built with the Model Context Protocol SDK
Powered by Cheerio for HTML parsing
Markdown conversion by Turndown
Made with β€οΈ for the AI and developer community
Available Tools
2 toolsfetch_website_nestedC
Fetch website content with nested URL crawling and convert to clean markdown
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The starting URL to fetch and crawl | |
| maxDepth | No | Maximum depth to crawl (default: 2) | |
| maxPages | No | Maximum number of pages to fetch (default: 50) | |
| sameDomainOnly | No | Only crawl URLs from the same domain (default: true) | |
| excludePatterns | No | Regex patterns for URLs to exclude | |
| includePatterns | No | Regex patterns for URLs to include (if specified, only matching URLs will be processed) | |
| timeout | No | Request timeout in milliseconds (default: 10000) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions crawling and markdown conversion but fails to disclose critical traits like rate limits, authentication needs, error handling, or what happens when limits (maxDepth/maxPages) are reached. The description is too vague about operational behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that front-loads the core functionality. Every word earns its place, with no redundant or vague phrasing, making it easy to parse quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (7 parameters, crawling behavior) and lack of annotations and output schema, the description is insufficient. It omits details on return format, error cases, performance implications, and practical usage constraints, leaving significant gaps for an AI agent to operate effectively.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema fully documents all 7 parameters. The description adds no additional meaning beyond implying crawling behavior, which is already suggested by parameter names like 'maxDepth' and 'sameDomainOnly.' Baseline 3 is appropriate as the schema does the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('fetch website content with nested URL crawling') and transformation ('convert to clean markdown'), providing a specific verb+resource combination. It distinguishes from the sibling tool 'fetch_website_single' by specifying 'nested URL crawling,' though it could be more explicit about the distinction.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus the sibling 'fetch_website_single' or other alternatives. It lacks context about scenarios where nested crawling is preferred over single-page fetching, such as for multi-page documentation or site-wide content extraction.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
fetch_website_singleB
Fetch content from a single webpage and convert to clean markdown
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to fetch | |
| timeout | No | Request timeout in milliseconds (default: 10000) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries full burden. It mentions conversion to markdown, which is a behavioral trait, but lacks details on error handling, rate limits, authentication needs, or what 'clean' entails. This is inadequate for a tool that performs network operations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence with zero waste. It is front-loaded with the core purpose and transformation, making it easy to understand quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no annotations and no output schema, the description is incomplete. It lacks information on return values (e.g., markdown structure, error formats), behavioral constraints, and differentiation from the sibling tool, which is crucial for a tool with network dependencies.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema fully documents both parameters. The description does not add any meaning beyond what the schema provides, such as URL format expectations or timeout implications. Baseline 3 is appropriate when schema does the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the specific action ('Fetch content'), target resource ('from a single webpage'), and transformation ('convert to clean markdown'). It distinguishes from the sibling tool 'fetch_website_nested' by specifying 'single' versus implied nested/multiple pages.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for fetching a single webpage's content, but does not explicitly state when to use this tool versus the sibling 'fetch_website_nested' or other alternatives. No exclusions or prerequisites are mentioned.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
2 tool updates
- First observed
fetch_website_nested - First observed
fetch_website_single
TDQS
The two tools have clearly distinct purposes: one handles single-page fetching while the other includes nested URL crawling. The descriptions explicitly differentiate between these scopes, leaving no room for confusion or misselection.
Both tools follow a consistent verb_noun pattern with 'fetch_website' as the base, differentiated by descriptive suffixes ('_single' and '_nested'). This predictable naming makes it easy to understand their relationship and functionality.
With only two tools, the server feels under-scoped for a 'Better Fetch' purpose. While the tools cover basic fetching scenarios, there are likely missing operations like handling authentication, adjusting fetch parameters, or error management that would be expected in a robust fetching toolset.
For a fetching domain, the toolset is severely incomplete. It lacks essential operations such as configuring fetch options (e.g., headers, timeouts), handling different content types, managing errors, or providing status information. This will likely cause agent failures when dealing with complex fetching tasks.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yoβ¦
Web search, URL content extraction to Markdown, site mapping, and recursive web crawler.
Document-to-Markdown MCP server β convert PDF, Office and HTML into LLM-ready Markdown.
A Model Context Protocol server for Wix AI tools
Related MCP Servers
- FlicenseBqualityDmaintenanceA Model Context Protocol server that enables LLMs to fetch and process web content in multiple formats (HTML, JSON, Markdown, text) with automatic format detection.56-
- -licenseNot gradedqualityNot gradedmaintenanceA Model Context Protocol server that provides AI coding agents with access to up-to-date Inngest documentation by fetching and converting web content to Markdown format.3-
- AlicenseBqualityDmaintenanceA Model Context Protocol server that allows LLMs to retrieve and convert web content to markdown without robots.txt restrictions.12MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server that provides web content fetching capabilities with robots.txt checking removed, allowing LLMs to retrieve and convert web content to markdown.21MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/flutterninja9/better-fetch'
If you have feedback or need assistance with the MCP directory API, please join our Discord server