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: reddit-agent-publisher

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
    -
  • A
    license
    A
    quality
    A
    maintenance
    Enables browsing Reddit, searching posts, reading comment threads and user history, with opt-in posting and voting through the Reddit API.
    14
    11 npm
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Local MCP server and Chrome/Edge extension that let AI assistants use your existing signed-in browser sessions on Reddit and Zhihu. Provides 54 site operations through three stable MCP tools, with on-demand operation discovery, compact structured results, and pagination; requires Node.js 22+ and the companion extension on the same computer.
    3
    1
    MIT