Skip to content
Mcp Reddit logo
MCP server

Mcp Reddit MCP Server

This server provides AI agents with tools to fetch, post and search on Reddit.

Mcp Reddit scores 34 (Limited), licensed MIT and written in Python. It installs as a local process. It does not declare tools yet. Filed under Search. GitHub shows 16 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by krishnarandad2023MITPython16 stars
Trust score
34Limited
Trust score 34 of 100, Limited

Limited trust

34 of 100 from six public signals. Nobody can buy a point.

  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 34 comes from

0 + 6 + 4 + 10 + 7 + 7 = 34. Each factor is capped, so no single signal can carry a listing.

Registry0 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 0 of 30 points.
Maintenance6 / 20

How recently the repository saw a commit or release.

Maintenance: 6 of 20 points.
Popularity4 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 4 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security7 / 10

Not archived, a secure install path, a pinned version.

Security: 7 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "krishnarandad2023-mcp-reddit": {      "command": "docker",      "args": [        "run",        "-i",        "--rm",        "mcp/reddit-mcp"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

Reddit MCP Server

A comprehensive Model Context Protocol (MCP) server for Reddit integration. This server enables AI agents to interact with Reddit programmatically through a standardized interface.

๐ŸŽฏ Features

This MCP server provides 6 powerful tools for Reddit interaction:

  • fetchPosts - Fetch hot posts from any subreddit
  • getComments - Retrieve comments from specific posts
  • searchPosts - Search for posts within subreddits
  • postComment - Post comments on Reddit posts
  • getSubredditInfo - Get detailed subreddit information
  • postToSubreddit - Create new text or link posts

๐Ÿš€ Quick Start

Prerequisites

  1. Reddit API Credentials - Create a Reddit app at https://www.reddit.com/prefs/apps
  2. Docker - For containerized deployment
  3. Environment Variables:
    • REDDIT_CLIENT_ID - Your Reddit app client ID
    • REDDIT_CLIENT_SECRET - Your Reddit app client secret
    • REDDIT_USERNAME - Your Reddit username
    • REDDIT_PASSWORD - Your Reddit password
    • REDDIT_USER_AGENT - User agent string (optional, defaults to "mcp-reddit-agent/0.1")

Installation & Setup

Method 1: Using Docker (Recommended)

Linux/macOS:

# Clone the repository
git clone https://github.com/KrishnaRandad2023/mcp-reddit
cd mcp-reddit

# Build the Docker image
make build

# Set environment variables
export REDDIT_CLIENT_ID="your_client_id"
export REDDIT_CLIENT_SECRET="your_client_secret"
export REDDIT_USERNAME="your_username"
export REDDIT_PASSWORD="your_password"

# Test the server
make test

Windows (PowerShell/Batch):

# Clone the repository
git clone https://github.com/<my-org>/reddit-mcp
cd reddit-mcp

# Build the Docker image
.\build.ps1 build
# Or use simple batch file: .\build-win.bat build

# Set environment variables
$env:REDDIT_CLIENT_ID = "your_client_id"
$env:REDDIT_CLIENT_SECRET = "your_client_secret"
$env:REDDIT_USERNAME = "your_username"
$env:REDDIT_PASSWORD = "your_password"

# Test the server
.\build.ps1 test
# Or: .\build-win.bat test

Method 2: Using Task Commands (Docker MCP)

# Create server instance
task create -- --category social https://github.com/<my-org>/reddit-mcp \
  -e REDDIT_CLIENT_ID=your_client_id \
  -e REDDIT_USERNAME=your_username \
  -e REDDIT_USER_AGENT="mcp-reddit-agent/0.1" \
  -e REDDIT_CLIENT_SECRET=your_client_secret \
  -e REDDIT_PASSWORD=your_password

# Build the tools
task build -- --tools reddit-mcp

# Import catalog
task catalog -- reddit-mcp
docker mcp catalog import $PWD/catalogs/reddit-mcp/catalog.yaml

Method 3: Direct Docker Run

docker run --rm -i \
  -e REDDIT_CLIENT_ID="your_client_id" \
  -e REDDIT_CLIENT_SECRET="your_client_secret" \
  -e REDDIT_USERNAME="your_username" \
  -e REDDIT_PASSWORD="your_password" \
  -e REDDIT_USER_AGENT="mcp-reddit-agent/0.1" \
  mcp/reddit-mcp:latest

๐Ÿ› ๏ธ Tool Reference

fetchPosts

Fetch hot posts from a subreddit.

Arguments:

  • subreddit (string, required) - Name of the subreddit
  • limit (integer, optional) - Number of posts to fetch (1-100, default: 10)

Example:

{
  "subreddit": "technology",
  "limit": 5
}

getComments

Get comments for a specific Reddit post.

Arguments:

  • post_id (string, required) - Reddit post ID (without 't3_' prefix)

Example:

{
  "post_id": "abc123"
}

searchPosts

Search for posts within a subreddit.

Arguments:

  • subreddit (string, required) - Name of the subreddit
  • query (string, required) - Search query
  • limit (integer, optional) - Number of results (1-100, default: 10)

Example:

{
  "subreddit": "programming",
  "query": "python tutorial",
  "limit": 10
}

postComment

Post a comment on a Reddit post.

Arguments:

  • post_id (string, required) - Reddit post ID (without 't3_' prefix)
  • comment_text (string, required) - Comment text to post

Example:

{
  "post_id": "abc123",
  "comment_text": "Great post! Thanks for sharing."
}

getSubredditInfo

Get detailed information about a subreddit.

Arguments:

  • subreddit (string, required) - Name of the subreddit

Example:

{
  "subreddit": "MachineLearning"
}

postToSubreddit

Create a new post in a subreddit.

Arguments:

  • subreddit (string, required) - Name of the subreddit
  • title (string, required) - Post title
  • content (string, optional) - Post content for text posts
  • url (string, optional) - URL for link posts

Note: Either content or url must be provided.

Example (Text Post):

{
  "subreddit": "test",
  "title": "My Test Post",
  "content": "This is a test post created via MCP."
}

Example (Link Post):

{
  "subreddit": "technology",
  "title": "Interesting Article",
  "url": "https://example.com/article"
}

๐Ÿ”ง Development

Building from Source

# Clone repository
git clone https://github.com/<my-org>/reddit-mcp
cd reddit-mcp

# Install dependencies
pip install -r requirements.txt

# Run locally (requires environment variables)
python src/server.py

Available Build Commands

Linux/macOS (Makefile):

make help       # Show help
make build      # Build Docker image
make test       # Run tests
make catalog    # Generate MCP catalog
make publish    # Prepare for registry submission
make clean      # Clean up Docker images

Windows (PowerShell/Batch):

.\build.ps1 help       # Show help
.\build.ps1 build      # Build Docker image
.\build.ps1 test       # Run tests
.\build.ps1 catalog    # Generate MCP catalog
.\build.ps1 publish    # Prepare for registry submission
.\build.ps1 clean      # Clean up Docker images

# Or use simple batch files:
.\build-win.bat build       # Build Docker image
.\build-win.bat test        # Run tests
.\build-win.bat catalog     # Generate MCP catalog
.\build-win.bat clean       # Clean up Docker images

Project Structure

reddit-mcp/
โ”œโ”€โ”€ src/
โ”‚   โ””โ”€โ”€ server.py          # Main MCP server implementation
โ”œโ”€โ”€ catalogs/
โ”‚   โ””โ”€โ”€ reddit-mcp/
โ”‚       โ””โ”€โ”€ catalog.yaml   # MCP catalog definition
โ”œโ”€โ”€ Dockerfile             # Docker container definition
โ”œโ”€โ”€ requirements.txt       # Python dependencies
โ”œโ”€โ”€ server.json           # MCP server metadata
โ”œโ”€โ”€ tools.json            # Tool definitions
โ”œโ”€โ”€ Makefile              # Build automation
โ”œโ”€โ”€ *.sh                  # Shell scripts for automation
โ””โ”€โ”€ README.md             # This file

๐Ÿ” Security & Authentication

Reddit API Setup

  1. Go to https://www.reddit.com/prefs/apps
  2. Click "Create App" or "Create Another App"
  3. Choose "script" as the app type
  4. Note your client ID (under app name) and client secret
  5. Set environment variables with your credentials

Environment Variables

VariableRequiredSecretDescription
REDDIT_CLIENT_IDโœ…โŒReddit application client ID
REDDIT_CLIENT_SECRETโœ…โœ…Reddit application client secret
REDDIT_USERNAMEโœ…โŒYour Reddit username
REDDIT_PASSWORDโœ…โœ…Your Reddit password
REDDIT_USER_AGENTโŒโŒUser agent string (default: "mcp-reddit-agent/0.1")

Security Best Practices

  • Store secrets securely (use environment variables, not hardcoded values)
  • Use dedicated Reddit account for automation
  • Follow Reddit's API rate limiting guidelines
  • Respect subreddit rules and Reddit's terms of service

๐Ÿ“‹ Usage Examples

Example Claude Desktop Configuration

{
  "mcpServers": {
    "reddit": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-e",
        "REDDIT_CLIENT_ID=your_client_id",
        "-e",
        "REDDIT_CLIENT_SECRET=your_client_secret",
        "-e",
        "REDDIT_USERNAME=your_username",
        "-e",
        "REDDIT_PASSWORD=your_password",
        "-e",
        "REDDIT_USER_AGENT=mcp-reddit-agent/0.1",
        "mcp/reddit-mcp:latest"
      ]
    }
  }
}

