用于获取网络内容并处理图像的模型上下文协议服务器。这使得Claude Desktop(或任何MCP客户端)能够获取网络内容并适当地处理图像。
要在Claude Desktop中使用此工具,请在您的Claude Desktop配置文件(~/Library/Application Support/Claude/claude_desktop_config.json)中添加以下内容:
{
"tools": {
"fetch": {
"command": "npx",
"args": ["-y", "@kazuph/mcp-fetch"]
}
}
}
这将在需要时自动下载并运行该工具的最新版本。
此辅助功能设置对于自动化剪贴板操作(Cmd+V)正常工作是必需的。
以下部分适用于希望开发或修改此工具的人。
npm install -g tsx安装)要通过Smithery自动安装MCP Fetch以供Claude Desktop使用:
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
当处理来自网络内容的图像时,会应用以下限制:
如果内容超过这些限制,图像将被自动拆分为多个组,您需要多次粘贴(Cmd+V)。
确保已安装并运行Claude Desktop。
如果尚未安装,请全局安装tsx:
npm install -g tsx
# 或
pnpm add -g tsx
~/Library/Application Support/Claude/claude_desktop_config.json的Claude Desktop配置。您可以通过Claude Desktop菜单轻松找到它:
在您的MCP客户端配置中添加以下内容:
{
"tools": {
"fetch": {
"args": ["tsx", "/path/to/mcp-fetch/index.ts"]
}
}
}
fetch: 从互联网检索URL并将其内容提取为markdown。图像将自动处理并准备进行剪贴板操作。