Claude Code 和 Cursor 的 MCP 支持于 2025 年初推出,到 2026 年,每个代理工作流程都有一个 MCP 配置文件。默认 MCP 设置中最缺少的两个平台是 Reddit 和 Twitter,因为它们的官方 API 昂贵或受到限制。本教程通过 Scavio MCP 服务器将两者连接到您的代理。
前置条件
- 启用 MCP 的 Claude 代码或光标
- Scavio API 密钥
- Node.js 20+
操作指南
步骤 1: 安装 Scavio MCP 服务器
一个 npm 安装涵盖了 Reddit、Twitter 和其他八个平台。
npm install -g @scavio/mcp步骤 2: 将 Scavio 添加到您的 MCP 配置中
Claude Code 读取项目根目录中的 .mcp.json 或全局的 ~/.claude/.mcp.json。
{
"mcpServers": {
"scavio": {
"command": "scavio-mcp",
"env": { "SCAVIO_API_KEY": "sk_live_..." }
}
}
}步骤 3: 确认 Reddit 工具可用
在 Claude Code 中,/mcp list 应显示 scavio 和 reddit_search 工具。
/mcp list
# Should show: scavio - reddit_search, twitter_search, google_search, ...步骤 4: 让 Claude 搜索 Reddit
代理直接在对话中调用该工具。
> Use scavio to find the top 5 recent Reddit threads discussing Claude Skills.步骤 5: 让克劳德搜索 Twitter
相同的 MCP,不同的工具。
> Use scavio to find 10 recent tweets mentioning pi-coding-agent.步骤 6: 打造跨平台品牌监控器
在一次对话中链接 Reddit + Twitter + Google SERP。
> Every day at 9am, use scavio to check Reddit, Twitter, and Google for mentions of our brand, then write a summary to ~/brand-pulse.md.Python 示例
import os
from scavio import Scavio
scavio = Scavio(api_key=os.environ['SCAVIO_API_KEY'])
def brand_pulse(brand: str):
return {
'reddit': scavio.search(platform='reddit', query=brand)['organic_results'][:5],
'twitter': scavio.search(platform='twitter', query=brand)['organic_results'][:10],
'google': scavio.search(query=brand)['organic_results'][:5]
}
print(brand_pulse('your-brand'))JavaScript 示例
import { Scavio } from 'scavio';
const scavio = new Scavio({ apiKey: process.env.SCAVIO_API_KEY });
export async function brandPulse(brand) {
const [reddit, twitter, google] = await Promise.all([
scavio.search({ platform: 'reddit', query: brand }),
scavio.search({ platform: 'twitter', query: brand }),
scavio.search({ query: brand })
]);
return { reddit, twitter, google };
}预期输出
Claude Code (or Cursor) can now search Reddit and Twitter directly from any conversation. One MCP config replaces two vendor integrations.