Provides web content fetching and HTML-to-markdown conversion to enable chunked web content access for MCP clients.
Configuration
View docs{
"mcpServers": {
"fetch": {
"command": "uvx",
"args": [
"mcp-server-fetch"
],
"env": {
"PYTHONIOENCODING": "utf-8"
}
}
}
}You can use the Fetch MCP Server to retrieve web content and convert HTML to markdown, enabling language models to read and process online pages in manageable chunks. This is useful when you need structured web content as plain text and markdown for downstream tasks.
To use the Fetch MCP Server, run it locally or remotely and send it a URL to fetch. The server will return the page content converted to markdown, with support for chunked reading using a start_index to begin extraction at a specific character offset. This allows models to read web pages piece by piece until they locate the information they need. Use the fetch tool to request a URL and receive the extracted markdown content.
Prerequisites: you need a runtime to run the server. You can choose among several installation methods depending on your preference and environment.
Option 1: Using uvx (recommended)
Run the MCP server using uvx directly. No special installation is required beyond having uvx available.# When using uv (via uvx) you run the server with:
# Command shown in the setup section
uvx mcp-server-fetchpip install mcp-server-fetchpython -m mcp_server_fetchThe server can be configured in multiple ways depending on how you want to run it. Below are representative configuration blocks you might apply in your MCP client settings.
Fetches a URL and extracts its contents as markdown for easy processing by models.