Protect your Reddit account from spam detection and bans with built-in safeguards. Enabled by default (standard mode) per Reddit's Responsible Builder Policy.
Why Use Safe Mode?
Reddit's spam detection can flag accounts for:
Rapid posting or commenting
Duplicate or similar content
Posting the same content across multiple subreddits
Non-standard User-Agent strings
Safe Mode helps prevent these issues automatically.
Mode Options
Mode
Write Delay
Duplicate Detection
Use Case
off
None
No
Explicit opt-out only
standard
2 seconds
Last 10 items + cross-sub
Default, recommended
strict
5 seconds
Last 20 items + cross-sub
For cautious automated posting
Disable Safe Mode
Safe mode is enabled by default. To explicitly disable:
bash
export REDDIT_SAFE_MODE=off
npx reddit-mcp-server
What Safe Mode Does
Rate Limiting: Enforces minimum delays between write operations
Duplicate Detection: Blocks identical content from being posted twice
Cross-Subreddit Detection: Prevents posting the same content to multiple subreddits (per Reddit policy)
Smart User-Agent: Auto-generates Reddit-compliant User-Agent format when username is provided
Bot Disclosure
Reddit's Responsible Builder Policy requires bots to disclose their automated nature. Enable automatic bot footers on all posted content:
Anonymous mode does not work on every network. Reddit blocks unauthenticated requests from many IP ranges โ datacenters, cloud hosts, VPNs, and addresses it has flagged โ and answers with an HTTP 403 block page. If you hit this, tools fail with:
code
Reddit is blocking unauthenticated requests from this network (HTTP 403 with a
block page). Set REDDIT_CLIENT_ID and REDDIT_CLIENT_SECRET to authenticate with
OAuth, which also raises the rate limit from ~10 to 60+ requests/min.
The fix is OAuth credentials โ see the next section. This is a property of your network, not of your Reddit account or the subreddit you asked for, so it affects every tool at once. A 403 on a single subreddit while others work is a different thing: that subreddit is private or quarantined.
pnpm install # Install dependencies
pnpm build # Build TypeScript
pnpm dev # Build and run MCP inspector
pnpm test# Run tests
pnpm lint # Lint code
pnpm format # Format code
CLI Options
bash
npx reddit-mcp-server --version # Show version
npx reddit-mcp-server --help# Show help
npx reddit-mcp-server --generate-token # Generate OAuth token for HTTP mode
HTTP Server Mode
For Docker deployments or web-based clients, use HTTP transport: