Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

reddit-mcp

MCP.Pizza Chef: GridfireAI

reddit-mcp is an MCP server that enables real-time browsing, searching, and reading of Reddit posts and comments. It leverages the PRAW library for reliable Reddit API access, includes detailed parameter validation with pydantic, and has built-in rate limiting protection. Currently, it supports read-only operations, making it ideal for integrating Reddit data into AI workflows and applications securely and efficiently.

Use This MCP server To

Browse Reddit posts and comments in real-time Search Reddit content by keywords or topics Integrate Reddit data into AI workflows Fetch detailed Reddit post and comment metadata Enable AI models to access Reddit discussions Monitor Reddit threads for specific topics Aggregate Reddit content for analysis Use Reddit data for sentiment or trend analysis

README

Reddit MCP

License: MIT

A plug-and-play MCP server to browse, search, and read Reddit.

Demo

Here's a short video showing how to use this in Claude Desktop:

Claude.Desktop.Demo.mp4

Features

  • Detailed parameter validation with pydantic
  • Uses the reliable PRAW library under the hood
  • Built-in rate limiting protection thanks to PRAW

Caveats

  • Only supports read features for now. If you want to use write features, upvote the issue or send a PR! šŸ™Œ
  • Tools use tokens. To use this with Claude, you may need to be a Pro user to use many tool calls. Free tier users should be fine with lighter tool usage. Your token usage is your responsibility.

Installation

Prerequisite: Reddit API credentials

Create a developer app in your Reddit account if you don't already have one. This will give you a client_id and client_secret to use in the following steps. If you already have these, you can skip this step.

Claude Desktop

To install into Claude Desktop:

  • Follow the instructions here until the section "Open up the configuration file in any text editor."
  • Add the following to the file depending on your preferred installation method:

Using uvx (recommended)

"mcpServers": {
  "reddit": {
    "command": "uvx",
    "args": ["reddit-mcp"],
    "env": {
      "REDDIT_CLIENT_ID": "<client_id>",
      "REDDIT_CLIENT_SECRET": "<client_secret>"
    }
  }
}

Using PIP

First install the package:

pip install reddit-mcp

Then add the following to the configuration file:

"mcpServers": {
  "reddit": {
    "command": "python",
    "args": ["-m", "reddit_mcp"],
    "env": {
      "REDDIT_CLIENT_ID": "<client_id>",
      "REDDIT_CLIENT_SECRET": "<client_secret>"
    }
  }
}

Others

You can use this server with any MCP client, including agent frameworks (LangChain, LlamaIndex, AutoGen, etc). For an example AutoGen integration, check out the example.

Tools

The tools the server will expose are:

Name Description
get_comment Access a comment
get_comments_by_submission Access comments of a submission
get_submission Access a submission
get_subreddit Access a subreddit by name
search_posts Search posts in a subreddit
search_subreddits Search subreddits by name or description

Contributing

Contributions are welcome! See CONTRIBUTING.md for more information.

Acknowledgments

  • PRAW for an amazingly reliable library šŸ’™

reddit-mcp FAQ

How do I install reddit-mcp?
Installation instructions are provided in the GitHub repository README, typically involving Python package setup and configuration of Reddit API credentials.
Does reddit-mcp support posting or voting on Reddit?
No, currently reddit-mcp only supports read operations; write features like posting or voting are not implemented yet.
How does reddit-mcp handle Reddit API rate limits?
It uses built-in rate limiting protection via the PRAW library to prevent exceeding Reddit's API usage limits.
What libraries does reddit-mcp use internally?
reddit-mcp uses the PRAW library for Reddit API access and pydantic for parameter validation.
Can I use reddit-mcp with different LLM providers?
Yes, reddit-mcp is compatible with various LLM providers like OpenAI, Claude, and Gemini through the MCP protocol.
Is reddit-mcp suitable for free-tier users?
Free-tier users can use reddit-mcp with lighter tool usage, but heavy usage may require a Pro subscription depending on the LLM platform.
How can I contribute to adding write features?
You can upvote the related GitHub issue or submit a pull request to add write capabilities like posting or voting.
Does reddit-mcp validate input parameters?
Yes, it uses pydantic for detailed parameter validation to ensure correct and safe API calls.