com.mambabuilt/mcp-reddit-search-thread-scraper

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

Reddit posts and comments by keyword, subreddit, or thread URL, no Reddit login or API key

التثبيت

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

NPM package @mambalabsdev/mcp-reddit-search-thread-scraper
Claude Code
claude mcp add mcp-reddit-search-thread-scraper -e 'APIFY_TOKEN=<your apify_token>' -- npx -y @mambalabsdev/mcp-reddit-search-thread-scraper@1.0.0
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "mcp-reddit-search-thread-scraper": {
            "command": "npx",
            "args": [
                "-y",
                "@mambalabsdev/mcp-reddit-search-thread-scraper@1.0.0"
            ],
            "env": {
                "APIFY_TOKEN": "<your apify_token>"
            }
        }
    }
}

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

  • APIFY_TOKEN إلزامي سري Apify API token from https://console.apify.com/account/integrations

التوثيق

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

المحتويات
  1. Reddit Search and Thread Scraper MCP Server
  2. What's Inside
  3. What it does
  4. Quick start
  5. Prerequisites
  6. Example prompts
  7. Tool
  8. Inputs
  9. Pricing
  10. Full actor documentation
  11. License

Reddit Search and Thread Scraper MCP Server

An MCP server for the Mamba Labs Reddit Search and Thread Scraper actor on Apify. Search Reddit by keyword, read subreddits, or read threads with their comments, and get one flat row per post and comment.

What's Inside

What it does

Each search term runs across all of Reddit or inside each subreddit you list, sorted by new, relevance, top, most comments, or hot. By default a result is kept only when the search term is in the post's title or text, so loosely related results are dropped and not charged. Subreddits with no search term return their newest, hot, top, or rising posts. Thread URLs return the post and its top comments. Each query also returns one free summary row with its counts. Reddit is read through its public feeds; no Reddit account, login, or API key is used.

All of the work runs on Apify. This package is a thin client that starts the actor run, waits for it, and hands back the dataset rows.

Quick start

You need Node.js 18 or newer and an Apify account with an API token.

Add this to your Claude Desktop config (claude_desktop_config.json), Cursor, or any MCP client:

{
  "mcpServers": {
    "mamba-reddit-search-thread-scraper": {
      "command": "npx",
      "args": [
        "-y",
        "@mambalabsdev/mcp-reddit-search-thread-scraper"
      ],
      "env": {
        "APIFY_TOKEN": "your-apify-token"
      }
    }
  }
}

Restart the client. The search_reddit tool appears.

Prerequisites

Example prompts

  • "Find Reddit posts from the last week in r/sales and r/startups that mention cold email."
  • "Pull the top comments from this Reddit thread into a table."
  • "What are people on r/SaaS posting about this month?"

Tool

search_reddit. One tool. Example arguments:

{
  "search_terms": [
    "cold email"
  ],
  "subreddits": [
    "sales"
  ],
  "since_days": 7,
  "max_posts_per_query": 50
}

Inputs

Every buyer facing input of the actor. Omitted inputs take the actor's own defaults.

InputTypeRequiredDescription
search_termsarraynoKeywords to search Reddit for. With subreddits, each term runs inside each subreddit.
subredditsarraynoSubreddits to search in, or to read when there is no search term.
thread_urlsarraynoThread URLs to read with their comments, up to 200.
sortstringnoSearch order: new, relevance, top, comments, hot. Default new.
subreddit_sortstringnoSubreddit read order: new, hot, top, rising. Default new.
time_windowstringnoReddit's time filter: hour, day, week, month, year, all. Default month.
since_daysintegernoDrop posts older than this many days.
max_posts_per_queryintegernoPosts per search or subreddit, up to 1,000. Default 50.
require_term_matchbooleannoKeep a search result only when the term is in its title or text. Default true.
include_commentsbooleannoAlso return the comments of every post found. Default false.
max_comments_per_threadintegernoComments per thread, top first, up to 500. Default 25.
comment_depthintegernoReply levels under each top level comment, 1 to 10. Default 3.
only_newbooleannoSkip posts and comments an earlier run returned for the same query. Default false.
state_keystringnoName for the only new results memory.
max_charge_usdstringnoOptional cost cap for the run.
proxy_modestringnoauto or residential. Default auto.

Pricing

Pay per event on Apify, billed to your Apify account. Prices in USD.

EventFree planBronzeSilverGold
post-row, per Reddit post$0.0015$0.001425$0.00135$0.001275
comment-row, per Reddit comment$0.0015$0.001425$0.00135$0.001275
apify-actor-start, per run start$0.003144$0.003144$0.003144$0.003144

Summary rows, refused input, search results without the term, and already delivered rows are free. Mamba Labs pays the platform costs of the run, Apify proxy traffic included.

Full actor documentation

apify.com/mambalabs/reddit-search-thread-scraper

License

MIT. See LICENSE.

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

ما هو com.mambabuilt/mcp-reddit-search-thread-scraper؟

Reddit posts and comments by keyword, subreddit, or thread URL, no Reddit login or API key

كيف أثبّت com.mambabuilt/mcp-reddit-search-thread-scraper؟

يعمل على جهازك. في Claude Code: claude mcp add mcp-reddit-search-thread-scraper -e 'APIFY_TOKEN=<your apify_token>' -- npx -y @mambalabsdev/mcp-reddit-search-thread-scraper@1.0.0. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج com.mambabuilt/mcp-reddit-search-thread-scraper إلى مفتاح API؟

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

هل com.mambabuilt/mcp-reddit-search-thread-scraper مفتوح المصدر؟

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

من يصون com.mambabuilt/mcp-reddit-search-thread-scraper؟

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

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