Skip to main content
Glama

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.js

The server speaks MCP over stdio.

OpenCode setup

opencode mcp add ScrapeReddit --global -- node /absolute/path/to/index.js

Optionally 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.json

  • OpenCode (OC): .opencode/opencode.json + opencode-skill/SKILL.md

  • Codex: .codex/config.toml

  • Pi / others: follow AGENTS.md and register the stdio server node index.js

Available Tools

1 tool
read_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

    A3.6/5.0

    Scored across 1 tool

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count3/5

    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.

    Completeness3/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Reddit 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.
      17
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables 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.
      6
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables LLM agents to drive full web crawling and scraping through conversation by exposing tools for fetching, extracting, crawling, and screenshotting over stdio or SSE.
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables 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.
      12
      MIT