ScrapeReddit
Allows reading Reddit posts by URL, returning parsed post metadata and body, with optional comments. It handles Reddit's JavaScript proof-of-work challenge and humanity gate to retrieve post content.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ScrapeReddit read this Reddit post and top comments: https://reddit.com/r/test/comments/abc123"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ScrapeReddit MCP
ScrapeReddit is an MCP (Model Context Protocol) server that reads Reddit posts by URL, bypassing Reddit's JavaScript proof-of-work challenge and "prove your humanity" gate. It exposes one tool:
read_reddit_post(url, includeComments?, maxComments?)
Why
Reddit front-ends ordinary HTTP fetches with a JS challenge and a CAPTCHA.
Generic tools (curl, webfetch, web search) often receive only the challenge
page. This server solves the challenge (jsc_token + doubled seed), replays the
request with the same cookie jar, and returns parsed post metadata + body.
Related MCP server: LinkDigest
Requirements
Node.js >= 18
Run
node index.jsThe server speaks MCP over stdio.
OpenCode setup
opencode mcp add ScrapeReddit --global -- node /absolute/path/to/index.jsOptionally copy opencode-skill/SKILL.md to
~/.config/opencode/skills/reddit/SKILL.md so agents are instructed to prefer
ScrapeReddit whenever a Reddit URL is involved.
Shell reader
scripts/read_reddit.sh is a standalone bash reader using the same flow.
Install prompt for agents (copy/paste)
# Installer prompt: ScrapeReddit MCP
Copy the block below and give it to your coding agent.
---
You are an AI coding agent. Install and configure the ScrapeReddit MCP server for
this environment, then verify it works.
Repository: https://github.com/NotAndrej/scrape-reddit-mcp
License: GPL-3.0-or-later
Steps:
1. Clone the repository to a persistent local path, for example `~/scrape-reddit-mcp`,
and ensure `node --version` is 18 or newer.
2. Test the server starts:
- Send one JSON-RPC `initialize` request to `node index.js` over stdin.
- Confirm it responds with `serverInfo.name == "ScrapeReddit"`.
3. Register it with the current harness:
- OpenCode: run `opencode mcp add ScrapeReddit --global -- node <path>/index.js`,
then copy `opencode-skill/SKILL.md` to `~/.config/opencode/skills/reddit/SKILL.md`,
then run `opencode reload`.
- Claude Code: ensure `.mcp.json` in the project/workspace points `ScrapeReddit` to
`node <path>/index.js`.
- Codex: append an `[mcp_servers.ScrapeReddit]` block (`command = "node"`,
`args = ["<path>/index.js"]`) to `~/.codex/config.toml`.
- Other agent: register the stdio server command `node <path>/index.js` as an MCP
server named `ScrapeReddit`.
4. Verify with the MCP `tools/list` that `read_reddit_post` is available, and call it on:
`https://www.reddit.com/r/opensource/comments/1xelcuf/your_tokens_arent_valuable_no_more_ai/`
5. Report the post title and author after a successful read.
Constraints:
- Do not use curl/webfetch/websearch against reddit.com as a substitute.
- Preserve existing user configuration; only add the ScrapeReddit entry.
- Prefer absolute paths in harness configs.
---
File lives in the repository as `INSTALL_PROMPT.md`.
License
GPL-3.0-or-later (GNU General Public License v3.0 or later).
See LICENSE for full text.
Generic agent integration (CC / OC / PI / Codex)
This repo ships shared instructions in AGENTS.md. Harness-specific files:
Claude Code (CC):
.mcp.jsonOpenCode (OC):
.opencode/opencode.json+opencode-skill/SKILL.mdCodex:
.codex/config.tomlPi / others: follow
AGENTS.mdand register the stdio servernode index.js
Available Tools
1 toolread_reddit_postB
Read a Reddit post by URL, bypassing Reddit's JS challenge. Returns title, author, metadata, and post body; optionally top-level comments.
Inputs: url (required), maxComments, includeComments.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool in the set, there is no possibility of misselection or overlap. The tool's purpose (fetch a Reddit post by URL, optionally including comments) is unambiguous.
The single name read_reddit_post follows a clear verb_noun convention in snake_case. Trivially consistent, but it also aligns with common ecosystem conventions, making it predictable if more tools were added.
One tool is thin for a server branded as 'ScrapeReddit', which implies broader scraping capability. However, for the narrowly stated purpose of reading a single post, the surface is not bloated, so this is borderline rather than a mismatch.
The tool covers reading a post and optionally its comments, but there is no way to list subreddit posts, search, browse a user's posts, or traverse comment threads. These notable gaps mean an agent can fetch a known URL but cannot discover content.
Maintenance
Related MCP Connectors
Reddit posts, full comment trees, searches, subreddits and users, as JSON or Markdown for LLMs.
Read-only Reddit search API for AI agents: posts, comments, comment trees, subreddit rules.
Reddit posts, comments, keyword search and historical archives as tools. Runs on Apify.
Scrape X, Reddit, LinkedIn, GitHub, Instagram and TikTok data as tools for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceReddit automation for AI agents — browse feeds, search posts, comment, vote, and publish using a Chrome extension bridge. Python CLI with JSON output, no API keys needed.17MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to read social media and article links that return no useful HTML, returning transcripts, on-screen text, image OCR, captions, metadata, and optional viral breakdowns with verbatim-checked quotes or translations. Works with Xiaohongshu, Douyin, TikTok, YouTube, X, and ordinary web pages through a hosted remote endpoint, with a Python SDK, CLI, and stdio bridge for clients that need them.6MIT
- FlicenseNot gradedqualityAmaintenanceEnables LLM agents to drive full web crawling and scraping through conversation by exposing tools for fetching, extracting, crawling, and screenshotting over stdio or SSE.-
- AlicenseAqualityBmaintenanceEnables AI agents to extract clean LLM-ready markdown and readable articles from web pages, parse metadata, tables, links, feeds, and contact info, audit paywalls, SEO, and XSS, and access these tools via Streamable HTTP or a stdio bridge.12MIT