Reddit Scraper (Apify) – posts, comments, search, users, subreddits

السجل الرسمي البحث والويب

Reddit posts, comments, search, users & subreddits as JSON via Apify. No Reddit API key. $2/1k

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

Remote (streamable-http)
Claude Code
claude mcp add --transport http reddit-scraper-apify-posts-comments-sear 'https://mcp.apify.com/?tools=harshmaur/reddit-scraper' --header 'Authorization: <Apify API token as '\''Bearer <APIFY_TOKEN>'\''. Free token at https://console.apify.com/account/integrations>'
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "reddit-scraper-apify-posts-comments-sear": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=harshmaur/reddit-scraper",
            "headers": {
                "Authorization": "<Apify API token as 'Bearer <APIFY_TOKEN>'. Free token at https://console.apify.com/account/integrations>"
            }
        }
    }
}
NPM package reddit-scraper-mcp
Claude Code
claude mcp add reddit-scraper-apify-posts-comments-sear -e 'APIFY_TOKEN=<your apify_token>' -e 'REDDIT_SCRAPER_ACTOR=harshmaur/reddit-scraper' -- npx -y reddit-scraper-mcp@0.2.0
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "reddit-scraper-apify-posts-comments-sear": {
            "command": "npx",
            "args": [
                "-y",
                "reddit-scraper-mcp@0.2.0"
            ],
            "env": {
                "APIFY_TOKEN": "<your apify_token>",
                "REDDIT_SCRAPER_ACTOR": "harshmaur/reddit-scraper"
            }
        }
    }
}

متغيرات البيئة

  • APIFY_TOKEN إلزامي سري Apify API token (free at https://console.apify.com/account/integrations)
  • REDDIT_SCRAPER_ACTOR Actor to run; default harshmaur/reddit-scraper, or harshmaur/reddit-scraper-pro

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. Reddit Scraper MCP server
  2. Option A — remote (nothing to install)
  3. Option B — local stdio server (this repo)
  4. Automation templates
  5. Files

Reddit Scraper MCP server

MCP server for the Reddit Scraper Apify Actor. Gives Claude, Cursor, Codex, Windsurf, ChatGPT and any other MCP client three tools for Reddit as structured JSON: keyword search, URL scraping with full comment threads, and bulk subreddit pulls. No Reddit API key, no login. Billed per result on Apify ($2 per 1,000 results, less with Apify plan discounts; the free plan covers small runs).

Reddit API and RSS shutdown. Reddit stops accepting new API access requests on 2026-10-31. Reddit RSS feeds stop on 2026-11-13. This server does not use a Reddit API key, a Reddit app or RSS, so neither date changes your setup.

Two ways to connect. Both need an Apify token. No Apify account yet? Sign up free, then copy the token from https://console.apify.com/account/integrations.

Option A — remote (nothing to install)

Apify hosts the Actor as an MCP tool:

{
  "mcpServers": {
    "reddit-scraper": {
      "url": "https://mcp.apify.com/?tools=harshmaur/reddit-scraper",
      "headers": { "Authorization": "Bearer <APIFY_TOKEN>" }
    }
  }
}

Stdio-only clients can bridge with npx mcp-remote https://mcp.apify.com/?tools=harshmaur/reddit-scraper. This is the endpoint registered in the official MCP Registry as io.github.harshmaur/reddit-scraper.

Option B — local stdio server (this repo)

Purpose-built tools with typed arguments, so the model fills in queries, subreddit, postedAfter instead of a raw Actor input object.

{
  "mcpServers": {
    "reddit-scraper": {
      "command": "npx",
      "args": ["-y", "reddit-scraper-mcp"],
      "env": { "APIFY_TOKEN": "<APIFY_TOKEN>" }
    }
  }
}

Published on npm as reddit-scraper-mcp. Or clone and run node index.js. Node 20+.

ToolUse it for
search_redditKeyword search across Reddit or one subreddit; sort, time window, date range; matching comments and post threads on by default. Brand monitoring, lead discovery, "what is Reddit saying about X".
scrape_reddit_urlsPost permalinks (with the full thread), /user/<name>/ profiles, subreddit listing URLs, search-page URLs.
scrape_subredditBulk posts from one or more subreddits, optionally date-bounded; comment threads on by default.

Environment:

VariableDefaultMeaning
APIFY_TOKENrequiredApify API token
REDDIT_SCRAPER_ACTORharshmaur/reddit-scraperSet to harshmaur/reddit-scraper-pro to run the Pro listing instead
REDDIT_SCRAPER_TIMEOUT300Seconds to wait for a run

Every item carries dataType (post, comment, community, user_profile); posts include title, body, postUrl, communityName, authorName, score, commentsCount, createdAt, flair. Field reference: https://apify.com/harshmaur/reddit-scraper#output-example

Automation templates

The Actor can also deliver results itself (Slack, Notion, Airtable, Sheets) through its mcpConnector input, with an Apify Schedule as the trigger, if you prefer no middleware.

Files

  • index.js — the stdio server
  • server.json — official MCP Registry manifest for Pro; server-reddit-scraper.json — same for the flagship
  • Dockerfile, glama.json — for directory indexers

MIT. Built by Harsh Maur.

الأسئلة الشائعة

ما هو Reddit Scraper (Apify) – posts, comments, search, users, subreddits؟

Reddit posts, comments, search, users & subreddits as JSON via Apify. No Reddit API key. $2/1k

كيف أثبّت Reddit Scraper (Apify) – posts, comments, search, users, subreddits؟

يعمل كخادم بعيد. في Claude Code: claude mcp add --transport http reddit-scraper-apify-posts-comments-sear 'https://mcp.apify.com/?tools=harshmaur/reddit-scraper' --header 'Authorization: <Apify API token as '\''Bearer <APIFY_TOKEN>'\''. Free token at https://console.apify.com/account/integrations>'. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج Reddit Scraper (Apify) – posts, comments, search, users, subreddits إلى مفتاح API؟

نعم. يتطلب APIFY_TOKEN, Authorization، وتضبطها في إعداداته.

هل Reddit Scraper (Apify) – posts, comments, search, users, subreddits مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون Reddit Scraper (Apify) – posts, comments, search, users, subreddits؟

ينشره harshmaur. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.