Skip to main content
Glama
aasper03
by aasper03

reddit-mcp

Headless Reddit MCP server for Cursor. Posts replies using your logged-in Chrome session cookies (via Chrome DevTools Protocol), driving old.reddit.com's comment form.

Reddit's official script OAuth apps are gated behind approval. This uses your own browser session instead.

Tools

Tool

Purpose

reddit_whoami

Current session username

reddit_refresh_session

Pull fresh cookies from CDP Chrome (:9222)

reddit_reply

Reply to a post/comment URL

reddit_test_reply

Harmless test comment on r/test

Related MCP server: chrome-bridge

Requirements

  • Python 3.11+

  • Playwright Chromium

  • Chrome running with remote debugging, logged into Reddit:

    google-chrome --remote-debugging-port=9222 --user-data-dir="$HOME/.config/google-chrome-cdp"

Install

git clone https://github.com/aasper03/reddit-mcp.git ~/.reddit-mcp
cd ~/.reddit-mcp
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
.venv/bin/playwright install chromium
chmod +x run-reddit-mcp.sh

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "reddit": {
      "command": "/home/YOU/.reddit-mcp/run-reddit-mcp.sh",
      "args": []
    }
  }
}

Optional: REDDIT_CDP_URL (default http://127.0.0.1:9222).

CLI

# after install, symlink optional:
ln -sf ~/.reddit-mcp/run-reddit-mcp.sh /dev/null  # MCP only

# or use the client via:
.venv/bin/python -c 'from client import get_username; print(get_username())'

License

MIT — personal automation; follow Reddit's rules. Not affiliated with Reddit.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    C
    maintenance
    Enables interaction with Reddit through the Reddit API, allowing users to search posts, retrieve saved content, fetch comments, reply to comments, and access detailed post information with comment trees.
    4
    -
  • F
    license
    Not graded
    quality
    C
    maintenance
    Provides a direct bridge between Claude and an authenticated Chrome session, enabling fetch requests with session cookies and JavaScript execution within live web pages.
    -
  • A
    license
    Not graded
    quality
    A
    maintenance
    Unofficial open-source MCP bridge that gives Cursor agents hands in your real Chrome browser. Enables navigation, clicking, filling, screenshots, and other browser actions with permission modes.
    8
    MIT