reddit-mcp-server

rgthelen/reddit-mcp-server

3.2

If you are the rightful owner of reddit-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Model Context Protocol (MCP) server for Reddit integration, allowing Claude to interact with Reddit content.

Tools
10
Resources
0
Prompts
0

Reddit MCP Server

Note: This is a fork of alexandros-lekkas/reddit-mcp-server with enhancements for better compatibility and additional features.

A Model Context Protocol (MCP) server for Reddit integration, allowing Claude to browse subreddits, create posts, comment, and manage Reddit content.

Features

  • Browse Subreddits: Get top posts from any subreddit
  • Post Management: Create, edit, and delete posts
  • Comment System: Reply to posts and manage comments
  • User Information: Get user and subreddit details
  • Trending Content: Discover trending subreddits

Prerequisites

  • Node.js 18+
  • Reddit account and API credentials
  • Claude Desktop App

Installation

  1. Clone this repository:
git clone https://github.com/rgthelen/reddit-mcp-server.git
cd reddit-mcp-server
  1. Install dependencies:
npm install
  1. Set up Reddit API credentials:

    • Go to Reddit App Preferences
    • Click "Create App" or "Create Another App"
    • Choose "script" for the app type
    • Copy the client ID and client secret
  2. Configure environment variables:

cp .env.example .env
# Edit .env with your Reddit credentials
  1. Build the project:
npm run build

Configuration

See for detailed Claude Desktop setup instructions.

Available Tools

  • test_reddit_mcp_server - Test the Reddit connection
  • get_reddit_post - Get details of a specific Reddit post
  • get_top_posts - Get top posts from a subreddit
  • get_user_info - Get information about a Reddit user
  • get_subreddit_info - Get information about a subreddit
  • get_trending_subreddits - Get trending subreddits
  • create_post - Create a new Reddit post
  • reply_to_post - Reply to a Reddit post
  • edit_post - Edit your Reddit post
  • edit_comment - Edit your Reddit comment

Usage Examples

With Claude Desktop configured, you can ask Claude:

  • "Show me the top posts from r/programming"
  • "Create a post in r/MachineLearning about Claude"
  • "Reply to this Reddit post with my thoughts"
  • "What are the trending subreddits today?"

Credits

License

MIT