# fetch-mcp

> MCP Server

This repository provides an MCP server to fetch web content in various formats, including HTML, JSON, plain text, and Markdown, enabling easy integration with desktop applications. This repository provides an

## Overview

- **Category:** Developer Tools
- **Language:** TypeScript
- **Stars:** 809
- **Forks:** 25
- **Owner:** zcaceres
- **GitHub:** https://github.com/zcaceres/fetch-mcp
- **Created:** 2024-12-18T01:05:17+00:00
- **Updated:** 2025-03-28T16:06:51+00:00
- **Source:** https://model-context-protocol.com/servers/http-fetch-mcp-server-web-content

## Setup

## Setup

1. Clone the repository
2. Install dependencies: `npm install`
3. Build the server: `npm run build`

## Tools

## Available Tools

1. fetch_html (Fetch a website and return the content as HTML)
2. fetch_json (Fetch a JSON file from a URL)
3. fetch_txt (Fetch a website and return the content as plain text (no HTML))
4. fetch_markdown (Fetch a website and return the content as Markdown)
5. Fetches web content using modern fetch API
6. Supports custom headers for requests
7. Provides content in multiple formats: HTML, JSON, plain text, and Markdown
8. Uses JSDOM for HTML parsing and text extraction
9. Uses TurndownService for HTML to Markdown conversion