Example Conversations

Fetch Latest Posts:

"Get the top 5 posts from r/technology"

Search and Comment:

"Search for Python tutorials in r/programming and comment on the top result"

Subreddit Analysis:

"Get information about r/MachineLearning and show me recent posts about transformers"

๐Ÿš€ Deployment & Submission

Docker Registry Submission

This server is ready for submission to the official Docker MCP Registry:

  1. Build and test locally:

    Linux/macOS:

    make build
    make test
    

    Windows:

    .\build.ps1 build
    .\build.ps1 test
    
  2. Push to Docker Hub:

    docker tag mcp/reddit-mcp:latest your-dockerhub-username/reddit-mcp:latest
    docker push your-dockerhub-username/reddit-mcp:latest
    
  3. Update server.json with your repository details

  4. Submit to MCP Registry:

    # Using mcp-publisher CLI
    mcp-publisher init
    mcp-publisher login github
    mcp-publisher publish
    

MCP Registry Requirements โœ…

This server meets all Docker MCP registry requirements:

  • โœ… Docker Label: io.modelcontextprotocol.server.name="reddit-mcp"
  • โœ… STDIO Transport: Uses stdio for MCP communication
  • โœ… Environment Variables: Properly configured secrets and env vars
  • โœ… Server Metadata: Complete server.json with tools definitions
  • โœ… Documentation: Comprehensive README and usage examples
  • โœ… Category: Social (as specified)

Registry Metadata

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ“„ License

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

๐Ÿ†˜ Support

โš ๏ธ Rate Limiting & Best Practices

  • Reddit API has rate limits - respect them
  • Use appropriate delay between requests for bulk operations
  • Follow Reddit's API Terms of Service
  • Be respectful to communities and follow subreddit rules
  • Consider using read-only operations when possible

Ready for MCP Registry Submission ๐Ÿš€

Frequently asked questions

What is Mcp Reddit MCP Server?

This server provides AI agents with tools to fetch, post and search on Reddit.

How do I install Mcp Reddit MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Mcp Reddit MCP Server runs locally from the Docker image mcp/reddit-mcp with the command docker run -i --rm mcp/reddit-mcp.

Is Mcp Reddit MCP Server free and open source?

Yes. Mcp Reddit MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Mcp Reddit MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Mcp Reddit MCP Server. It runs locally on your machine over stdio, started by your MCP client.

How is Mcp Reddit MCP Server's trust score calculated?

Mcp Reddit MCP Server scores 34 out of 100 (Limited). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

โ€”Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server