KM

kazuph/mcp-fetch

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

41 stars 20 forks 品質 70 トレンド 16MIT

kazuph/mcp-fetch は [https://github.com/kazuph/mcp-fetch.] からインポートされた MCP サーバーの候補です

概要

kazuph/mcp-fetch は [https://github.com/kazuph/mcp-fetch.] からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

モデル コンテキスト プロトコル サーバー Web コンテンツの取得と画像処理 これは、Claudeデスクトップ(または任意のMCPクライアント)がWebコンテンツを取得し、画像を適切に処理することができます。

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

Claudeデスクトップでこのツールを使用するには、Claudeデスクトップの設定([~/Library/Application Support/Claude/claude_desktop_config.json])に次のものを追加します。

必要に応じてツールの最新バージョンを自動的にダウンロードして実行します。

必須設定

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

自動クリップボード操作(Cmd+V)を適切に動作させるには、このアクセシビリティ設定が必要です。

##特徴

-Webコンテンツ抽出:自動的に抽出し、マークダウンとしてWebコンテンツをフォーマット

  • 芸術的タイトル抽出: 記事のタイトルを抽出し、表示 -画像処理:最適化(デフォルトで無効化、[enableFetchImages: trueで有効)でWebページから画像のオプション処理

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

MCP Fetch

Model Context Protocol server for fetching web content and processing images. This allows Claude Desktop (or any MCP client) to fetch web content and handle images appropriately.

Quick Start (For Users)

To use this tool with Claude Desktop, simply add the following to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "tools": {
    "imageFetch": {
      "command": "npx",
      "args": ["-y", "@kazuph/mcp-fetch"]
    }
  }
}

This will automatically download and run the latest version of the tool when needed.

Required Setup

  1. Enable Accessibility for Claude:
    • Open System Settings
    • Go to Privacy & Security > Accessibility
    • Click the “+” button
    • Add Claude from your Applications folder
    • Turn ON the toggle for Claude

This accessibility setting is required for automated clipboard operations (Cmd+V) to work properly.

Features

  • Web Content Extraction: Automatically extracts and formats web content as markdown
  • Article Title Extraction: Extracts and displays the title of the article
  • Image Processing: Optional processing of images from web pages with optimization (disabled by default, enable with enableFetchImages: true)
  • File Saving: Images are automatically saved to ~/Downloads/mcp-fetch/YYYY-MM-DD/ directory when processed
  • Dual Output: Both file saving and optional Base64 encoding for AI display
  • Pagination Support: Supports pagination for both text and images
  • JPEG Optimization: Automatically optimizes images as JPEG for better performance
  • GIF Support: Extracts first frame from animated GIFs

For Developers

The following sections are for those who want to develop or modify the tool.

Prerequisites

  • Node.js 18+
  • macOS (for clipboard operations)
  • Claude Desktop (install from https://claude.ai/desktop)
  • tsx (install via npm install -g tsx)

Installation

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

Image Processing Specifications

When processing images from web content, the following optimizations are applied:

  • Images are converted to JPEG format with quality control
  • Maximum width limited to 1200px by default
  • Maximum height limited to 1600px by default
  • Chroma subsampling (4:2:0) for better compression
  • MozJPEG optimization for smaller file sizes

Configuration

  1. Make sure Claude Desktop is installed and running.

  2. Install tsx globally if you haven’t:

npm install -g tsx
# or
pnpm add -g tsx
  1. Modify your Claude Desktop config located at: ~/Library/Application Support/Claude/claude_desktop_config.json

You can easily find this through the Claude Desktop menu:

  1. Open Claude Desktop
GitHub で README 全文を見る

インストール

npx -y @kazuph/mcp-fetch
MCP 初心者?mcpskill.org のガイドから始めましょう →