Claude Desktop 支持 MCP(模型上下文协议)服务器,使 Claude 在对话期间能够访问外部工具。 Scavio 的 MCP 服务器公开了 11 种搜索工具,涵盖 Google、Reddit、YouTube、Amazon 和 Walmart。连接后,克劳德可以在回答您的问题时搜索这些平台中的任何一个,将其响应基于实时数据而不是培训知识。本教程将逐步介绍一次性配置。
前置条件
- 安装了 Claude Desktop(macOS 或 Windows)
- 来自 scavio.dev 的 Scavio API 密钥
- 基本熟悉 JSON 配置文件
操作指南
步骤 1: 找到 Claude 桌面配置文件
Claude Desktop 将 MCP 服务器配置存储在 JSON 文件中。在文本编辑器中打开它。
# macOS:
open ~/Library/Application\ Support/Claude/claude_desktop_config.json
# Windows:
notepad %APPDATA%\Claude\claude_desktop_config.json
# If the file does not exist, create it with: {}步骤 2: 添加 Scadio MCP 服务器
将 Scavio 添加到 mcpServers 对象。将 your_scavio_api_key 替换为您的实际密钥。
{
"mcpServers": {
"scavio": {
"url": "https://mcp.scavio.dev/mcp",
"headers": {
"x-api-key": "your_scavio_api_key"
}
}
}
}步骤 3: 重新启动克劳德桌面
关闭并重新打开 Claude Desktop。在工具面板中,您应该会看到 11 个可用的 Scavio 搜索工具。
# After restart, verify by asking Claude:
# "What search tools do you have access to?"
# Claude should list google_search, reddit_search, youtube_search,
# amazon_search, walmart_search, and more.步骤 4: 使用实时搜索进行测试
问克劳德一个需要当前信息的问题。克劳德会自动调用合适的搜索工具。
# Example prompts that trigger search:
# "What are the top-rated wireless earbuds on Amazon right now?"
# "What is Reddit saying about the new MacBook Pro?"
# "Find me the latest tutorials on LangChain agents on YouTube"Python 示例
# For programmatic MCP client (not Claude Desktop):
import subprocess, json
config = {
'mcpServers': {
'scavio': {
'url': 'https://mcp.scavio.dev/mcp',
'headers': {'x-api-key': 'your_scavio_api_key'}
}
}
}
print(json.dumps(config, indent=2))JavaScript 示例
// For Cursor or VS Code MCP configuration:
// Add to .cursor/mcp.json or .vscode/mcp.json:
const config = {
mcpServers: {
scavio: {
url: 'https://mcp.scavio.dev/mcp',
headers: { 'x-api-key': 'your_scavio_api_key' }
}
}
};
console.log(JSON.stringify(config, null, 2));预期输出
Claude Desktop with 11 Scavio search tools available. Claude can now search Google, Reddit, YouTube, Amazon, and Walmart during conversations.