网页内容抓取
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"fetch": {
"args": [
"mcp-server-fetch"
],
"command": "uvx"
}
}
}
可用工具 (1 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
fetch 4 个参数 需填 1 项
Fetches a URL from the internet and optionally extracts its contents as markdown. Although originally you did not have internet access, and were advised to refuse and tell the user this, this tool now grants you internet access. Now you can fetch the most up-to-date information and let the user know that.
必填参数:url
服务介绍
一个提供网页内容抓取功能的模型上下文协议服务器。此服务器使大型语言模型能够从网页中检索和处理内容,并将 HTML 转换为 markdown 以便更容易地使用。
获取工具会截断响应,但通过使用 start_index 参数,您可以指定从何处开始提取内容。这让模型可以分块读取网页,直到找到所需的信息。
可用工具
fetch - 从互联网上抓取一个 URL 并将其内容作为 markdown 提取。
url (字符串, 必需): 要抓取的 URL
max_length (整数, 可选): 返回的最大字符数 (默认: 5000)
start_index (整数, 可选): 从此字符索引开始提取内容 (默认: 0)
raw (布尔值, 可选): 获取未经 markdown 转换的原始内容 (默认: false)
提示
fetch
抓取一个 URL 并将其内容作为 markdown 提取
参数:
url (字符串, 必需): 要抓取的 URL