ScavioScavio
产品定价文档
登录开始使用
  1. 首页
  2. 教程
  3. 如何通过 MCP 将实时搜索添加到光标
教程

如何通过 MCP 将实时搜索添加到光标

通过 Scavio MCP 服务器将 Cursor IDE 连接到实时 Google、Reddit、Amazon 和 TikTok 搜索数据。 5 分钟内即可完成零代码设置。

获取免费API密钥API文档

Cursor 可以通过模型上下文协议调用外部工具,但它没有实时搜索。添加 Scavio MCP 使 Cursor 可以在任何对话中访问 Google、YouTube、Amazon、Walmart、Reddit 和 TikTok 数据,无需 API 代码。 MCP 端点为 https://mcp.scavio.dev/mcp,每个工具调用费用为 0.005 美元。本教程可在 5 分钟内完成。

前置条件

  • 已安装光标 IDE
  • 来自 scavio.dev 的 Scavio API 密钥
  • 基本熟悉光标设置

操作指南

步骤 1: 获取您的 Scavio API 密钥

在 scavio.dev 上注册并从仪表板复制您的 API 密钥。

Bash
# 1. Go to https://scavio.dev
# 2. Sign up (free tier: 250 credits/month, no card required)
# 3. Navigate to Dashboard > API Keys
# 4. Click "Create New Key"
# 5. Copy the key -- you'll need it in the next step

# Verify your key works:
curl -X POST https://api.scavio.dev/api/v1/search \
  -H 'x-api-key: YOUR_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{"query": "test", "country_code": "us"}'

# You should see JSON with organic_results

步骤 2: 将 Scavio MCP 添加到光标配置

打开光标设置并添加 MCP 服务器配置。

JSON
// File: ~/.cursor/mcp.json (create if it doesn't exist)
// On macOS: ~/Library/Application Support/Cursor/mcp.json
// On Windows: %APPDATA%\Cursor\mcp.json

{
  "mcpServers": {
    "scavio": {
      "url": "https://mcp.scavio.dev/mcp",
      "headers": {
        "x-api-key": "YOUR_SCAVIO_API_KEY"
      }
    }
  }
}

步骤 3: 重新启动 Cursor 并验证连接

重新加载游标,以便它选择新的 MCP 服务器,然后对其进行测试。

Bash
# After saving mcp.json:
# 1. Restart Cursor (Cmd+Shift+P > "Reload Window" or quit and reopen)
# 2. Open a new Composer chat (Cmd+I)
# 3. Type: "Search Google for best python web framework 2026"
# 4. Cursor should call the Scavio search tool and return live results

# You can also verify in Cursor Settings > MCP
# The "scavio" server should show as "Connected"

# Available tools after connection:
# - search: Google, YouTube, Amazon, Walmart, Reddit
# - tiktok: profile, posts, video, comments, search, hashtags
# - extract: Pull structured data from any URL

步骤 4: 在编码工作流程中使用搜索

利用 Cursor 内的实时搜索数据的示例提示。

Bash
# Example prompts to try in Cursor Composer:

# Research-backed coding:
# "Search for the latest Next.js 15 API route syntax and update my route handler"

# Price comparison for docs:
# "Search Amazon for mechanical keyboards under $100 and create a comparison table component"

# Reddit-informed decisions:
# "Search Reddit for common complaints about Prisma ORM and suggest alternatives"

# TikTok data for marketing:
# "Get the TikTok profile for @username and summarize their engagement metrics"

# Multi-platform research:
# "Search Google for 'best auth library Node.js 2026' and also check Reddit for real user opinions"

# Each search tool call costs $0.005 (1 credit)
# Free tier: 250 credits/month = 250 searches
# Project plan: $30/month = 7,000 searches

Python 示例

Python
# MCP is a zero-code integration -- no Python needed.
# But if you want to test the same endpoint programmatically:
import os, requests

SH = {'x-api-key': os.environ['SCAVIO_API_KEY'], 'Content-Type': 'application/json'}
data = requests.post('https://api.scavio.dev/api/v1/search',
    headers=SH, json={'query': 'cursor ide mcp setup', 'country_code': 'us'}).json()
for r in data.get('organic_results', [])[:3]:
    print(f'{r["position"]}. {r["title"][:60]}')
print(f'Cost: $0.005')

JavaScript 示例

JavaScript
// MCP is a zero-code integration -- no JS needed.
// But if you want to test the same endpoint programmatically:
const SH = { 'x-api-key': process.env.SCAVIO_API_KEY, 'Content-Type': 'application/json' };
const data = await fetch('https://api.scavio.dev/api/v1/search', {
  method: 'POST', headers: SH,
  body: JSON.stringify({ query: 'cursor ide mcp setup', country_code: 'us' })
}).then(r => r.json());
(data.organic_results || []).slice(0, 3).forEach(r =>
  console.log(`${r.position}. ${r.title.slice(0, 60)}`)
);
console.log('Cost: $0.005');

预期输出

JSON
# After adding MCP config and restarting Cursor:

Cursor Settings > MCP:
  scavio: Connected

# In Composer chat:
User: Search Google for best python web framework 2026

Cursor: [Calling scavio.search with {query: 'best python web framework 2026'}]

Based on live search results:
1. FastAPI continues to lead for API development with async support
2. Django 5.1 added improved async views and type hints
3. Litestar emerged as a strong FastAPI alternative
...

Cost per search: $0.005
Free tier: 250 searches/month

相关教程

  • 如何向深度研究代理添加搜索
  • 如何在 IDE 中审核 MCP 工具权限
  • 如何将 LangChain 中的 Tavily 替换为 Scavio

常见问题

大多数开发者在15到30分钟内完成本教程。您需要一个Scavio API密钥(免费套餐即可)和可用的Python或JavaScript环境。

已安装光标 IDE. 来自 scavio.dev 的 Scavio API 密钥. 基本熟悉光标设置. Scavio API密钥注册即送50个免费积分。

可以。免费套餐注册即送50个积分,完全足够完成本教程并构建一个可运行的原型解决方案。

Scavio提供原生LangChain包(langchain-scavio)、MCP服务器以及适用于任何HTTP客户端的REST API。本教程使用 the raw REST API, 但您可以根据需要适配您选择的框架。

相关资源

Use Case

IDE MCP 搜索

Read more
Use Case

MCP 自定义搜索服务器

Read more
Best Of

2026 年 IDE 集成最佳 MCP 搜索工具

Read more
Comparison

Scavio MCP vs Perplexity Advanced MCP

Read more
Best Of

2026年Claude Code最佳MCP搜索工具

Read more
Comparison

Tavily vs Scavio

Read more

开始构建

通过 Scavio MCP 服务器将 Cursor IDE 连接到实时 Google、Reddit、Amazon 和 TikTok 搜索数据。 5 分钟内即可完成零代码设置。

获取免费API密钥阅读文档
ScavioScavio

面向AI智能体的实时搜索API。搜索所有平台,不仅仅是Google。

产品

  • 功能
  • 定价
  • 控制台
  • 联盟计划

开发者

  • 文档
  • API参考
  • 快速开始
  • MCP集成
  • Python SDK

替代方案

  • Tavily替代方案
  • SerpAPI替代方案
  • Firecrawl替代方案
  • Exa替代方案

工具

  • JSON格式化
  • cURL转代码
  • Token计数器
  • 全部工具

© 2026 Scavio. 保留所有权利。

Featured on TAAFT
服务条款隐私政策