Reddit MCP server

Provides read-only access to Reddit content through PRAW for searching subreddits, retrieving posts and comments, and analyzing discussion trends
Back to servers
Provider
Gridfire AI
Release date
Mar 25, 2025
Language
Python
Package
Stats
2.1K downloads
13 stars

This MCP server enables you to browse, search, and read Reddit content through various AI platforms by implementing the Model Context Protocol. The server uses the reliable PRAW library and includes detailed parameter validation.

Installation

Prerequisites: Reddit API Credentials

Before you can use the Reddit MCP server, you'll need to obtain Reddit API credentials:

  1. Create a developer app in your Reddit account at https://www.reddit.com/prefs/apps
  2. This will provide you with a client_id and client_secret that you'll need for configuration

Installing with Claude Desktop

To set up the Reddit MCP server with Claude Desktop:

  1. Follow the instructions at https://modelcontextprotocol.io/quickstart/user until you reach "Open up the configuration file in any text editor"
  2. Add the server configuration to your config file using one of the following methods:

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 to your configuration file:

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

Usage

The Reddit MCP server provides several tools that allow you to interact with Reddit content:

Available Tools

Tool Name Description
get_comment Retrieves a specific Reddit comment
get_comments_by_submission Gets all comments for a particular submission
get_submission Retrieves a specific Reddit post/submission
get_subreddit Accesses a subreddit by its name
search_posts Searches for posts within a specific subreddit
search_subreddits Searches for subreddits by name or description

Using with Other MCP Clients

You can use this server with any MCP client, including various agent frameworks like LangChain, LlamaIndex, and AutoGen.

Important Notes

  • Currently, only read features are supported (no posting, commenting, or voting capabilities)
  • Using these tools consumes tokens. Claude Pro users can make more tool calls, while free tier users should be mindful of their usage
  • The server includes built-in rate limiting protection through the PRAW library

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later