Skip to main content
Glama

Fetch MCP Server

by phpmac

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

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

シンプルな API 呼び出しを通じて、さまざまな形式 (HTML、JSON、プレーン テキスト、Markdown) の Web コンテンツを取得および変換する機能を提供します。

  1. ツール
    1. 2つの開始方法
      1. 使用法
        1. リソース
          1. 参考文献

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              A powerful MCP server for fetching and transforming web content into various formats (HTML, JSON, Markdown, Plain Text) with ease.
              Last updated -
              4
              1,145
              36
              MIT License
              • Apple
              • Linux
            • A
              security
              A
              license
              A
              quality
              Enables web content scanning and analysis by fetching, analyzing, and extracting information from web pages using tools like page fetching, link extraction, site crawling, and more.
              Last updated -
              6
              10
              MIT License
            • A
              security
              A
              license
              A
              quality
              Provides functionality to fetch web content in various formats, including HTML, JSON, plain text, and Markdown.
              Last updated -
              4
              46
              580
              MIT License
            • A
              security
              F
              license
              A
              quality
              Provides functionality to fetch web content in various formats, including HTML, JSON, plain text, and Markdown.
              Last updated -
              4
              100,594
              2

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/phpmac/fetch_mcp'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server