Fetch 服务 MCP 接入
通过 MCP 协议提供 Fetch 能力,根据网页URL获取网页内容和处理图像。
使用说明
🗺️ 功能清单
工具标识 | 功能描述 | 核心参数 |
---|---|---|
fetch | 从互联网检索URL内容并转换为markdown,可处理图像 | url, maxLength, enableFetchImages |
仓库地址
https://github.com/smithery-ai/mcp-fetch
🔌 使用方式
参数说明
fetch
从互联网检索 URL 并提取其内容为 markdown。图像会自动处理并准备好进行剪贴板操作
输入参数 | Type | 描述 |
---|---|---|
url | string | 要获取内容的 URL |
maxLength | optional number | 返回内容的最大长度(默认20000) |
startIndex | optional number | 内容的起始位置 |
imageStartIndex | optional number | 图像收集的起始位置 |
raw | optional boolean | 返回原始内容而不是处理过的 markdown |
imageMaxCount | optional number | 每个请求处理的最大图像数量(默认:3) |
imageMaxHeight | optional number | 合并图像的最大高度(默认:4000) |
imageMaxWidth | optional string | 合并图像的最大宽度(默认:1000) |
imageQuality | optional number | JPEG 质量(1-100)(默认:80) |
enableFetchImages | optional boolean | 启用图像的获取和处理(默认值:false) |
ignoreRobotsTxt | optional boolean | 忽略 robots.txt 限制 图像处理(默认值:false) |
返回: 检索内容文本