Skip to main content
Glama

MCP Fetch With Proxy

MIT License
117
  • Apple

MCPフェッチ

カスタムHTTPプロキシを使用してWebコンテンツを取得するためのモデルコンテキストプロトコル(MCP)サーバー。これにより、Claude Desktop(または任意のMCPクライアント)はWebコンテンツを取得し、画像を適切に処理できるようになります。

このリポジトリは@smithery/mcp-fetchからフォークし、 node-fetch実装をライブラリnode-fetch-nativeに置き換えます。

サーバーは、 http_proxyおよびhttps_proxy環境変数が設定されている場合、デフォルトでそれらを使用してリクエストをプロキシサーバー経由でルーティングします。MCP_HTTP_PROXY環境変数を設定することで、別のプロキシサーバーを使用することMCP_HTTP_PROXYできます。

利用可能なツール

  • fetch : インターネットからURLを取得し、その内容をマークダウンとして抽出します。画像が見つかった場合は、そのURLがレスポンスに含まれます。

画像処理仕様:

記事コンテンツから画像の URL のみを抽出し、ツールの結果に追加します。

{ "params": { "url": "https://www.example.com/articles/123" }, "response": { "content": [ { "type": "text", "text": "Contents of https://www.example.com/articles/123:\nHere is the article content\n\nImages found in article:\n- https://www.example.com/1.jpg.webp\n- https://www.example.com/2.jpg.webp\n- https://www.example.com/3.webp" } ] } }

クイックスタート(ユーザー向け)

このツールを Claude Desktop で使用するには、Claude Desktop の構成 ( ~/Library/Application Support/Claude/claude_desktop_config.json ) に以下を追加するだけです。

{ "tools": { "fetch": { "command": "npx", "args": ["-y", "@kwp-lab/mcp-fetch"], "env": { "MCP_HTTP_PROXY": "https://example.com:10890" // Optional, remove if not needed } } } }

これにより、必要に応じてツールの最新バージョンが自動的にダウンロードされ、実行されます。

必要な設定

  1. クロードのアクセシビリティを有効にする:
    • システム設定を開く
    • 「プライバシーとセキュリティ」>「アクセシビリティ」へ移動
    • 「+」ボタンをクリック
    • アプリケーションフォルダからClaudeを追加します
    • クロードのトグルをオンにする

開発者向け

次のセクションは、ツールを開発または変更したい人向けです。

前提条件

  • Node.js 18歳以上
  • Claude Desktop ( https://claude.ai/desktopからインストール)
  • tsx ( npm install -g tsxでインストール)

インストール

Smithery経由でインストール

Smithery経由で Claude Desktop 用の MCP Fetch を自動的にインストールするには:

npx -y @smithery/cli install @kwp-lab/mcp-fetch --client claude

手動インストール

git clone https://github.com/kwp-lab/mcp-fetch.git cd mcp-fetch npm install npm run build

構成

  1. Claude Desktop がインストールされ、実行されていることを確認してください。
  2. まだインストールしていない場合は、tsx をグローバルにインストールします。
    npm install -g tsx # or pnpm add -g tsx
  3. 次の場所にある Claude Desktop 設定を変更します。

~/Library/Application Support/Claude/claude_desktop_config.json

これは、Claude Desktop メニューから簡単に見つけることができます。

  1. クロードデスクトップを開く
  2. MacのメニューバーでClaudeをクリック
  3. 「設定」をクリック
  4. 「開発者」をクリック

MCP クライアントの構成に以下を追加します。

{ "tools": { "fetch": { "args": ["tsx", "/path/to/mcp-fetch/index.ts"] } } }
Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

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.

Tools

カスタム HTTP プロキシを使用した Web コンテンツ取得用の MCP サーバー

  1. 利用可能なツール
    1. クイックスタート(ユーザー向け)
      1. 必要な設定
    2. 開発者向け
      1. 前提条件
        1. インストール
          1. Smithery経由でインストール
          2. 手動インストール
        2. 構成

          Related MCP Servers

          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/kwp-lab/mcp-fetch'

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