Fetch MCP Server

Retrieves web content in various formats via HTTP.

Local serverstdioTypeScript★ 3

What is the Fetch MCP Server?

Retrieves web content in various formats via HTTP.

What you get

This MCP server provides functionality to fetch web content in various formats, including HTML, JSON, plain text, and Markdown.

  • Fetches web content using modern fetch API
  • Supports custom headers for requests
  • Provides content in multiple formats: HTML, JSON, plain text, and Markdown
  • Uses JSDOM for HTML parsing and text extraction
  • Uses TurndownService for HTML to Markdown conversion

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
fetch_htmlFetch a website and return the content as HTML
Input:url (string, required): URL of the website to fetch
headersobject, optional): Custom headers to include in the request
fetch_jsonFetch a JSON file from a URL
fetch_txtFetch a website and return the content as plain text (no HTML)
fetch_markdownFetch a website and return the content as Markdown

How to install the Fetch MCP Server

{
  "mcpServers": {
    "fetch": {
      "command": "node",
      "args": [
        "{ABSOLUTE PATH TO FILE HERE}/dist/index.js"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Example prompts to try

  • “Use Fetch to fetch html.”
  • “Use Fetch to Input.”
  • “Use Fetch to fetch json.”

Frequently asked questions

Fetch can retrieve web content in HTML, JSON, plain text, and Markdown formats, providing versatility for different data needs.