Skip to main content
Glama
SubScraper Reddit MCP Server

SubScraper Reddit MCP Server

SubScraper Reddit MCP Server

npm version License: MIT MCP Compatible

Official Model Context Protocol (MCP) server for SubScraper — exposes all 14 Reddit data endpoints as first-class tools for AI coding assistants and autonomous agents.

Give Cursor, Claude Desktop, Windsurf, Cline, and any MCP-compatible client live access to search Reddit, inspect community discussions, extract nested comment trees, and gather developer sentiment without OAuth setup or Reddit app approval.


Quick Start

1. Cursor IDE

Add this to your .cursor/mcp.json (or global Cursor MCP configuration):

{
  "mcpServers": {
    "subscraper": {
      "command": "npx",
      "args": ["-y", "@subscraper/mcp"],
      "env": {
        "SUBSCRAPER_API_KEY": "sub_live_your_key_here"
      }
    }
  }
}

2. Claude Desktop

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "subscraper": {
      "command": "npx",
      "args": ["-y", "@subscraper/mcp"],
      "env": {
        "SUBSCRAPER_API_KEY": "sub_live_your_key_here"
      }
    }
  }
}

Note: Get 30 free API requests immediately at https://www.subscraper.dev.


Related MCP server: Reddit MCP Server

Available MCP Tools

All 14 endpoints are exposed as typed, agent-ready tools:

Tool

Description

search

Search Reddit posts by keyword across all of Reddit or scoped to a subreddit

get_post

Fetch post body and the full nested comment tree pre-cleaned for LLMs

get_community_posts

Retrieve listings from any subreddit (hot, new, top, rising) with cursor pagination

get_comment_permalink

Fetch an individual comment with parent discussion context

get_community_details

Subreddit metadata, subscriber count, description, and rules

get_user_profile

User karma, account age, bio, and creator information

get_user_posts

Submission history for any public Reddit user

get_user_comments

Comment history for any public Reddit user

search_communities

Discover subreddits matching a topic or keyword

search_users

Search for Reddit usernames

get_popular

Real-time trending posts across r/popular

get_leaderboard

Top communities ranked by growth and activity

explore

Discover subreddits grouped by niche topic

resolve_url_type

Classify any Reddit link (post, comment, user, subreddit) and extract IDs


Environment Variables

Variable

Required

Description

Default

SUBSCRAPER_API_KEY

✅ Yes

Your API key from the SubScraper dashboard

—

SUBSCRAPER_API_BASE_URL

No

Override base API URL

https://www.subscraper.dev/api/v1

CLI flags are also supported:

npx -y @subscraper/mcp --api-key sub_live_your_key

Example AI Prompts

Once configured, your AI assistant can execute natural language research:

  • "Search r/SaaS for complaints about competitor pricing this month and summarize the top 5 pain points."

  • "Fetch the top 50 comments on this Reddit URL and extract all mentioned tools: https://reddit.com/r/..."

  • "Find the top 5 subreddits discussing local LLMs and report their subscriber counts."

  • "Analyze the sentiment around Next.js 15 App Router across recent r/webdev discussions."


License

MIT © SubScraper — see LICENSE

Available Tools

14 tools
exploreB

Discover Reddit communities grouped by topic or interest area. Returns a list of relevant subreddits with descriptions. Useful for finding niche communities related to a subject.

Inputs: limit, topic.

get_community_detailsA

Get metadata about a subreddit: description, subscriber count, active users, creation date, NSFW flag, icon, and banner. Use to evaluate or describe a community.

Inputs: subreddit (required).

get_community_postsA

Get posts from any public subreddit. Supports sorting by hot, new, top, rising, or controversial. Returns post list with scores, comment counts, and metadata.

Inputs: subreddit (required), sort, time, after, +1 more.

get_leaderboardA

Get a leaderboard of trending and fast-growing Reddit communities. Returns subreddit names, subscriber counts, and growth metrics.

Inputs: after, limit.

get_postA

Fetch a full Reddit post including its body text, score, flair, and the entire nested comment tree. Use a direct Reddit post URL (e.g. https://reddit.com/r/sub/comments/abc123/...).

Inputs: url (required), commentDepth, commentLimit.

get_user_commentsA

Get comment history for a Reddit user. Returns comment body, score, subreddit, parent post title, and timestamps. Useful for understanding a user's opinions and activity.

Inputs: username (required), sort, after, limit.

get_user_postsB

Get all posts submitted by a Reddit user. Returns post titles, scores, subreddits, and timestamps. Useful for profiling an account's posting behavior.

Inputs: username (required), sort, after, limit.

get_user_profileB

Get a Reddit user's public profile: karma breakdown, bio, account age, avatar, trophies, and gold status. Works for any public Reddit account.

Inputs: username (required).

resolve_url_typeA

Detect what a Reddit URL points to — a post, comment, user profile, subreddit, or search. Returns the detected type and extracted identifiers (post ID, username, subreddit, etc.). Useful before deciding which tool to call next.

Inputs: url (required).

search_communitiesA

Find subreddits by keyword. Returns subreddit name, title, description, subscriber count, and URL. Useful for discovering niche communities related to a topic.

Inputs: query (required), after, limit.

search_usersB

Find Reddit users by username or display name. Returns username, display name, description, and profile URL.

Inputs: query (required), after, limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 14 tools

    Disambiguation4/5

    Most tools map to a distinct resource+action (post, comment, user, community) with clear boundaries. There is mild overlap between the community-discovery trio (search_communities, explore, get_leaderboard) and between scoped 'search' and 'get_community_posts', but the descriptions give enough signal (keyword vs. topic-grouped vs. growth-metrics; keyword vs. sort-based listing) to choose correctly.

    Naming Consistency4/5

    Dominant pattern is get_<resource> / search_<resource>, applied consistently across posts, users, and communities. A few tools break the pattern with bare verbs or noun phrases ('search', 'explore', 'resolve_url_type'), but they remain readable and unambiguous.

    Tool Count5/5

    14 tools is squarely in the well-scoped range for a read-only Reddit client. Each tool covers a distinct retrieval axis (entity type, listing source, or URL resolution) and none feels redundant padding.

    Completeness4/5

    Coverage is strong for a read-only scraper: posts, comments, users, communities, feeds, discovery, and URL routing are all present with sensible entry points. Minor gaps exist — no subreddit rules/moderators/wiki, no direct post-by-ID lookup (must go through a URL plus resolve_url_type), and no comment-level search.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      A
      maintenance
      Enables AI assistants to browse Reddit, search posts, analyze user activity, and fetch comments without requiring API keys. Features smart caching, clean data responses, and optional authentication for higher rate limits.
      6
      2,162 npm
      908
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to search, read, and analyze Reddit content, including posts, comments, subreddits, and user profiles using natural language commands. It provides atomic tools for interacting with the Reddit API to retrieve trending topics and community metadata.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI assistants to browse subreddits, search Reddit, read posts and threaded comments, and analyze user activity, while also creating, replying to, editing, and deleting posts or comments. Works with OAuth credentials for live data or in a keyless mode that needs no setup.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to browse and search Reddit, fetch post details and comments, analyze user activity, and look up Reddit terminology through the official Installed App OAuth2 API.
      1
      MIT