Reddit MCP server

Integrates with Reddit's API to fetch and retrieve diverse content including posts, comments, and subreddit information for data analysis and content curation.
Back to servers
Setup instructions
Provider
Hawstein
Release date
Feb 06, 2025
Language
Python
Package
Stats
124.9K downloads
84 stars

The MCP Server Reddit provides access to Reddit's public API for LLMs, allowing them to browse frontpage posts, access subreddit information, and read comments through the Model Context Protocol.

Installation Options

Using Clinde (Recommended)

The easiest installation method is through the Clinde desktop app:

  1. Open the Clinde app
  2. Navigate to the Servers page
  3. Find mcp-server-reddit and click Install

Using uv

With uv, you can run mcp-server-reddit directly:

uvx mcp-server-reddit

Using PIP

Install via pip:

pip install mcp-server-reddit

After installation, run it as:

python -m mcp_server_reddit

Using Smithery

For Claude Desktop, install automatically via Smithery:

npx -y @smithery/cli install @Hawstein/mcp-server-reddit --client claude

Configuration

For Claude.app

Add to your Claude settings:

If using uvx:

"mcpServers": {
  "reddit": {
    "command": "uvx",
    "args": ["mcp-server-reddit"]
  }
}

If using pip installation:

"mcpServers": {
  "reddit": {
    "command": "python",
    "args": ["-m", "mcp_server_reddit"]
  }
}

For Zed

Add to your Zed settings.json:

If using uvx:

"context_servers": [
  "mcp-server-reddit": {
    "command": "uvx",
    "args": ["mcp-server-reddit"]
  }
],

If using pip installation:

"context_servers": {
  "mcp-server-reddit": {
    "command": "python",
    "args": ["-m", "mcp_server_reddit"]
  }
},

Available Tools

Frontpage Access

  • get_frontpage_posts - Get hot posts from Reddit frontpage
    • Optional arguments:
      • limit (integer): Number of posts to return (default: 10, range: 1-100)

Subreddit Information

  • get_subreddit_info - Get information about a subreddit
    • Required arguments:
      • subreddit_name (string): Name of the subreddit (e.g. 'Python', 'news')

Subreddit Posts

  • get_subreddit_hot_posts - Get hot posts from a specific subreddit

    • Required arguments:
      • subreddit_name (string): Name of the subreddit
    • Optional arguments:
      • limit (integer): Number of posts to return (default: 10, range: 1-100)
  • get_subreddit_new_posts - Get new posts from a specific subreddit

    • Required arguments:
      • subreddit_name (string): Name of the subreddit
    • Optional arguments:
      • limit (integer): Number of posts to return (default: 10, range: 1-100)
  • get_subreddit_top_posts - Get top posts from a specific subreddit

    • Required arguments:
      • subreddit_name (string): Name of the subreddit
    • Optional arguments:
      • limit (integer): Number of posts to return (default: 10, range: 1-100)
      • time (string): Time filter for top posts (default: '', options: 'hour', 'day', 'week', 'month', 'year', 'all')
  • get_subreddit_rising_posts - Get rising posts from a specific subreddit

    • Required arguments:
      • subreddit_name (string): Name of the subreddit
    • Optional arguments:
      • limit (integer): Number of posts to return (default: 10, range: 1-100)

Post Content and Comments

  • get_post_content - Get detailed content of a specific post

    • Required arguments:
      • post_id (string): ID of the post
    • Optional arguments:
      • comment_limit (integer): Number of top-level comments to return (default: 10, range: 1-100)
      • comment_depth (integer): Maximum depth of comment tree (default: 3, range: 1-10)
  • get_post_comments - Get comments from a post

    • Required arguments:
      • post_id (string): ID of the post
    • Optional arguments:
      • limit (integer): Number of comments to return (default: 10, range: 1-100)

Examples of Questions

You can ask your LLM the following types of questions:

  • "What are the current hot posts on Reddit's frontpage?"
  • "Tell me about the r/ClaudeAI subreddit"
  • "What are the hot posts in the r/ClaudeAI subreddit?"
  • "Show me the newest posts from r/ClaudeAI"
  • "What are the top posts of all time in r/ClaudeAI?"
  • "What posts are trending in r/ClaudeAI right now?"
  • "Get the full content and comments of this Reddit post: [post_url]"
  • "Summarize the comments on this Reddit post: [post_url]"

Debugging

Use the MCP inspector for debugging:

npx @modelcontextprotocol/inspector uvx mcp-server-reddit

For specific directory installations or development:

cd path/to/mcp_server_reddit
npx @modelcontextprotocol/inspector uv run mcp-server-reddit

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "reddit" '{"command":"python","args":["-m","mcp_server_reddit"]}'

See the official Claude Code MCP documentation for more details.

For 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 > Tools & Integrations and click "New MCP Server".

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

{
    "mcpServers": {
        "reddit": {
            "command": "python",
            "args": [
                "-m",
                "mcp_server_reddit"
            ]
        }
    }
}

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 explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "reddit": {
            "command": "python",
            "args": [
                "-m",
                "mcp_server_reddit"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

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