MCP ノードフェッチ
Node.js undiciライブラリを使用して Web コンテンツを取得できる MCP サーバー。
特徴
- さまざまな HTTP メソッドを使用して任意の URL からコンテンツを取得します
- ヘッダーとリクエストボディのサポート
- さまざまな形式(テキスト、JSON、バイナリ、HTML フラグメント)でコンテンツを返します
- エラーを適切に処理する
- タイムアウトとリダイレクト動作を構成する
MCPツール
このサーバーは、次の MCP ツールを提供します。
fetch-url
URL からコンテンツを取得して返します。
パラメータ:
url
(文字列、必須): 取得するURLmethod
(文字列、オプション):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
(文字列、必須): 取得するURLselector
(文字列、必須): 抽出する HTML フラグメントの CSS セレクターanchorId
(文字列、オプション): 特定のフラグメントを見つけるためのオプションのアンカーIDmethod
(文字列、オプション):HTTPメソッド(デフォルト:"GET")headers
(オブジェクト、オプション): 含めるHTTPヘッダーbody
(文字列、オプション): POSTリクエストのリクエストボディtimeout
(数値、オプション): リクエストのタイムアウト(ミリ秒)followRedirects
(ブール値、オプション):リダイレクトに従うかどうか(デフォルト:true)
check-status
完全なコンテンツをダウンロードせずに URL にアクセスできるかどうかを確認します。
パラメータ:
url
(文字列、必須): 確認するURLtimeout
(数値、オプション): リクエストのタイムアウト(ミリ秒)
デスクトップ構成のクロード
Claude for Desktop で使用するには、 claude_desktop_config.json
に以下を追加します。
ライセンス
マサチューセッツ工科大学
This server cannot be installed
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 メソッド、コンテンツ形式、および要求構成をサポートします。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA powerful MCP server for fetching and transforming web content into various formats (HTML, JSON, Markdown, Plain Text) with ease.Last updated -414612TypeScriptMIT License
- AsecurityAlicenseAqualityAn MCP server for fetching and transforming web content into various formats.Last updated -44PythonMIT License
- AsecurityAlicenseAqualityA 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 -223PythonMIT License
- AsecurityAlicenseAqualityA 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 -24TypeScriptMIT License