Fetch MCP server with CSS selector support

Fetch MCP server with CSS selector support

burnworks-mcp-server-fetch•byburnworks

A Model Context Protocol server that fetches web pages, converts HTML to markdown, and supports extracting targeted content using CSS selectors, IDs, or element names.

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

WHAT IT DOES

  • •Fetches a URL and returns its contents as markdown, with options for maximum length, start index, and returning raw content without markdown conversion.
  • •Supports extracting specific page content by ID selector, element selector, or CSS selector syntax.
  • •Allows reading a webpage in chunks by specifying a start character index, so models can continue extraction until they find needed information.
  • •Obeys robots.txt by default for model-initiated tool requests, with an option to disable this behavior.

BEST FOR

  • •Extracting just the main article content from news sites.
  • •Focusing on specific sections of documentation pages using selectors.
  • •Targeting precisely the needed content from large web pages.

ABOUT BURNWORKS-MCP-SERVER-FETCH

Fetch MCP server with CSS selector support is cataloged as an MCP server attributed to burnworks. A Model Context Protocol server that fetches web pages, converts HTML to markdown, and supports extracting targeted content using CSS selectors, IDs, or element names. 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 License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

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 Fetch MCP server with CSS selector support 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

What selector types are supported for extracting page content?

The server supports three selector types: 'css', 'id', and 'element'.

Does the server follow websites' robots.txt rules?

By default it obeys robots.txt for model-initiated tool requests but not for user-initiated prompt requests, and this can be disabled with the --ignore-robots-txt argument.

Is this project based on another MCP server?

Yes, it was developed as a fork of the original mcp-server-fetch with added CSS selector functionality.

Upstream README

View this exact version on GitHub

README.md · 9a503b34a1e7 · Fetched 2026-11-13 11:30:33 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Fetch MCP Server with CSS selectors function

A Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.

The fetch tool will truncate the response, but by using the start_index argument, you can specify where to start the content extraction. This lets models read a webpage in chunks, until they find the information they need.

Available Tools

  • custom-fetch - Fetches a URL from the internet and extracts its contents as markdown.
    • url (string, required): URL to fetch
    • max_length (integer, optional): Maximum number of characters to return (default: 5000)
    • start_index (integer, optional): Start content from this character index (default: 0)
    • raw (boolean, optional): Get raw content without markdown conversion (default: false)
    • selector (string, optional): CSS selector, ID, or element name to extract specific content
    • selector_type (string, optional): Type of selector: 'css', 'id', or 'element'

Prompts

  • custom-fetch
    • Fetch a URL and extract its contents as markdown
    • Arguments:
      • url (string, required): URL to fetch
      • selector (string, optional): CSS selector, ID, or element name to extract specific content
      • selector_type (string, optional): Type of selector: 'css', 'id', or 'element'

Selector Feature

This enhanced version includes a powerful selector feature that allows you to extract specific content from web pages:

Types of Selectors

  • ID Selector: Extract a specific element by its ID attribute

    {
      "url": "https://example.com",
      "selector": "main-content",
      "selector_type": "id"
    }
    
  • Element Selector: Extract the first element of a specific type

    {
      "url": "https://example.com",
      "selector": "main",
      "selector_type": "element"
    }
    
  • CSS Selector: Extract content using CSS selector syntax

    {
      "url": "https://example.com",
      "selector": ".article-content > p",
      "selector_type": "css"
    }
    

Use Cases

  • Extract just the main article content from news sites
  • Focus on specific sections of documentation pages
  • Target precisely the content you need from large web pages

Installation

Optionally: Install node.js, this will cause the fetch server to use a different HTML simplifier that is more robust.

When using uv no specific installation is needed. We will use uvx to directly run burnworks-mcp-server-fetch.

Using PIP

Alternatively you can install burnworks-mcp-server-fetch via pip:

pip install burnworks-mcp-server-fetch

After installation, you can run it as a script using:

python -m burnworks_mcp_server_fetch

Configuration

Configure for Claude.app

Add to your Claude settings:

Using uvx
"mcpServers": {
  "custom-fetch": {
    "command": "uvx",
    "args": ["burnworks-mcp-server-fetch"]
  }
}
Using pip installation
"mcpServers": {
  "custom-fetch": {
    "command": "python",
    "args": ["-m", "burnworks_mcp_server_fetch"]
  }
}

Customization - robots.txt

By default, the server will obey a websites robots.txt file if the request came from the model (via a tool), but not if the request was user initiated (via a prompt). This can be disabled by adding the argument --ignore-robots-txt to the args list in the configuration.

Customization - User-agent

By default, depending on if the request came from the model (via a tool), or was user initiated (via a prompt), the server will use either the user-agent

ModelContextProtocol/1.0 (Autonomous; +https://github.com/modelcontextprotocol/servers)

or

ModelContextProtocol/1.0 (User-Specified; +https://github.com/modelcontextprotocol/servers)

This can be customized by adding the argument --user-agent=YourUserAgent to the args list in the configuration.

Customization - Proxy

The server can be configured to use a proxy by using the --proxy-url argument.

Debugging

You can use the MCP inspector to debug the server. For uvx installations:

npx @modelcontextprotocol/inspector uvx burnworks-mcp-server-fetch

Or if you've installed the package in a specific directory or are developing on it:

cd path/to/servers/src/fetch
npx @modelcontextprotocol/inspector uv run burnworks-mcp-server-fetch

Example Selector Usage

Extract Just the Main Content Area

custom-fetch
  url: https://example.com/article
  selector: main
  selector_type: element

Extract Content by ID

custom-fetch
  url: https://example.com/blog
  selector: article-body
  selector_type: id

Extract with Complex CSS Selector

custom-fetch
  url: https://example.com/documentation
  selector: .content-wrapper article > section:first-child
  selector_type: css

Contributing

This project, burnworks_mcp_server_fetch, was developed as a fork of the original mcp-server-fetch with added CSS selector functionality. The original project can be found at:

https://github.com/modelcontextprotocol/servers

If you'd like to contribute to this enhanced version, feel free to submit issues or pull requests to our repository. For information about the base MCP servers architecture and implementation patterns, please refer to the original project link above.

License

This project is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

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 Fetch MCP server with CSS selector support 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/burnworks-mcp-server-fetch)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

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

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

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