Reddit MCP Server

Read-only and authenticated access to Reddit content and interactions.

README.md

reddit-mcp

MCP server for Reddit. Read-only mode works out of the box with no setup. Write mode requires a session cookie and comes with risks.

Read-Only Mode (No Setup Required)

Reading from Reddit requires no credentials. Just install and use:

pip install reddit-mcp-noapi

The read tools (reddit_read, reddit_listing, reddit_search) fetch public JSON from old.reddit.com. This is identical to viewing Reddit in a browser — no login required.

Note: Feeding Reddit content to AI probably violates Reddit's ToS. However, read-only access is indistinguishable from normal browsing, so there's no practical risk — Reddit can't tell the difference between you reading a post and Claude reading it.

MCP Config (Read-Only)

{
  "mcpServers": {
    "reddit": {
      "command": "reddit-mcp"
    }
  }
}

CLI Examples (Read-Only)

# Read a post with comments
reddit read https://reddit.com/r/LocalLLaMA/comments/abc123/post_title

# List subreddit posts
reddit listing LocalLLaMA --limit 10

# Search
reddit search LocalLLaMA "llama 3"

Write Mode (Session Cookie Required)

⚠️ Read this before proceeding.

Write mode lets you post comments, submit posts, vote, and check your inbox. It works by using session cookies from your browser.

The Risk

This violates Reddit's Terms of Service. Reddit severely restricted API access in 2023 and stopped issuing new free API keys entirely in December 2025. Using automation to bypass their API restrictions is explicitly against their rules.

If Reddit detects automated access on your account, your account may be permanently banned. There's no way to predict if or when this will happen.

If You Accept the Risk

Option 1: Auto-Import from Browser (Recommended)

If you're logged into Reddit in your browser, the CLI can import your session automatically:

# Auto-detect browser
reddit auth

# Or specify a browser
reddit auth --browser firefox
reddit auth --browser chrome

This extracts the reddit_session cookie and saves it to ~/.config/reddit-mcp/session.json.

Supported browsers:

Browser Linux macOS Windows
Firefox
Chrome
Chromium
Safari ?
Edge
Opera
Brave

✓ = supported, ? = untested, — = not applicable

Notes:

  • Snap and Flatpak installations of Chrome/Chromium are supported on Linux
  • Chrome-based browsers may prompt for keychain/keyring access to decrypt cookies
  • Safari support is untested — please report if it works (or doesn't)

Using different accounts: If you use different browsers for different Reddit accounts, specify the browser:

# Main account in Firefox
reddit auth --browser firefox

# Alt account in Chromium (use different session directory)
REDDIT_SESSION_DIR=~/.config/reddit-mcp-alt reddit auth --browser chromium
Option 2: Manual Cookie Export

If auto-import doesn't work:

  1. Log into Reddit in your browser
  2. Open DevTools (F12) → Application → Cookies → https://www.reddit.com
  3. Find the cookie named reddit_session
  4. Copy its value (it's a long JWT string starting with eyJ...)
  5. Create ~/.config/reddit-mcp/session.json:
{
  "cookies": {
    "reddit_session": "eyJhbGciOiJS... (your full cookie value here)"
  },
  "username": "your_reddit_username"
}

Note: Manual setup doesn't support auto-refresh. When your cookie expires, you'll need to repeat these steps. Use reddit auth if you want automatic refresh.

(Optional) Override the Session Location

By default, the session is stored in ~/.config/reddit-mcp/. You can override this in your MCP config if you want Claude to use a different Reddit account than your CLI default, or if you're running multiple instances with different accounts:

{
  "mcpServers": {
    "reddit": {
      "command": "reddit-mcp",
      "env": {
        "REDDIT_SESSION_DIR": "/path/to/session/directory"
      }
    }
  }
}

How Write Mode Works

  1. Write operations load the session cookie from ~/.config/reddit-mcp/session.json
  2. The cookie is used to authenticate with old.reddit.com
  3. When the cookie expires, reddit-mcp automatically re-imports from the same browser

Reddit session cookies last a long time (months), so refreshes are rare. If auto-refresh fails (e.g., you logged out of the browser), just run reddit auth again.

Write Tools

Tool Description
reddit_inbox Check replies, mentions, messages
reddit_comment Reply to a post or comment
reddit_submit Submit a new post
reddit_vote Upvote/downvote
reddit_delete Delete your own content

CLI Examples (Write Mode)

# Check inbox
reddit inbox
reddit inbox --unread

Tools 8

reddit_readRead a post with comments
reddit_listingList subreddit posts
reddit_searchSearch for posts in a subreddit
reddit_inboxCheck replies, mentions, and messages
reddit_commentReply to a post or comment
reddit_submitSubmit a new post
reddit_voteUpvote or downvote content
reddit_deleteDelete your own content

Environment Variables

REDDIT_SESSION_DIRPath to the directory containing session.json for authenticated write access

Try it

List the top 10 posts from the r/LocalLLaMA subreddit.
Search for recent discussions about 'llama 3' in the r/LocalLLaMA subreddit.
Read the comments on this Reddit post: https://reddit.com/r/LocalLLaMA/comments/abc123/post_title
Check my Reddit inbox for any unread replies or mentions.
Upvote the post with ID abc123.

Frequently Asked Questions

What are the key features of Reddit MCP?

Read-only access to Reddit posts and comments without authentication. Authenticated write access for posting, commenting, and voting. Automatic session cookie import from major web browsers. Support for multiple Reddit accounts via session directory overrides. Inbox management for checking replies and messages.

What can I use Reddit MCP for?

Summarizing long Reddit discussion threads using Claude. Automating research by searching specific subreddits for technical topics. Managing Reddit interactions directly from the Claude desktop interface. Monitoring community feedback on specific projects via inbox tools.

How do I install Reddit MCP?

Install Reddit MCP by running: pip install reddit-mcp-noapi

What MCP clients work with Reddit MCP?

Reddit MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Reddit MCP docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Open Conare