11 min read

RedScraper Team

How to Give Claude Live Reddit Data with an MCP Server

Connect Claude, Cursor or VS Code to live Reddit data through the RedScraper MCP server: setup snippets, the agent tool flow, example prompts and safe API keys.

Ask Claude what people on Reddit think about a product, a library or a pricing change, and you usually get either a summary of what Reddit "tends to say", built from training data, or a request to paste the thread in. Pasting falls apart on a big thread: collapsed replies never reach your clipboard, formatting turns into noise, and one busy post can fill the context window before the model reaches the replies that matter. And it is never current.

The fix is to let the model fetch Reddit data itself, on demand, with the exact fields it needs. That is what an MCP server is for. Below: how to connect the RedScraper MCP server to Claude Desktop, Claude Code, Cursor and VS Code, what the agent does behind the scenes, and where the limits are.

What MCP is, in two paragraphs

The Model Context Protocol (MCP) is an open standard that lets AI assistants use tools provided by other services. You add a service's MCP server to your client once; from then on, the model sees a list of tools with names, descriptions and input schemas, and decides on its own when to call one. You ask in plain language; the agent picks the tool, fills in the arguments and reads the result.

The practical difference from pasting is control. Instead of a wall of text, the model asks for a specific slice, such as this week's top posts about a keyword with only titles, links and vote counts, and gets structured rows back. The model does the reasoning; the server does the fetching.

Why community Reddit MCP servers are getting fragile

Many open-source Reddit MCP servers run on your own machine and reach Reddit either through the official Reddit Data API with your personal developer credentials, or through Reddit's RSS feeds. Both paths are narrowing. Reddit ended RSS feeds in November 2026, and it has announced that it will close public Data API access in 2027. A server built on either one may simply stop working.

The RedScraper MCP server takes a different route. It is a hosted, remote server: nothing to install or run, scraping happens on RedScraper's side, and you do not need a Reddit API key or a Reddit developer app. It collects publicly visible Reddit data only, and you remain responsible for using it in line with applicable laws and Reddit's terms. The same features are available through the Reddit Scraper API if you prefer code.

What you need before you connect

  • A RedScraper account with an active plan. API and MCP access are included in every plan; scrapes use your plan's compute hours (see pricing).
  • An API key, created in the dashboard under API management, with a deliberately chosen access level (see below).
  • The server URL: https://api.redscraper.io/mcp.

The transport is Streamable HTTP (POST only) and stateless: plain JSON responses, no session. Every request carries your API key as Authorization: Bearer YOUR_API_KEY (or an X-API-Key header); there is no OAuth sign-in step. Supported protocol versions are 2025-11-25, 2025-06-18, 2025-03-26 and 2024-11-05.

Connecting the server in each client

In every client snippet below, replace YOUR_API_KEY with your key.

Claude Code

Run once in your terminal:

claude mcp add --transport http redscraper https://api.redscraper.io/mcp --header "Authorization: Bearer YOUR_API_KEY"

Cursor

Add this to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):

