Tutorial

How to Connect MCP to Reddit and Twitter APIs

Wire Reddit and Twitter data into Claude Code and Cursor via the Scavio MCP server. One config, two high-signal social platforms.

Claude Code and Cursor's MCP support landed in early 2025 and by 2026 every agent workflow has an MCP config file. The two platforms most missing from default MCP setups are Reddit and Twitter, because their official APIs are expensive or restricted. This tutorial wires both into your agent via the Scavio MCP server.

Prerequisites

  • Claude Code or Cursor with MCP enabled
  • A Scavio API key
  • Node.js 20+

Walkthrough

Step 1: Install the Scavio MCP server

One npm install covers Reddit, Twitter, and eight other platforms.

Bash
npm install -g @scavio/mcp

Step 2: Add Scavio to your MCP config

Claude Code reads .mcp.json in the project root or ~/.claude/.mcp.json globally.

JSON
{
  "mcpServers": {
    "scavio": {
      "command": "scavio-mcp",
      "env": { "SCAVIO_API_KEY": "sk_live_..." }
    }
  }
}

Step 3: Confirm the Reddit tool is available

In Claude Code, /mcp list should show scavio with reddit_search among tools.

Bash
/mcp list
# Should show: scavio - reddit_search, twitter_search, google_search, ...

Step 4: Ask Claude to search Reddit

The agent calls the tool directly in conversation.

Bash
> Use scavio to find the top 5 recent Reddit threads discussing Claude Skills.

Step 5: Ask Claude to search Twitter

Same MCP, different tool.

Bash
> Use scavio to find 10 recent tweets mentioning pi-coding-agent.

Step 6: Build a cross-platform brand monitor

Chain Reddit + Twitter + Google SERP in one conversation.

Bash
> 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 Example

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 Example

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 };
}

Expected Output

JSON
Claude Code (or Cursor) can now search Reddit and Twitter directly from any conversation. One MCP config replaces two vendor integrations.

Related Tutorials

Frequently Asked Questions

Most developers complete this tutorial in 15 to 30 minutes. You will need a Scavio API key (free tier works) and a working Python or JavaScript environment.

Claude Code or Cursor with MCP enabled. A Scavio API key. Node.js 20+. A Scavio API key gives you 500 free credits per month.

Yes. The free tier includes 500 credits per month, which is more than enough to complete this tutorial and prototype a working solution.

Scavio has a native LangChain package (langchain-scavio), an MCP server, and a plain REST API that works with any HTTP client. This tutorial uses the raw REST API, but you can adapt to your framework of choice.

Start Building

Wire Reddit and Twitter data into Claude Code and Cursor via the Scavio MCP server. One config, two high-signal social platforms.