网络工具(WebSearch、WebFetch)
服务介绍
CoPal Web Tools
为 AI 助手提供网页搜索和网页抓取能力的 MCP 服务(部署在香港节点)。
接入配置
在 MCP 配置文件(.mcp.json 或 Claude Code 设置)中添加:
{
"mcpServers": {
"web-tools": {
"type": "http",
"url": "https://web-tools.copal.chat/mcp?token=你的API_TOKEN"
}
}
}
API Token 请在 copal.chat 注册获取,免费使用。
工具说明
web_search — 网页搜索
通过搜索引擎检索网页,返回标题、链接和摘要。
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
query |
string | 是 | — | 搜索关键词 |
limit |
number | 否 | 10 | 返回结果数量(1–50) |
categories |
string | 否 | "general" | 搜索类别:general、news、images 等 |
web_fetch — 网页抓取
抓取指定网页并转换为 Markdown 格式,适合 AI 阅读和分析。
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
url |
string | 是 | — | 目标网页地址 |
timeout |
number | 否 | 30000 | 超时时间(毫秒) |
认证方式
所有请求需携带 API Token,支持两种方式:
- URL 参数:
?token=YOUR_TOKEN(推荐,MCP 客户端通用) - 请求头:
Authorization: Bearer YOUR_TOKEN