MCP.so
ログイン

Fetch MCP Server with CSS selectors function

@burnworks

基本情報

カテゴリ

ブラウザ自動化

ライセンス

MIT

トランスポート

stdio

作者

burnworks

Fetch MCP Server with CSS selectors function について

概要はまだありません

#fetch#mcp-server#web-content-fetching

Fetch MCP Server with CSS selectors function の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "burnworks-mcp-server-fetch": {
      "url": "https://example.com",
      "selector": "main-content",
      "selector_type": "id"
    }
  }
}

Fetch MCP Server with CSS selectors function のツール

1

Fetches a URL from the internet and extracts its contents as markdown.

概要

What is Fetch MCP Server with CSS selectors function?

Fetch MCP Server with CSS selectors function is a Model Context Protocol server that enables LLMs to fetch and extract web page content, converting HTML to markdown. It supports CSS, ID, and element selectors for targeted content extraction, and allows chunked reading of large pages.

How to use Fetch MCP Server with CSS selectors function?

Install using uvx (recommended) or pip. Configure in Claude.app by adding an MCP server entry with command uvx burnworks-mcp-server-fetch or python -m burnworks_mcp_server_fetch. Use the custom-fetch tool with parameters like url, max_length, start_index, raw, selector, and selector_type.

Key features of Fetch MCP Server with CSS selectors function

  • Fetches web pages and converts to markdown
  • Supports CSS, ID, and element selectors
  • Reads large pages in chunks with start_index
  • Returns raw content optionally
  • Respects or ignores robots.txt
  • Configurable user-agent and proxy

Use cases of Fetch MCP Server with CSS selectors function

  • Extracting main article content from news websites
  • Focusing on specific sections of documentation pages
  • Targeting specific content from large web pages using selectors
  • Reading a webpage in chunks to find needed information

よくある質問

1

Does this server require Node.js?

Installing Node.js is optional; it makes the HTML simplifier more robust but is not required.

2

How do I handle truncated responses?

Use the `start_index` parameter to read content in chunks, specifying where to start extraction.

3

Can I extract specific parts of a page?

Yes, use `selector` and `selector_type` with values 'css', 'id', or 'element' to target specific content.

4

How do I configure robots.txt behavior?

By default, the server obeys robots.txt for tool requests but not prompt requests. Use `--ignore-robots-txt` to disable compliance.

コメント

「ブラウザ自動化」の他のコンテンツ