{
  "mcpServers": {
    "redscraper": {
      "url": "https://api.redscraper.io/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

VS Code

Add this to .vscode/mcp.json in your workspace:

{
  "servers": {
    "redscraper": {
      "type": "http",
      "url": "https://api.redscraper.io/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

Claude Desktop

Clients that only support local (stdio) servers can connect through mcp-remote, which requires Node.js 18+. Add this to claude_desktop_config.json and restart the app:

{
  "mcpServers": {
    "redscraper": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://api.redscraper.io/mcp",
        "--header",
        "Authorization:${REDSCRAPER_AUTH_HEADER}"
      ],
      "env": {
        "REDSCRAPER_AUTH_HEADER": "Bearer YOUR_API_KEY"
      }
    }
  }
}

You only edit the env block: mcp-remote fills ${REDSCRAPER_AUTH_HEADER} in args from it. The header value lives in env, not in args, because some clients (Claude Desktop on Windows, and Cursor) split arguments at spaces, which would break Bearer YOUR_API_KEY in two.

Test the connection with cURL

Every request is a stateless JSON-RPC 2.0 POST, so you can check your key without any client. The command reads the key from the REDSCRAPER_API_KEY environment variable, so set it first in the same terminal with export REDSCRAPER_API_KEY="YOUR_API_KEY". This lists the tools your key can use:

curl -X POST "https://api.redscraper.io/mcp" \
  -H "Authorization: Bearer $REDSCRAPER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}'

One warning that applies to all of these: config files store your key in plain text. Use a dedicated key for each client, keep the files out of version control, and revoke the key in the dashboard if it leaks.

How the agent actually uses the tools

The server exposes 19 tools in four groups. Knowing them helps you write better prompts.

GroupTools
Scrapescreate_scrape, get_scrape, get_scrape_results, list_scrapes, cancel_scrape, list_data_fields
Account & usageget_account, update_profile, get_usage, contact_support
Billinglist_plans, get_subscription, list_transactions, start_subscription_checkout, change_plan, cancel_subscription
API keyslist_api_keys, create_api_key, revoke_api_key

Every tool follows the same rules as the matching REST endpoint. A typical research request runs in three steps:

  1. create_scrape starts the scrape and returns its id with status "running". It takes the same body as POST /v1/scrapes (keyword searches or a single Reddit url, dataTypes, sort, time, includeNsfw, maxItems), plus an optional idempotency_key. It uses plan compute hours and is refused when they are used up or too many scrapes are running.
  2. get_scrape with that id and wait_seconds: 25 (the maximum; 0 to 25 is allowed), repeated while the status is "running". When the server is busy it answers at once and says when to call again; if the result has a nextStep, the agent follows it.
  3. get_scrape_results once the status is "completed". It returns rows with offset, limit (default 50, max 200), a type filter and a fields projection.

Around that core, list_data_fields gives the valid field keys per data type and the allowed sort and time values, so the agent does not guess. list_scrapes shows earlier scrapes from the dashboard, API and MCP; cancel_scrape aborts a running one. When a call cannot be completed (invalid arguments, no subscription, a scrape that has not finished), the tool returns an error message the agent can read and act on. Every scrape an agent starts is marked with source mcp and appears in your dashboard history.

Five prompts to try, and what the agent will do

1. A weekly theme summary.

Use RedScraper to collect the top 100 posts about "AI agents" from the past week, then summarize the main themes with links to the most upvoted posts.

The agent calls create_scrape with a keyword search for "AI agents", post data, sort top, time week and maxItems around 100. It waits with get_scrape, then reads title, url, upvotes and numComments with get_scrape_results, groups the titles into themes and cites the top posts.

2. Questions from a subreddit feed.

Scrape the 200 newest posts from https://www.reddit.com/r/startups/new and list the 10 questions founders ask most often.

Here the source is a URL, so the agent passes url instead of searches and sets maxItems to 200. It sets no sort or time window: URL tasks return the page as Reddit serves it at fetch time, and /new already lists the newest posts. The ranking of questions is the model's own analysis.

3. A recommendation report.

Find Reddit posts from the past month that mention "CRM for freelancers" and draft a short report on the tools people recommend.

A keyword search with time month. Recommendations usually live in replies, so a good agent also selects comment data and reads comment body and upvotes to see which tools get named and backed.

4. One big thread, without pasting it.

Collect the comments from https://www.reddit.com/r/... (paste the post URL) with username, comment text, votes and creation date, then tell me the three strongest objections and who raised them.

This is where copy-paste fails. The agent scrapes the post URL with comment fields username, body, upvotes and createdAt, then reads the rows page by page with offset and limit, so deep reply chains arrive without page noise. For more on what a thread scrape returns, see the Reddit comment scraper.

5. An account check.

How many compute hours do I have left this month, and what were my last 5 scrapes?

No scraping: the agent calls get_usage for compute hours used and remaining this billing period, and list_scrapes for recent runs. A Read-only key is enough.

Keeping results inside the model's context

The context window is the real constraint: a scrape can return up to 10,000 items, far more than a model should read as raw JSON. Three settings keep it manageable, and you can name them in your prompt.

  • maxItems caps how many items the scrape collects, from 1 to 10,000 (default 50). For a quick question, 50 to 200 is plenty.
  • fields projects each row down to the keys the task needs. Titles, URLs and votes are short; full post content and comment body fill the window. You can set this in dataTypes when the scrape is created (a list of field keys instead of true), and again in get_scrape_results when reading.
  • Data types decide what gets collected at all. A task can collect posts, comments, subreddits and users together, but selecting only what you need keeps the results small. The type filter on get_scrape_results lets the agent read one data type at a time.

The field keys the agent will use are: for posts title, content, url, subreddit, username, numComments, upvotes, media, flair, upvoteRatio, mediaType, nsfw; for comments username, communityName, body, createdAt, upvotes, numberOfreplies, url. Subreddit and user data have their own sets; list_data_fields returns all of them. Posts have no creation date field, so if dates matter, use comment createdAt or the time window on a keyword search.

A useful habit is a two-pass prompt: "First fetch titles, URLs and votes only. Then read the full text of the ten most upvoted posts." The agent skims cheaply and spends context where it counts.

API keys, access levels and safety

The server only lists the tools your key's access level allows, so the agent never sees tools it cannot use. There are three levels:

Access levelUse it for
Read-onlyResearch and reporting agents that only read scrapes, results, usage and billing. It cannot start scrapes or change anything.
StandardAgents that start scrapes for you. Recommended for most setups.
FullOnly if the agent should change your subscription or manage API keys.

Billing is protected even on a Full key. change_plan and cancel_subscription only preview until the agent calls them again with confirm: true; confirmed upgrades charge the card immediately, downgrades apply next period, and cancellation takes effect at the end of the billing period. start_subscription_checkout only returns a Stripe Checkout link for you to open and pay. create_api_key cannot create a key with more access than the key in use, and list_api_keys never shows key secrets.

These actions stay in the dashboard and are never available to agents: sign-in, registration and Google sign-in; changing or resetting your password; deleting your account; signing out of all sessions. The rate limit is 1,000 requests per hour per API key, shared with the REST API; every tool call counts, also inside a JSON-RPC batch.

Limits to know before you rely on it

  • One URL or up to 9 searches per scrape. A task uses 1 to 9 keyword searches or a single Reddit URL, not both. Five subreddits means five scrapes.
  • Sort and time only for keyword searches. Sort (hot, top, new, relevance) and the time window (hour, day, week, month, year, all time) apply to keyword searches only; the time window and hot need post data. A URL returns what Reddit shows there at fetch time.
  • No scheduling or history. RedScraper does not run tasks on a schedule or keep snapshots for comparison. For a weekly check, ask the agent again each week or script the REST API on your own schedule.
  • No built-in analysis. RedScraper does not score sentiment, classify text, detect bots or rank anything. It returns the data; the model does the reading and judging, so treat its conclusions as analysis to check, not measurements. For research, keep the scrape id and raw rows next to the conclusions, as discussed in Reddit scraper for research.
  • Public data only. Private communities, deleted content and anything behind a login are out of reach.

Key takeaways

  • An MCP server lets Claude fetch current Reddit data itself instead of relying on pasted threads.
  • Servers built on personal Reddit API credentials or RSS are on shaky ground; the RedScraper server is hosted and needs no Reddit developer app.
  • Setup is one command in Claude Code and a short JSON block elsewhere (Claude Desktop via mcp-remote).
  • The core flow is create_scrape, then get_scrape with wait_seconds, then get_scrape_results with fields.
  • Keep context small with maxItems, field projection and only the data types you need.
  • Give each client its own key at the lowest access level that works; Standard suits most research agents.

FAQ

Which MCP clients work with the RedScraper server?

Claude Desktop, Claude Code, Cursor and VS Code. Clients with remote HTTP support connect directly with an Authorization header; stdio-only clients connect through mcp-remote.

Do I need a Reddit account or Reddit API credentials?

No. You need a RedScraper API key, not a Reddit API key or Reddit developer app. The scraping runs on RedScraper's side and covers publicly visible Reddit data.

Can the agent spend money or change my plan by mistake?

Only a Full access key can change billing or manage keys, and even then plan changes only preview until confirmed with confirm: true; checkout returns a link you pay yourself. A Standard key can start scrapes, which use compute hours, but cannot change billing.

How much Reddit data can Claude work with at once?

A single scrape collects up to 10,000 items, and the agent reads results in pages of up to 200 rows. How much the model can reason over at once depends on its context window, so ask for only the fields you need.

Can it monitor a subreddit or keyword continuously?

No. RedScraper does not schedule runs or keep history. Re-run the prompt when you need a fresh look, or call the API on your own schedule from your own code.

Filed under

  • #Reddit MCP
  • #Claude
  • #AI agents
  • #Reddit API
  • #Model Context Protocol

Run your first Reddit scrape

Posts, comments and users to CSV, JSON or Excel. No code.

Start scraping

Read next

More from the blog.