Skip to main content
Glama
reddit-mcp
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: mcp-reddit

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.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    Enables browsing Reddit, searching posts, reading comment threads and user history, with opt-in posting and voting through the Reddit API.
    14
    8 npm
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    Enables MCP-compatible AI assistants to drive the user's real, already-logged-in Chrome browser locally, so they can read and summarize pages, click, type, fill and submit forms, navigate tabs, and capture screenshots with full access to existing sessions. It also exposes cookies, storage, console, network capture, and emulation capabilities without opening a remote-debugging port or sending data off the machine.
    1 npm
    ISC