Skip to main content

A Model Context Protocol (MCP) server that provides tools for fetching Reddit content, including frontpage posts, subreddit information and hot posts, post details, and comments.

Project description

MCP Server Reddit

A Model Context Protocol server providing access to Reddit public API for LLMs. This server enables LLMs to interact with Reddit's content, including browsing frontpage posts, accessing subreddit information, and reading post comments.

This server uses redditwarp to interact with Reddit's public API and exposes the functionality through MCP protocol.

Available Tools

  • get_frontpage_posts - Get hot posts from Reddit frontpage

    • Optional arguments:
      • limit (integer): Number of posts to return (default: 10, range: 1-100)
  • get_subreddit_info - Get information about a subreddit

    • Required arguments:
      • subreddit_name (string): Name of the subreddit (e.g. 'Python', 'news')
  • get_subreddit_hot_posts - Get hot posts from a specific subreddit

    • Required arguments:
      • subreddit_name (string): Name of the subreddit (e.g. 'Python', 'news')
    • 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 (e.g. 'Python', 'news')
    • 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 (e.g. 'Python', 'news')
    • 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 (e.g. 'Python', 'news')
    • Optional arguments:
      • limit (integer): Number of posts to return (default: 10, range: 1-100)
  • 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)

Installation

Using uv (recommended)

When using uv no specific installation is needed. We will use uvx to directly run mcp-server-reddit.

Using PIP

Alternatively you can install mcp-server-reddit via pip:

pip install mcp-server-reddit

After installation, you can run it as a script using:

python -m mcp_server_reddit

Configuration

Configure for Claude.app

Add to your Claude settings:

Using uvx
"mcpServers": {
  "reddit": {
    "command": "uvx",
    "args": ["mcp-server-reddit"]
  }
}
Using pip installation
"mcpServers": {
  "reddit": {
    "command": "python",
    "args": ["-m", "mcp_server_reddit"]
  }
}

Configure for Zed

Add to your Zed settings.json:

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

Examples of Questions

  • "What are the current hot posts on Reddit's frontpage"
  • "What are the hot posts in the r/ClaudeAI subreddit"
  • "Tell me about the r/ClaudeAI subreddit"
  • "Who are the moderators of r/ClaudeAI"
  • "Show me the top comments on this Reddit post: [post_url]"
  • "Get the full content and discussion of this Reddit post: [post_url]"

Debugging

You can use the MCP inspector to debug the server. For uvx installations:

npx @modelcontextprotocol/inspector uvx mcp-server-reddit

Or if you've installed the package in a specific directory or are developing on it:

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

License

mcp-server-reddit is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_reddit-0.2.0.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_reddit-0.2.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_reddit-0.2.0.tar.gz.

File metadata

  • Download URL: mcp_server_reddit-0.2.0.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.7

File hashes

Hashes for mcp_server_reddit-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0b29e4bc2e75ba222d65395f8d845380dc5c363bdfb16e0cfaa1fbce7c8182f4
MD5 1694b8c50b4a000234cbd0fd3782c72d
BLAKE2b-256 51a47e65ba402a12bf3b17badd04e23c72afb2d7a8103cd41b4f608dba57fd9a

See more details on using hashes here.

File details

Details for the file mcp_server_reddit-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_reddit-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0524041fdf9e3cbbcde5b4f082c373424d8039498557aa94f278575614cf382a
MD5 0932095f4212b20bcd680bee89d977b6
BLAKE2b-256 72b73d3ec6afb45738a1f1db476403ca311e8fbe12ff1cf941d6b422d4900f3e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page