Skip to main content
Glama

MCP Fetch

by JeremyNixon

MCP 获取

用于获取 Web 内容和处理图像的模型上下文协议服务器。这使得 Claude Desktop(或任何 MCP 客户端)能够获取 Web 内容并进行适当的图像处理。

快速入门(针对用户)

要将此工具与 Claude Desktop 一起使用,只需将以下内容添加到您的 Claude Desktop 配置( ~/Library/Application Support/Claude/claude_desktop_config.json )中:

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

这将在需要时自动下载并运行该工具的最新版本。

所需设置

  1. 为 Claude 启用辅助功能:
    • 打开系统设置
    • 前往“隐私和安全”>“辅助功能”
    • 点击“+”按钮
    • 从您的应用程序文件夹添加 Claude
    • 为克劳德打开开关

自动剪贴板操作(Cmd+V)需要此辅助功能设置才能正常工作。

对于开发人员

以下部分适用于那些想要开发或修改该工具的人。

先决条件

  • Node.js 18+
  • macOS(用于剪贴板操作)
  • Claude Desktop(从https://claude.ai/desktop安装)
  • tsx(通过npm install -g tsx

安装

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 MCP Fetch:

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

手动安装

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

图像处理规格

处理来自 Web 内容的图像时,适用以下限制:

  • 每组最多 6 张图片
  • 每组最大高度8000像素
  • 每组最大为 30MB

如果内容超出这些限制,图像将自动分成多个组,并且您需要多次粘贴(Cmd+V)。

配置

  1. 确保 Claude Desktop 已安装并正在运行。
  2. 如果还没有安装 tsx,请全局安装:
npm install -g tsx # or pnpm add -g tsx
  1. 修改位于以下位置的 Claude Desktop 配置: ~/Library/Application Support/Claude/claude_desktop_config.json

您可以通过 Claude Desktop 菜单轻松找到它:

  1. 打开 Claude 桌面
  2. 在 Mac 菜单栏上单击 Claude
  3. 点击“设置”
  4. 点击“开发者”

将以下内容添加到您的 MCP 客户端的配置中:

{ "tools": { "fetch": { "args": ["tsx", "/path/to/mcp-fetch/index.ts"] } } }

可用工具

  • fetch :从互联网检索 URL,并将其内容提取为 Markdown 文件。图像会自动处理并准备用于剪贴板操作。

笔记

  • 由于此工具依赖于 macOS 特定的剪贴板操作,因此仅适用于 macOS。
  • 使用 Sharp 处理图像以获得最佳性能和质量。
  • 当发现多幅图像时,它们会垂直合并,同时考虑尺寸限制。
  • 通过提取动画 GIF 的第一帧来自动处理动画 GIF。
-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

模型上下文协议服务器使 Claude Desktop(或任何 MCP 客户端)能够获取 Web 内容并适当处理图像。

  1. 快速入门(针对用户)
    1. 所需设置
  2. 对于开发人员
    1. 先决条件
      1. 安装
        1. 通过 Smithery 安装
        2. 手动安装
      2. 图像处理规格
        1. 配置
          1. 可用工具
            1. 笔记

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                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.
                Last updated -
                1
                278
                15
                JavaScript
                MIT License
                • Apple
              • A
                security
                A
                license
                A
                quality
                Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.
                Last updated -
                10
                322
                28
                JavaScript
                MIT License
                • Apple
              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol (MCP) server that enables Claude or other LLMs to fetch content from URLs, supporting HTML, JSON, text, and images with configurable request parameters.
                Last updated -
                Python
                MIT License
              • A
                security
                A
                license
                A
                quality
                A Model Context Protocol server that automatically reads the Claude Desktop configuration file and presents all available MCP services in an easy-to-copy format at the top of the tools list.
                Last updated -
                1
                1
                3
                JavaScript
                MIT License
                • Apple

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

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