Fetch MCP Server
by modelcontextprotocol
Fetch MCP Server is a Model Context Protocol server that fetches web content. It retrieves content from web pages and converts HTML to markdown for easier use by LLMs.
Last updated: N/A
What is Fetch MCP Server?
Fetch MCP Server retrieves web content, such as HTML pages, and transforms them into markdown format for use with Language Learning Models. It provides tools to fetch URLs and control aspects of the retrieval process.
How to use Fetch MCP Server?
You can use this server by calling the fetch
tool, providing a URL. You can install via uv, pip, or use docker. Detailed configuration examples are provided for Claude.app, including different installation methods. Use the provided prompts to invoke the fetch tool.
Key features of Fetch MCP Server
Fetches content from URLs.
Converts HTML to markdown (or can return raw content).
Allows for content truncation with
max_length
.Supports starting content extraction from a specific index (
start_index
).Option to ignore robots.txt.
Customizable User-agent
Use cases of Fetch MCP Server
Providing LLMs with web content for analysis.
Extracting specific information from webpages.
Summarizing online articles for model consumption.
Integrating web content into automated workflows.
FAQ from Fetch MCP Server
How do I install the server?
How do I install the server?
You can install using uv
(recommended), pip install mcp-server-fetch
, or docker (as shown in the configuration examples).
How do I configure the server for Claude.app?
How do I configure the server for Claude.app?
Add the server configuration to your Claude settings, specifying the command
and args
based on your installation method (uvx, docker, or pip). Examples are in the README.
How can I control the amount of content returned?
How can I control the amount of content returned?
Use the max_length
argument to limit the returned characters, and the start_index
argument to extract content from a specific position.
Can I get raw HTML content?
Can I get raw HTML content?
Yes, use the raw
argument set to true
when calling the fetch
tool.
How can I customize the user agent?
How can I customize the user agent?
By default, the server will use a default user agent. You can customize via adding the argument --user-agent=YourUserAgent
to the args
list in the configuration.