Sponsored by Deepsite.site

Reddit MCP Server

Created By
Arindam2008 months ago
Model Context Protocol server implementation for Reddit
Content

Reddit MCP Server

This repository contains a Model Context Protocol server implementation for Reddit that allows AI assistants to access and interact with Reddit content through PRAW (Python Reddit API Wrapper).

image

What is MCP?

The Model Context Protocol (MCP) is a standard for enabling AI assistants to interface with external services, tools, and data sources. This server implements the MCP specification to provide access to Reddit content.

To know more about MCP, Check this video

Features

  • Get detailed user information with engagement analysis
  • Fetch and analyze top posts from any subreddit
  • Get comprehensive subreddit statistics and health metrics
  • View trending subreddits with growth patterns
  • Create strategic posts with timing recommendations
  • Reply to posts and comments with engagement optimization
  • AI-driven insights and recommendations
  • Smart response formatting with engagement metrics

Installation

  1. Clone this repository
git clone https://github.com/Arindam200/reddit-mcp.git
cd reddit-mcp
  1. Connect to the MCP server

    Copy the below json with the appropriate {{PATH}} values:

    {
      "mcpServers": {
        "reddit": {
          "command": "{{PATH_TO_UV}}", // Run `which uv` and place the output here
          "args": [
            "--directory",
            "{{PATH_TO_SRC}}", // cd into the repo, run `pwd` and enter the output here
            "run",
            "server.py"
          ],
          "env": {
            "REDDIT_CLIENT_ID": "your_client_id",
            "REDDIT_CLIENT_SECRET": "your_client_secret",
            "REDDIT_USERNAME": "your_username", // Optional for authenticated operations
            "REDDIT_PASSWORD": "your_password" // Optional for authenticated operations
          }
        }
      }
    }
    

    You can obtain Reddit API credentials by creating an app at Reddit's app preferences page.

    For Claude, save this as claude_desktop_config.json in your Claude Desktop configuration directory at:

    ~/Library/Application Support/Claude/claude_desktop_config.json
    

    For Cursor, save this as mcp.json in your Cursor configuration directory at:

    ~/.cursor/mcp.json
    
  2. Restart Claude Desktop / Cursor

    Open Claude Desktop and you should now see Reddit as an available integration.

    Or restart Cursor.

Available Tools

The server provides the following tools:

Read-only Tools (require only client credentials):

  • get_user_info(username) - Get detailed user analysis with engagement insights
  • get_top_posts(subreddit, time_filter, limit) - Get and analyze top posts
  • get_subreddit_stats(subreddit) - Get comprehensive subreddit analysis
  • get_trending_subreddits() - Get list of trending subreddits

Authenticated Tools (require user credentials):

  • create_post(subreddit, title, content, flair, is_self) - Create an optimized post
  • reply_to_post(post_id, content, subreddit) - Add a reply with engagement insights
  • reply_to_comment(comment_id, content, subreddit) - Add a strategic reply

Example Queries

Here are some examples of what you can ask an AI assistant connected to this server:

  • "Analyze u/spez's Reddit activity"
  • "Show me the top posts from r/Python this week"
  • "Get statistics about r/AskReddit"
  • "What are the trending subreddits right now?"
  • "Create a post in r/Python about a new project"
  • "Reply to this post with an insightful comment"
  • "What's the best time to post in this subreddit?"

Advanced Features

AI-Driven Analysis

The server provides intelligent analysis in several areas:

  1. User Analysis

    • Engagement patterns
    • Activity trends
    • Community influence
    • Personalized recommendations
  2. Post Analysis

    • Performance metrics
    • Engagement quality
    • Timing optimization
    • Content impact assessment
  3. Community Analysis

    • Health indicators
    • Growth patterns
    • Activity metrics
    • Engagement opportunities

Smart Response Formatting

  • Organized bullet points
  • Engagement statistics
  • AI-driven insights
  • Strategic recommendations
  • Performance metrics

Authentication

The server supports two levels of authentication:

  1. Read-only Access

    • Requires: client_id and client_secret
    • Allows: Fetching public data, reading posts/comments
  2. Authenticated Access

    • Requires: All read-only credentials PLUS username and password
    • Allows: All read-only operations PLUS posting and commenting

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
DeepChatYour AI Partner on Desktop
Playwright McpPlaywright MCP server
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
WindsurfThe new purpose-built IDE to harness magic
ChatWiseThe second fastest AI chatbot™
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Tavily Mcp
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Serper MCP ServerA Serper MCP Server
CursorThe AI Code Editor
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Amap Maps高德地图官方 MCP Server
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.