Skip to main content
Glama
Fetch MCP Server

Fetch MCP Server

by zcaceres

MCPサーバーを取得する

MCPロゴを取得

この MCP サーバーは、HTML、JSON、プレーン テキスト、Markdown など、さまざまな形式で Web コンテンツを取得する機能を提供します。

コンポーネント

ツール

  • フェッチ_html

    • ウェブサイトを取得し、そのコンテンツを HTML として返します

    • 入力:

      • url (文字列、必須): 取得するウェブサイトのURL

      • headers (オブジェクト、オプション): リクエストに含めるカスタムヘッダー

    • ウェブページの生のHTMLコンテンツを返します

  • フェッチ_json

    • URLからJSONファイルを取得する

    • 入力:

      • url (文字列、必須): 取得するJSONのURL

      • headers (オブジェクト、オプション): リクエストに含めるカスタムヘッダー

    • 解析されたJSONコンテンツを返します

  • フェッチ_txt

    • ウェブサイトを取得し、そのコンテンツをプレーンテキスト(HTML なし)として返します。

    • 入力:

      • url (文字列、必須): 取得するウェブサイトのURL

      • headers (オブジェクト、オプション): リクエストに含めるカスタムヘッダー

    • HTMLタグ、スクリプト、スタイルを削除したウェブページのテキストコンテンツを返します

  • フェッチマークダウン

    • ウェブサイトを取得し、そのコンテンツをMarkdownとして返す

    • 入力:

      • url (文字列、必須): 取得するウェブサイトのURL

      • headers (オブジェクト、オプション): リクエストに含めるカスタムヘッダー

    • ウェブページのコンテンツをMarkdown形式に変換して返します

リソース

このサーバーは永続的なリソースを提供しません。オンデマンドでWebコンテンツを取得および変換するように設計されています。

Related MCP server: Fetch MCP Server

はじめる

  1. リポジトリをクローンする

  2. 依存関係をインストール: npm install

  3. サーバーをビルドする: npm run build

使用法

サーバーを使用するには、直接実行します。

npm start

これにより、stdio 上で実行される Fetch MCP サーバーが起動します。

デスクトップアプリでの使用

このサーバーをデスクトップ アプリと統合するには、アプリのサーバー構成に以下を追加します。

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

特徴

  • 最新のフェッチ API を使用して Web コンテンツを取得します

  • リクエストのカスタムヘッダーをサポート

  • 複数の形式でコンテンツを提供: HTML、JSON、プレーンテキスト、Markdown

  • HTML解析とテキスト抽出にJSDOMを使用する

  • HTMLからMarkdownへの変換にはTurndownServiceを使用します

発達

  • npm run devを実行して、TypeScript コンパイラをウォッチモードで起動します。

  • npm testを使用してテストスイートを実行します

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています。

Available Tools

4 tools
fetch_htmlC

Fetch a website and return its unmodified contents as HTML

Inputs: url (required), headers, max_length, start_index.

fetch_jsonC

Fetch a JSON file from a URL

Inputs: url (required), headers, max_length, start_index.

fetch_markdownC

Fetch a website and return its contents converted content to Markdown

Inputs: url (required), headers, max_length, start_index.

fetch_txtA

Fetch a website, convert the content to plain text (no HTML)

Inputs: url (required), headers, max_length, start_index.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: fetch_html returns raw HTML, fetch_json retrieves JSON files, fetch_markdown converts to Markdown, and fetch_txt extracts plain text. There is no ambiguity or overlap in functionality, making it easy for an agent to select the correct tool based on the desired output format.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with 'fetch_' prefix and descriptive suffixes (html, json, markdown, txt). This predictable naming scheme enhances readability and usability, allowing agents to intuitively understand each tool's function without confusion.

    Tool Count5/5

    With 4 tools, the server is well-scoped for its purpose of fetching and converting web content. Each tool earns its place by covering distinct output formats (HTML, JSON, Markdown, plain text), avoiding bloat while providing comprehensive coverage for common web data retrieval needs.

    Completeness5/5

    The tool set provides complete coverage for the domain of fetching web content in various formats. It includes raw HTML, structured JSON, and converted formats (Markdown and plain text), leaving no obvious gaps. Agents can handle a wide range of web data retrieval scenarios without dead ends.

    Maintenance

    ActivityInactive
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Provides functionality to fetch web content in various formats, including HTML, JSON, plain text, and Markdown with support for custom headers.
      4
      117,041 npm
      3
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides functionality to fetch and transform web content in various formats (HTML, JSON, plain text, and Markdown) through simple API calls.
      117,041 npm
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables fetching and converting web content into various formats including HTML, JSON, plain text, and Markdown. It supports custom request headers and provides specialized tools for on-demand web data retrieval and transformation.
      117,041 npm
      MIT