Get the FREE Ultimate OpenClaw Setup Guide →

Fetch

Official

MCP server for fetching web content and converting HTML to markdown.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio modelcontextprotocol-server-fetch npx -y @modelcontextprotocol/server-fetch

How to use

Fetch is a powerful MCP server designed to fetch web content and convert HTML into markdown format effortlessly. By utilizing this server, developers can easily extract and transform web data, making it ideal for applications that require content scraping or markdown generation for documentation and blogging purposes. With its streamlined functionality, Fetch enhances your workflow, allowing you to focus on building rather than formatting.

Once connected to the Fetch MCP server, you can utilize the available tool, fetch, to extract content from any given URL. Simply provide the URL you wish to scrape, and the server will return the content formatted in markdown. This tool is best used with publicly accessible web pages or blogs, where you expect structured HTML content that can be effectively converted to markdown.

How to install

To get started with Fetch, ensure you have Node.js installed on your machine. You can verify your installation by running node -v in your terminal.

Option A: Quick start with npx

For a quick start, you can use npx to run Fetch without a global installation:

npx -y @modelcontextprotocol/server-fetch

Option B: Global install alternative

If you prefer to install Fetch globally, use the following command:

npm install -g @modelcontextprotocol/server-fetch

Additional notes

When using Fetch, pay attention to the structure of the HTML content on the target webpage, as inconsistencies can affect the markdown output. Additionally, consider setting up environment variables for your application to manage API keys or other configurations securely. A common issue is attempting to scrape content from websites with restrictive CORS policies, which may prevent access to the desired data.

Available tools

fetch

Fetches a URL and extracts content as markdown

Related MCP Servers

Sponsor this space

Reach thousands of developers