Skip to main content

MCP server that exposes Reddit browsing and posting to AI agents via PRAW.

Project description

Reddit Explorer MCP

An MCP server that gives AI agents read and write access to Reddit via PRAW. Run it locally with uvx — no clone required.

Features

Read (works in read-only mode):

  • search_reddit — full-text search across all of Reddit or a single subreddit (supports flair:, author:, self: syntax)
  • get_subreddit_posts — hot / new / top / controversial / rising listings, with optional flair filter
  • get_subreddit_flairs — list available post flairs
  • get_subreddit_info — metadata, rules, moderators
  • get_submission / get_post_comments — full post details and threaded comment trees
  • get_redditor_info — user profile + optional recent activity
  • get_front_page / get_popular / get_all — front-page / popular / all listings
  • search_subreddits / get_default_subreddits

Write (requires authenticated credentials):

  • submit_post — submit a text or link post
  • submit_comment — comment on a post or reply to a comment
  • vote — upvote / downvote / clear
  • save_post — save / unsave
  • get_authenticated_user

Quick start

  1. Create a Reddit app at https://www.reddit.com/prefs/apps (type: script).

  2. Set credentials in your environment or a .env file (see .env.example):

    REDDIT_CLIENT_ID=...
    REDDIT_CLIENT_SECRET=...
    REDDIT_USER_AGENT=reddit-explorer-mcp/0.1 by <your_username>
    # Optional, for write access:
    REDDIT_USERNAME=...
    REDDIT_PASSWORD=...
    
  3. Run with uvx (stdio transport, the default for local MCP clients):

    uvx reddit-explorer-mcp
    

    Or run an HTTP server:

    uvx reddit-explorer-mcp --transport http --host 0.0.0.0 --port 8000
    

Client configuration

Claude Desktop / Claude Code (stdio)

{
  "mcpServers": {
    "reddit": {
      "command": "uvx",
      "args": ["reddit-explorer-mcp"],
      "env": {
        "REDDIT_CLIENT_ID": "...",
        "REDDIT_CLIENT_SECRET": "...",
        "REDDIT_USER_AGENT": "reddit-explorer-mcp/0.1 by <your_username>"
      }
    }
  }
}

HTTP transport

{
  "mcpServers": {
    "reddit": {
      "url": "http://localhost:8000/mcp"
    }
  }
}

Development

uv sync
uv run reddit-mcp --help
uv run pytest

License

MIT

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

reddit_explorer_mcp-0.1.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

reddit_explorer_mcp-0.1.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file reddit_explorer_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: reddit_explorer_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for reddit_explorer_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 eaa3e2792dc208c654a8120ee6dab984a471e44276767feff530355632cec276
MD5 9b0f4e321f9d2153ebddaeb1045352f7
BLAKE2b-256 45a43109e40acf0e7895a96fa785acaedf76fbd8f959e5404cc50baf2a7b4a8d

See more details on using hashes here.

File details

Details for the file reddit_explorer_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: reddit_explorer_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for reddit_explorer_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc561a03524fc78350d2781ce399c321fe30aa39cdb03fb7b24779d1fca3cda1
MD5 8b59852ad375b9049234545526e04a4d
BLAKE2b-256 0fa191d7d4c213cfcff6e0c64231fa0771cbfb639da1fdf27a7e4b3ebef808c9

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