MCPサーバーを取得する
この MCP サーバーは、HTML、JSON、プレーン テキスト、Markdown など、さまざまな形式で Web コンテンツを取得する機能を提供します。
コンポーネント
ツール
- フェッチ_html
- ウェブサイトを取得し、そのコンテンツを HTML として返します
- 入力:
url
(文字列、必須): 取得するウェブサイトのURLheaders
(オブジェクト、オプション): リクエストに含めるカスタムヘッダー
- ウェブページの生のHTMLコンテンツを返します
- フェッチ_json
- URLからJSONファイルを取得する
- 入力:
url
(文字列、必須): 取得するJSONのURLheaders
(オブジェクト、オプション): リクエストに含めるカスタムヘッダー
- 解析されたJSONコンテンツを返します
- フェッチ_txt
- ウェブサイトを取得し、そのコンテンツをプレーンテキスト(HTML なし)として返します。
- 入力:
url
(文字列、必須): 取得するウェブサイトのURLheaders
(オブジェクト、オプション): リクエストに含めるカスタムヘッダー
- HTMLタグ、スクリプト、スタイルを削除したウェブページのテキストコンテンツを返します
- フェッチマークダウン
- ウェブサイトを取得し、そのコンテンツをMarkdownとして返す
- 入力:
url
(文字列、必須): 取得するウェブサイトのURLheaders
(オブジェクト、オプション): リクエストに含めるカスタムヘッダー
- ウェブページのコンテンツをMarkdown形式に変換して返します
リソース
このサーバーは永続的なリソースを提供しません。オンデマンドでWebコンテンツを取得および変換するように設計されています。
はじめる
- リポジトリをクローンする
- 依存関係をインストール:
npm install
- サーバーをビルドする:
npm run build
使用法
サーバーを使用するには、直接実行します。
これにより、stdio 上で実行される Fetch MCP サーバーが起動します。
デスクトップアプリでの使用
このサーバーをデスクトップ アプリと統合するには、アプリのサーバー構成に以下を追加します。
特徴
- 最新のフェッチ API を使用して Web コンテンツを取得します
- リクエストのカスタムヘッダーをサポート
- 複数の形式でコンテンツを提供: HTML、JSON、プレーンテキスト、Markdown
- HTML解析とテキスト抽出にJSDOMを使用する
- HTMLからMarkdownへの変換にはTurndownServiceを使用します
発達
npm run dev
を実行して、TypeScript コンパイラをウォッチモードで起動します。npm test
を使用してテストスイートを実行します
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています。
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.
HTML、JSON、プレーンテキスト、Markdown など、さまざまな形式で Web コンテンツを取得する機能を提供します。
Related MCP Servers
- AsecurityAlicenseAqualityThis server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.Last updated -154,281JavaScriptMIT License
- AsecurityAlicenseAqualityEnables 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 -67TypeScriptMIT License
- AsecurityAlicenseAqualityProvides functionality to fetch web content in various formats, including HTML, JSON, plain text, and Markdown.Last updated -4125,855353TypeScriptMIT License
- AsecurityAlicenseAqualityEnables extracting data from websites using natural language prompts, allowing users to specify exactly what content they want in plain English and returning structured JSON data.Last updated -11,3794TypeScriptMIT License
Appeared in Searches
- A server for Python POP and IMAP email handling
- A server for finding customer, employee, and reviewer opinions on a company across the internet
- A tool for finding and analyzing company reviews sorted by sentiment
- A server for managing or integrating Excel with MCP systems
- Information about 'fetch' or related resources