Fetch MCP Server
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コンテンツを取得および変換するように設計されています。
Related MCP server: Fetch MCP Server
はじめる
リポジトリをクローンする
依存関係をインストール:
npm installサーバーをビルドする:
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 toolsfetch_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
Scored across 4 tools
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.
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.
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.
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
Related MCP Connectors
Fetch public web pages live and get clean Markdown, text or HTML.
Fetch public web pages live and get clean Markdown, text or HTML.
Fetch public web pages live and get clean Markdown, text or HTML.
Fetch public web pages live and get clean Markdown, text or HTML.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides functionality to fetch web content in various formats, including HTML, JSON, plain text, and Markdown.4117,041 npm2MIT
- AlicenseBqualityDmaintenanceProvides functionality to fetch web content in various formats, including HTML, JSON, plain text, and Markdown with support for custom headers.4117,041 npm3MIT
- AlicenseNot gradedqualityCmaintenanceProvides functionality to fetch and transform web content in various formats (HTML, JSON, plain text, and Markdown) through simple API calls.117,041 npm1MIT
- AlicenseNot gradedqualityDmaintenanceEnables 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 npmMIT