Skip to main content

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:

https://github.com/user-attachments/assets/a2e9f2dd-a9ac-453f-acd9-1791380ebdad

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:
"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 💙

Metadata

Release files for reddit-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for reddit-mcp 0.1.0
File Size Uploaded Provenance Actions
reddit_mcp-0.1.0.tar.gz 17.4 MB Without provenance Details for reddit_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for reddit-mcp 0.1.0
File Interpreter ABI Platform Actions
reddit_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for reddit_mcp-0.1.0-py3-none-any.whl

Total release size: 17.4 MB

Release files / reddit_mcp-0.1.0.tar.gz

Download URL reddit_mcp-0.1.0.tar.gz
Size 17.4 MB
Tags Source
SHA-256 checksum
How to use checksums
810437219775f127e25beda5d705f632148e26b1ab2c288eacf09e87f8ccebcc
BLAKE2b-256 checksum
How to use checksums
062fc5a0f1742c140f4180d0dbf00bef9b95a85e730a6eb2bd4dd551c95b3fc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.6

Release files / reddit_mcp-0.1.0-py3-none-any.whl

Download URL reddit_mcp-0.1.0-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
152f494fbc4ad413eacb56662b32a5f3ee67bdc6ce949bf80cd38d3d637ad804
BLAKE2b-256 checksum
How to use checksums
7a21a60d5682acb0dcf391a1c8e4f51782ebb09673515c33661184ea3b47baba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.6

Security for reddit-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page