通过在 mcp.scavio.dev/mcp 配置 Scavio MCP 服务器,向 Claude Code 添加实时 Web 搜索。通过一条配置线,Claude Code 可以以 0.005 美元/查询的价格访问 Google、YouTube、Reddit、Amazon、TikTok 和 Walmart 搜索,每月免费 250 次。
前置条件
- 安装克劳德代码
- 来自 scavio.dev 的 Scavio API 密钥
- 一个项目目录
操作指南
步骤 1: 创建或编辑 .mcp.json
将 Scadio MCP 服务器添加到您的项目配置中。
Bash
# Create .mcp.json in your project root:
cat > .mcp.json << 'EOF'
{
"mcpServers": {
"scavio": {
"url": "https://mcp.scavio.dev/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
EOF步骤 2: 测试搜索工具
启动 Claude Code 并要求它搜索某些内容。
Bash
# In Claude Code, ask:
# 'Search for the latest Next.js version'
# Claude will call the Scavio search tool and
# return current results from Google步骤 3: 在编码工作流程中使用
Claude Code 现在在编码时使用搜索来验证事实。
Bash
# Example prompts that trigger search:
# 'What is the current Stripe API version?'
# 'Check the latest React Router migration guide'
# 'Search Reddit for feedback on Prisma vs Drizzle'Python 示例
Python
# .mcp.json configuration (project root)
import json
config = {
'mcpServers': {
'scavio': {
'url': 'https://mcp.scavio.dev/mcp',
'headers': {
'Authorization': 'Bearer YOUR_API_KEY'
}
}
}
}
with open('.mcp.json', 'w') as f:
json.dump(config, f, indent=2)
print('MCP search configured for Claude Code')JavaScript 示例
JavaScript
// .mcp.json configuration (project root)
const fs = require('fs');
const config = {
mcpServers: {
scavio: {
url: 'https://mcp.scavio.dev/mcp',
headers: {
Authorization: 'Bearer YOUR_API_KEY'
}
}
}
};
fs.writeFileSync('.mcp.json', JSON.stringify(config, null, 2));
console.log('MCP search configured for Claude Code');预期输出
JSON
Claude Code with live search capability across 6 platforms. The agent uses search to verify documentation, check package versions, and research solutions during coding.