MCP.so
登录

概览

What is Fetch?

Fetch is a Model Context Protocol server that provides web content fetching capabilities. It enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption. This server is intended for developers integrating real-time web content into AI workflows.

How to use Fetch?

Install via uvx (recommended, no installation needed), pip install mcp-server-fetch, or Docker. Configure the server in Claude.app, VS Code, or any MCP-compatible client. Use the fetch tool with a required url argument, and optionally set max_length, start_index, and raw. The server also provides a fetch prompt. Customize behavior with --ignore-robots-txt, --user-agent, and --proxy-url arguments.

Key features of Fetch

  • Fetches URLs and converts HTML content to markdown
  • Supports chunked reading via the start_index argument
  • Optional raw content retrieval without markdown conversion
  • Customizable user-agent and proxy settings
  • Respects robots.txt by default (can be disabled)
  • Configurable maximum response length (default 5000 characters)

Use cases of Fetch

  • Enabling an LLM to read long web pages in chunks until it finds needed information
  • Extracting content from specific sections of a web page
  • Fetching web content for summarization, analysis, or question answering

FAQ from Fetch

Can it access local or internal IP addresses?

Yes, which may represent a security risk. Exercise caution to avoid exposing sensitive data.

How do I install Fetch?

Recommended method: use uvx which requires no installation. Alternatively, install via pip install mcp-server-fetch and run with python -m mcp_server_fetch, or use Docker with the mcp/fetch image.

How can I customize the user-agent?

Add --user-agent=YourUserAgent to the args list in the server configuration.

Does it respect robots.txt by default?

Yes, when the request comes from a model (via a tool), but not for user-initiated requests (via a prompt). This can be disabled with --ignore-robots-txt.

Can I use a proxy with Fetch?

Yes, set the proxy URL using the --proxy-url argument in the server configuration.

标签

来自「浏览器自动化」的更多内容