Skip to main content
Glama
reddit_mcp

reddit_mcp

Reddit MCP Server

A Model Context Protocol server for reading Reddit data from public JSON endpoints.

What It Does

This codebase currently implements a read-only Reddit server with five MCP tools:

  • search_subreddit

  • get_subreddit_posts

  • get_post_thread

  • get_user_profile

  • get_user_activity

The server does not require Reddit authentication for the implemented tools.

Related MCP server: systemprompt-mcp-reddit

How It Works

  • Uses aiohttp for async HTTP requests to Reddit's public .json endpoints.

  • Reuses one shared client session and rotates User-Agent strings per request.

  • Normalizes Reddit responses into compact post, comment, profile, and activity objects.

  • Validates subreddit names, usernames, post IDs, sort values, and limits before making a request.

Installation

pip install -e .

Requires Python 3.12 or newer.

Run

reddit-mcp-server

Optional transports:

reddit-mcp-server --transport http
reddit-mcp-server --transport sse
reddit-mcp-server --transport streamable-http
reddit-mcp-server --log-level DEBUG
reddit-mcp-server --version

Default transport is stdio, which is the recommended mode for MCP clients.

MCP Client Configuration

Example configuration:

{
  "mcpServers": {
    "reddit": {
      "command": "reddit-mcp-server",
      "args": ["--transport", "stdio"]
    }
  }
}

Tool Summary

Tool

Purpose

search_subreddit

Search posts within a subreddit by keyword

get_subreddit_posts

Fetch hot/new/top/rising posts from a subreddit

get_post_thread

Fetch a post and its top-level comments

get_user_profile

Fetch a user's public profile metadata

get_user_activity

Fetch a user's recent posts and/or comments

Repository Layout

reddit_mcp_server/
├── server.py
├── cli_main.py
├── http_client.py
└── tools/
    └── read/
        ├── __init__.py
        ├── common.py
        ├── search_subreddit.py
        ├── get_subreddit_posts.py
        ├── get_post_thread.py
        ├── get_user_profile.py
        └── get_user_activity.py

Documentation

  • API.md contains the parameter and response reference for the implemented tools.

Notes

  • The server trims long post bodies and comment bodies to keep responses compact for LLM usage.

Available Tools

6 tools
get_post_threadA

Fetch a specific post's text and its top comments.

Inputs: post_id (required), comment_limit, sort. Returns: object

get_subreddit_postsB

Fetch the front-page posts of a subreddit to surface active discussions.

Inputs: subreddit (required), category, limit. Returns: result

get_user_activityB

Fetch a Reddit user's recent posts and/or comments.

Inputs: username (required), activity_type, limit. Returns: result

get_user_profileA

Fetch a Reddit user's public profile: karma, account age, and metadata.

Inputs: username (required). Returns: object

post_replyA

Post a reply to a Reddit thread or comment using an authenticated browser session.

The browser must already be authenticated. If the session has expired, this tool will fail immediately with a descriptive error rather than waiting for a timeout.

Inputs: url_or_id (required), content (required). Returns: object

search_subredditB

Run highly targeted keyword searches within a specific subreddit community.

Inputs: subreddit (required), query (required), sort, time_filter, +1 more. Returns: result

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 6 tools

    Disambiguation5/5

    Each tool targets a distinct Reddit resource or action: fetching a post thread, subreddit posts, user activity, user profile, posting a reply, and searching a subreddit. No two tools have overlapping functionality.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern (get_*, post_*, search_*) with snake_case. The naming is predictable and clear.

    Tool Count5/5

    6 tools is well-scoped for a Reddit interaction server, covering reading, searching, and posting without being overwhelming or too sparse.

    Completeness4/5

    The tool set covers core read and post operations, but lacks ability to create new posts (only replies), vote, or retrieve full comment trees. These are minor gaps for its scope.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that enables AI assistants like Claude to browse and analyze Reddit content, including searching subreddits, retrieving post details with comments, and viewing trending posts.
      10
      MIT
    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      A Model Context Protocol server that enables AI assistants to fetch Reddit content including consensus on topics, top posts, helpful links, and related subreddits.
      2
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      A read-only Model Context Protocol server that enables browsing subreddits, searching within subreddits, retrieving comment trees, and looking up user activity on Reddit via natural language.
      -