MCP ExplorerExplorer

Fetch Mcp

@phpmacon 10 months ago
1 MIT
FreeCommunity
AI Systems
Fetch MCP Server

Overview

What is Fetch Mcp

fetch_mcp is a server designed to fetch web content in various formats such as HTML, JSON, plain text, and Markdown.

Use cases

Use cases include building web crawlers, creating content management systems, integrating web data into applications, and transforming web pages into different formats.

How to use

To use fetch_mcp, you can start it using either ‘bun’ or ‘docker’. For ‘bun’, run ‘bun i’ followed by ‘bun start’. For ‘docker’, use ‘docker compose up --build -d’.

Key features

Key features include fetching HTML content, JSON files, plain text, and converting web content to Markdown format. It supports custom headers for requests.

Where to use

fetch_mcp can be used in web scraping, content aggregation, data transformation, and any application that requires fetching and processing web content.

Content

Fetch MCP Server

English | 中文

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

Tools

  • fetch_html

    • Fetch website content and return as HTML
    • Input parameters:
      • url (string, required): URL of the website to fetch
      • headers (object, optional): Custom headers to include in the request
    • Returns the raw HTML content of the webpage
  • fetch_json

    • Fetch JSON file from URL
    • Input parameters:
      • url (string, required): URL of the JSON to fetch
      • headers (object, optional): Custom headers to include in the request
    • Returns the parsed JSON content
  • fetch_txt

    • Fetch website content and return as plain text (no HTML)
    • Input parameters:
      • url (string, required): URL of the website to fetch
      • headers (object, optional): Custom headers to include in the request
    • Returns the text content of the webpage with HTML tags, scripts, and styles removed
  • fetch_markdown

    • Fetch website content and return as Markdown
    • Input parameters:
      • url (string, required): URL of the website to fetch
      • headers (object, optional): Custom headers to include in the request
    • Returns the webpage content converted to Markdown format

2 Ways to Start

  1. bun
bun i
bun start
  1. docker
docker compose up --build -d

Usage

{
  "mcpServers": {
    "fetch-mcp": {
      "transport": "sse",
      "url": "http://localhost:3000/sse",
      "headers": {
        "Authorization": "Bearer your-token-here",
        "X-Custom-Header": "custom-value"
      },
      "useNodeEventSource": true
    }
  }
}

Resources

This server does not provide any persistent resources. It is designed to fetch and transform web content on demand.

References

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers