Skip to main content
Glama

MCP Node Fetch

MCP ノードフェッチ

Node.js undiciライブラリを使用して Web コンテンツを取得できる MCP サーバー。

特徴

  • さまざまな HTTP メソッドを使用して任意の URL からコンテンツを取得します
  • ヘッダーとリクエストボディのサポート
  • さまざまな形式(テキスト、JSON、バイナリ、HTML フラグメント)でコンテンツを返します
  • エラーを適切に処理する
  • タイムアウトとリダイレクト動作を構成する

MCPツール

このサーバーは、次の MCP ツールを提供します。

fetch-url

URL からコンテンツを取得して返します。

パラメータ:

  • url (文字列、必須): 取得するURL
  • method (文字列、オプション):HTTPメソッド(デフォルト:"GET")
  • headers (オブジェクト、オプション): 含めるHTTPヘッダー
  • body (文字列、オプション): POST/PUTリクエストのリクエストボディ
  • timeout (数値、オプション): リクエストのタイムアウト(ミリ秒)
  • responseType (文字列、オプション): レスポンスの解析方法 ("text"、"json"、"binary"、"html-fragment")
  • fragmentSelector (文字列、オプション):特定のHTMLフラグメントを抽出するためのCSSセレクタ(responseTypeが「html-fragment」の場合)
  • followRedirects (ブール値、オプション):リダイレクトに従うかどうか(デフォルト:true)

extract-html-fragment

CSS セレクターを使用して Web ページから特定の HTML コンテンツを抽出し、オプションでアンカー ポイントに移動します。

パラメータ:

  • url (文字列、必須): 取得するURL
  • selector (文字列、必須): 抽出する HTML フラグメントの CSS セレクター
  • anchorId (文字列、オプション): 特定のフラグメントを見つけるためのオプションのアンカーID
  • method (文字列、オプション):HTTPメソッド(デフォルト:"GET")
  • headers (オブジェクト、オプション): 含めるHTTPヘッダー
  • body (文字列、オプション): POSTリクエストのリクエストボディ
  • timeout (数値、オプション): リクエストのタイムアウト(ミリ秒)
  • followRedirects (ブール値、オプション):リダイレクトに従うかどうか(デフォルト:true)

check-status

完全なコンテンツをダウンロードせずに URL にアクセスできるかどうかを確認します。

パラメータ:

  • url (文字列、必須): 確認するURL
  • timeout (数値、オプション): リクエストのタイムアウト(ミリ秒)

デスクトップ構成のクロード

Claude for Desktop で使用するには、 claude_desktop_config.jsonに以下を追加します。

{ "mcpServers": { "node-fetch": { "command": "node", "args": ["dist/index.js"] } } }

ライセンス

マサチューセッツ工科大学

-
security - not tested
A
license - permissive license
-
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.

Node.js undici ライブラリを使用して Web コンテンツを取得できる MCP サーバー。さまざまな HTTP メソッド、コンテンツ形式、および要求構成をサポートします。

  1. 特徴
    1. MCPツール
      1. fetch-url
      2. extract-html-fragment
      3. check-status
    2. デスクトップ構成のクロード
      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
          146
          12
          TypeScript
          MIT License
          • Apple
          • Linux
        • A
          security
          A
          license
          A
          quality
          An MCP server for fetching and transforming web content into various formats.
          Last updated -
          4
          4
          Python
          MIT License
          • Apple
        • A
          security
          A
          license
          A
          quality
          A simple MCP server that facilitates website fetching through a configurable server platform using stdio or SSE transport, allowing integration with tools like Cursor for streamlined access.
          Last updated -
          2
          23
          Python
          MIT License
        • A
          security
          A
          license
          A
          quality
          A headless browser MCP server that allows AI agents to fetch web content and perform Google searches without API keys, supporting various output formats like Markdown, JSON, HTML, and text.
          Last updated -
          2
          4
          TypeScript
          MIT License

        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/mcollina/mcp-node-fetch'

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