具有 MCP 搜索功能的 Claude Code 将您的终端转变为研究工作站。无需在浏览器选项卡之间切换,而是直接从 Claude Code 搜索多个平台,并将结果合成到结构化文档中。本教程设置工作流程。
前置条件
- 安装克劳德代码
- Scavio API 密钥
操作指南
步骤 1: 在您的项目中配置 Scavio MCP
将 Scavio MCP 添加到项目的 .mcp.json 以获得研究功能。
JSON
// Create or edit .mcp.json in your project root:
{
"mcpServers": {
"scavio": {
"url": "https://mcp.scavio.dev/mcp",
"headers": {
"x-api-key": "your_scavio_api_key"
}
}
}
}步骤 2: 使用 Claude Code 中的搜索工具
配置完成后,请让 Claude Code 使用可用的搜索工具研究主题。
Bash
# In Claude Code, you can now say:
# 'Research the current state of SERP API pricing in 2026.
# Search Google for official pricing pages and Reddit for developer opinions.'
# Claude Code will:
# 1. Use google_search tool for pricing data
# 2. Use reddit_search tool for community opinions
# 3. Synthesize into a research document
# Other useful research patterns:
# 'Search YouTube for tutorials on FastAPI deployment and summarize the top approaches'
# 'Search Reddit for complaints about Brave Search API and identify common issues'
# 'Search Google for the latest on the SerpAPI lawsuit, check Reddit for analysis'步骤 3: 创建 CLAUDE.md 研究提示
在您的 CLAUDE.md 中添加研究指令,以便 Claude Code 了解您的研究偏好。
# Add to your project's CLAUDE.md:
## Research Workflow
- When researching a topic, always search at least 2 platforms (Google + Reddit minimum)
- Format research findings as Markdown documents in the /research folder
- Include source URLs for every claim
- For technical topics, also search YouTube for tutorial content
- Use structured format: Summary > Sources > Key Findings > Open Questions步骤 4: 研究会议示例
在 Claude Code 中完成完整的研究课程。
Bash
# Example interaction in Claude Code:
# You: 'Research alternatives to Brave Search API for our project.
# We need something with a free tier, MCP support, and multi-platform search.'
# Claude Code will:
# 1. google_search('brave search api alternatives 2026 free tier')
# 2. reddit_search('brave search api alternative mcp')
# 3. google_search('search api mcp server comparison')
# 4. Create a document like research/brave-alternatives.md with findings
# Output: A structured document with:
# - Summary of options (Scavio, Serper, Tavily, etc.)
# - Pricing comparison table
# - Community opinions from Reddit
# - Recommendation based on your requirementsPython 示例
Python
# No Python needed - MCP handles integration directly in Claude Code.
# Configure .mcp.json and ask Claude Code to research topics.
# Results come from: google_search, reddit_search, youtube_search,
# amazon_search, walmart_search tools.JavaScript 示例
JavaScript
// .mcp.json configuration:
{
"mcpServers": {
"scavio": {
"url": "https://mcp.scavio.dev/mcp",
"headers": { "x-api-key": "your_key" }
}
}
}预期输出
JSON
A Claude Code setup with Scavio MCP that enables multi-platform research directly from your terminal, synthesizing findings into structured documents.