
kazuph/mcp-fetch
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
kazuph/mcp-fetch - кандидат на сервер MCP, импортированный из https://github.com/kazuph/mcp-fetch.
Обзор
kazuph/mcp-fetch - кандидат на сервер MCP, импортированный из https://github.com/kazuph/mcp-fetch.
Обзор (машинный перевод)
Сервер Model Context Protocol для извлечения веб-контента и обработки изображений. Это позволяет Claude Desktop (или любому клиенту MCP) получать веб-контент и обрабатывать изображения соответствующим образом.
Быстрый старт (для пользователей)
Чтобы использовать этот инструмент с Claude Desktop, просто добавьте следующее в конфигурацию Claude Desktop:
При необходимости он автоматически загружает и запускает последнюю версию инструмента.
Требуется настройка
- Обеспечение доступности для Клода:
- Открытые системные настройки Перейти к конфиденциальности и безопасности > Доступность
- Нажмите кнопку “+” Добавьте Claude из папки Applications
- Повернись к Клоду.
Эта настройка доступности необходима для правильной работы автоматизированных операций буфера обмена (Cmd + V).
Особенности
Извлечение веб-контента: автоматически извлекает и форматирует веб-контент в виде разметки
- ** Название статьи Вычитание**: Выдержки и отображение названия статьи
Обработка изображений: Факультативная обработка изображений с веб-страниц с оптимизацией (отключена по умолчанию, включена с
enableFetchImages: true)
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
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
- 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
-
Make sure Claude Desktop is installed and running.
-
Install tsx globally if you haven’t:
npm install -g tsx
# or
pnpm add -g tsx
- 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:
- Open Claude Desktop
Установка
npx -y @kazuph/mcp-fetch