Reddit Scraper MCP Server avatar

Reddit Scraper MCP Server

Pricing

from $0.01 / 1,000 results

Go to Apify Store
Reddit Scraper MCP Server

Reddit Scraper MCP Server

MCP server that scrapes Reddit posts and comments using Cheerio. Provides tools for searching Reddit, fetching subreddit posts, and getting post comments.

Pricing

from $0.01 / 1,000 results

Rating

0.0

(0)

Developer

Jordan C

Jordan C

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

4 days ago

Last modified

Share

An MCP (Model Context Protocol) server that scrapes Reddit posts and comments using Cheerio (lightweight HTTP scraping, no Puppeteer/Playwright needed). Scrapes old.reddit.com for reliable, fast data extraction.

Tools

1. search_reddit

Search Reddit posts by keyword.

Parameters:

NameTypeRequiredDescription
querystringSearch query/keyword
limitnumberMax results (default: 25, max: 100)

Example:

{
"query": "typescript programming",
"limit": 10
}

2. get_subreddit_posts

Get posts from a subreddit with optional sorting.

Parameters:

NameTypeRequiredDescription
subredditstringSubreddit name (without r/)
sortstringSort: hot, top, new, or rising (default: hot)
limitnumberMax results (default: 25, max: 100)

Example:

{
"subreddit": "node",
"sort": "top",
"limit": 10
}

3. get_post_comments

Get top comments from a Reddit post.

Parameters:

NameTypeRequiredDescription
post_urlstringFull Reddit post URL (any format: www, old, new.reddit.com)
limitnumberMax comments (default: 25, max: 100)

Example:

{
"post_url": "https://www.reddit.com/r/typescript/comments/1abcd/example_post/",
"limit": 10
}

Usage

Claude Desktop / MCP Client

Add to your MCP client configuration:

{
"mcpServers": {
"reddit-scraper": {
"command": "node",
"args": ["/path/to/mcp-reddit-scraper/build/index.js"]
}
}
}

Direct command line

$node build/index.js

The server communicates over stdio (JSON-RPC). The Express HTTP server on port 3000 provides health check and tool listing endpoints:

  • GET /health — Health check
  • GET /tools — List available tools

Example Response (search_reddit)

[
{
"title": "TypeScript 5.7 Released",
"url": "https://dev.to/example/typescript-5-7",
"permalink": "https://old.reddit.com/r/typescript/comments/abc123/",
"subreddit": "typescript",
"score": 342,
"comments": 87,
"author": "example_user",
"domain": "dev.to",
"created": "2024-01-15T10:30:00+00:00"
}
]

Development

# Install dependencies
npm install
# Build
npm run build
# Run
npm start

Deploy to Apify

# Login
apify login
# Push to Apify
apify push

How It Works

  • Scrapes old.reddit.com (lighter, no JavaScript rendering)
  • Uses cheerio for HTML parsing (fast, no browser needed)
  • No API keys required — works with Reddit's public HTML interface
  • Respects rate limits with a reasonable User-Agent header

License

MIT