reddit-mcp-mod
Provides tools for Reddit moderation, including reading posts and comments, posting and replying, reviewing the mod queue, approving/removing content, resolving reports, and managing users (ban/mute) through the Reddit API.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@reddit-mcp-mod show me the mod queue for r/mysubreddit"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
reddit-mcp-mod
A Model Context Protocol (MCP) stdio server exposing Reddit moderation as tools: reading posts/comments, posting/replying, reviewing the mod queue, approving/removing content, resolving reports, and managing users (ban/mute).
Entry point:
src/index.ts→ compiled todist/index.js(binary name:reddit-mcp-mod)SDK:
@modelcontextprotocol/sdkNode: >= 24
Auth: Reddit OAuth2 refresh-token flow (works with 2FA-enabled mod accounts; never stores your password)
Setup
1. Create a Reddit app
Go to reddit.com/prefs/apps, click "create app", and choose type web app (not "script" — web apps get a client_secret and support permanent refresh tokens). Set the redirect URI to http://localhost:65010/callback (or a custom port, see --port below).
2. Install and build
pnpm install
pnpm build3. Mint a refresh token (one-time)
node dist/index.js authorize \
--client_id <your_client_id> \
--client_secret <your_client_secret> \
--user_agent "windows:reddit-mcp-mod:0.1.0 (by /u/yourusername)"This opens your browser, walks you through Reddit's consent screen, and prints a JSON block with REDDIT_CLIENT_ID, REDDIT_CLIENT_SECRET, REDDIT_REFRESH_TOKEN, and REDDIT_USER_AGENT. Save these as environment variables — the refresh token grants ongoing access to the account, so keep it secret.
4. Run the server
REDDIT_CLIENT_ID=... REDDIT_CLIENT_SECRET=... REDDIT_REFRESH_TOKEN=... REDDIT_USER_AGENT=... \
node dist/index.js --subreddits=mysubredditBy default both --allow_writes and --allow_mod_actions are off, so the server starts read-only. Enable them once you've confirmed reads work.
Related MCP server: Reddit MCP Server
Configuration
Auth
Supply client_id, client_secret, refresh_token, and user_agent via:
Environment variables (recommended — keeps secrets out of
argv):REDDIT_CLIENT_ID,REDDIT_CLIENT_SECRET,REDDIT_REFRESH_TOKEN,REDDIT_USER_AGENTCLI flags:
--client_id,--client_secret,--refresh_token,--user_agentA
--profile <path.json>file (see below)
user_agent should follow Reddit's recommended format <platform>:<app id>:<version> (by /u/<username>) — Reddit throttles non-compliant user agents. The server logs a warning at startup if the format doesn't match, but doesn't block startup.
Write & moderation safety
Two independent gates, since posting content and banning users have very different blast radii:
--allow_writes(default: false) — enablesreddit_submit_post,reddit_reply,reddit_edit_content,reddit_delete_content.--allow_mod_actions(default: false) — enablesreddit_approve,reddit_remove,reddit_lock,reddit_unlock,reddit_ignore_reports,reddit_unignore_reports,reddit_ban_user,reddit_unban_user,reddit_mute_user,reddit_unmute_user.
Gated tools are not registered at all when their flag is off (they won't appear in the MCP client's tool list), rather than being registered and erroring at call time.
Subreddit allowlist
--subreddits sub1,sub2— restricts every subreddit-scoped tool call to the listed subreddits (case-insensitive,r/prefix optional). Calls against any other subreddit are rejected before hitting Reddit's API.Default:
*(unrestricted). The server logs a warning at startup when unrestricted.
Flags & defaults
Flag | Default | Description |
|
| Enable posting/replying/editing/deleting |
|
| Enable approve/remove/lock/ban/mute/report actions |
|
| Allowlist of subreddits the server may act on |
|
| Per-request timeout |
|
|
|
| — | JSON file supplying any of the above (CLI flags and env vars take precedence) |
Profile file
{
"client_id": "<redacted>",
"client_secret": "<redacted>",
"refresh_token": "<redacted>",
"user_agent": "windows:reddit-mcp-mod:0.1.0 (by /u/yourusername)",
"allow_writes": false,
"allow_mod_actions": true,
"subreddits": ["mysubreddit"]
}Tools
Reading (always registered)
reddit_get_post, reddit_get_comment, reddit_list_posts, reddit_search, reddit_get_user, reddit_list_user_activity
Posting (requires --allow_writes)
reddit_submit_post, reddit_reply, reddit_edit_content, reddit_delete_content
Mod queue (listings always registered; actions require --allow_mod_actions)
reddit_get_modqueue, reddit_get_unmoderated, reddit_get_spam, reddit_get_edited, reddit_approve, reddit_remove, reddit_lock, reddit_unlock
Reports (reddit_get_reports always registered; actions require --allow_mod_actions)
reddit_get_reports, reddit_ignore_reports, reddit_unignore_reports
Users (list tools always registered; actions require --allow_mod_actions)
reddit_ban_user, reddit_unban_user, reddit_mute_user, reddit_unmute_user, reddit_list_banned, reddit_list_muted, reddit_list_moderators
Mod log
reddit_get_modlog
All tools return strict JSON (no Markdown) via a content[0].text payload, and use cursor-based pagination (after/meta.next_cursor) matching Reddit's own API, not offset-based pagination.
Use in an MCP client (Claude Desktop / Claude Code)
{
"mcpServers": {
"reddit-mod": {
"command": "node",
"args": ["/absolute/path/to/reddit-mcp-mod/dist/index.js", "--subreddits=mysubreddit"],
"env": {
"REDDIT_CLIENT_ID": "...",
"REDDIT_CLIENT_SECRET": "...",
"REDDIT_REFRESH_TOKEN": "...",
"REDDIT_USER_AGENT": "windows:reddit-mcp-mod:0.1.0 (by /u/yourusername)"
}
}
}
}Use with Open WebUI (via mcpo)
mcpo is Open WebUI's MCP-to-OpenAPI proxy. It's language-agnostic — it spawns any stdio MCP server as a subprocess and exposes an OpenAPI/HTTP surface on top, so this Node/TypeScript server works with it out of the box:
uvx mcpo --port 8000 -- node /absolute/path/to/reddit-mcp-mod/dist/index.js --subreddits=mysubredditSet the Reddit env vars (REDDIT_CLIENT_ID, REDDIT_CLIENT_SECRET, REDDIT_REFRESH_TOKEN, REDDIT_USER_AGENT) in the shell before running mcpo, or via an mcpo config file using the same mcpServers shape shown above. Once running, http://localhost:8000/docs lists one OpenAPI operation per tool — point Open WebUI's tool server settings at http://localhost:8000.
Development
pnpm install
pnpm build # tsc -> dist/
pnpm typecheck # tsc --noEmit
pnpm lint # eslint src
pnpm test # node --test against dist/test/**/*.js (run pnpm build first)Tests mock RedditClient/fetch directly — no live network calls or real Reddit credentials are required to run the suite.
License
MIT
Available Tools
15 toolsreddit_get_commentGet CommentA
Fetch a single Reddit comment by id. Returns JSON with the comment's body, author, score, and permalink.
Inputs: comment_id (required).
reddit_get_editedGet Edited QueueA
List posts and comments in a subreddit that were edited by their author after posting. Returns JSON with items (kind: post|comment) and meta (limit, has_more, next_cursor).
Inputs: subreddit (required), only, after, limit.
reddit_get_modlogGet Mod LogA
List recent moderation actions taken in a subreddit. Returns JSON with items and meta (limit, has_more, next_cursor).
Inputs: subreddit (required), mod, type, after, +1 more.
reddit_get_modqueueGet Mod QueueA
List posts and comments awaiting moderator review in a subreddit's mod queue (reported or otherwise flagged items). Returns JSON with items (kind: post|comment) and meta (limit, has_more, next_cursor). Use reddit_approve/reddit_remove with an item's fullname to act on it.
Inputs: subreddit (required), only, after, limit.
reddit_get_postGet PostA
Fetch a Reddit post (submission) by id along with its comments (top-level comments include one nested level of replies). Returns JSON with post and comments.
Inputs: post_id (required), comment_sort, comment_limit.
reddit_get_reportsGet ReportsA
List posts and comments in a subreddit that have been reported by users or AutoModerator. Returns JSON with items (kind: post|comment, including num_reports/report_reasons) and meta (limit, has_more, next_cursor). Use reddit_ignore_reports/reddit_unignore_reports to manage further reporting, or reddit_approve/reddit_remove to resolve.
Inputs: subreddit (required), only, after, limit.
reddit_get_spamGet Spam QueueA
List posts and comments in a subreddit that have been removed as spam (by AutoModerator, spam filter, or a moderator). Returns JSON with items (kind: post|comment) and meta (limit, has_more, next_cursor).
Inputs: subreddit (required), only, after, limit.
reddit_get_unmoderatedGet Unmoderated QueueA
List posts in a subreddit that have not yet been approved or removed by a moderator. Returns JSON with items (kind: post|comment) and meta (limit, has_more, next_cursor).
Inputs: subreddit (required), only, after, limit.
reddit_get_userGet UserA
Fetch a Reddit user's public profile info (karma, account age, suspension status). Returns JSON with the user.
Inputs: username (required).
reddit_list_bannedList Banned UsersA
List users banned from a subreddit. Returns JSON with items (name, date, note, days_left).
Inputs: subreddit (required), user, limit.
reddit_list_moderatorsList ModeratorsA
List the moderators of a subreddit and their permissions. Returns JSON with items (name, mod_permissions, date).
Inputs: subreddit (required).
reddit_list_mutedList Muted UsersA
List users muted from sending modmail to a subreddit. Returns JSON with items (name, date, note).
Inputs: subreddit (required), user, limit.
reddit_list_postsList Subreddit PostsA
List posts from a subreddit (hot/new/top/rising/controversial). Returns JSON with posts and meta (limit, has_more, next_cursor).
Inputs: subreddit (required), after, limit, listing, +1 more.
reddit_list_user_activityList User ActivityA
List a user's recent posts and/or comments. Returns JSON with items (kind: post|comment) and meta (limit, has_more, next_cursor).
Inputs: username (required), sort, type, after, +1 more.
reddit_searchSearch RedditA
Search posts on Reddit, optionally restricted to one subreddit. Returns JSON with posts and meta (limit, has_more, next_cursor).
Inputs: query (required), sort, after, limit, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Each tool targets a distinct resource or view: individual comments/posts, subreddit post listing, search, user profiles, user activity, and each moderation queue (modqueue, unmoderated, spam, edited, reports) with clear descriptions. No two tools appear to do the same thing.
All tools share the reddit_ prefix and follow a consistent verb_noun pattern: reddit_get_*, reddit_list_*, reddit_search. The naming style is uniform snake_case, making the set predictable and easy to navigate.
Fifteen tools is within the ideal 3-15 range and appropriate for a Reddit moderation server that covers content retrieval, user info, and various moderation queues. The number feels commensurate with the purpose.
The server is positioned as a moderation tool, yet it contains only read-only operations. The modqueue description explicitly references reddit_approve/reddit_remove actions that are not included, leaving agents unable to take any moderation action. This is a severe gap that undermines the server's core purpose.
Maintenance
Related MCP Connectors
Browse and manage Reddit posts, comments, and threads. Fetch user activity, explore hot/new/rising…
Reddit API as 61 MCP tools: search, subreddits, posts, comments, users, monitors, writes, feedback.
Reddit posts, full comment trees, searches, subreddits and users, as JSON or Markdown for LLMs.
Read-only Reddit search API for AI agents: posts, comments, comment trees, subreddit rules.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides access to Reddit's API for retrieving posts, comments, user information, and search functionality. Supports multiple authentication methods and comprehensive Reddit data operations including subreddit browsing, post retrieval, and user profile access.91,609 npm1MIT
- AlicenseAqualityDmaintenanceEnables interaction with Reddit through a comprehensive API interface supporting both read-only operations (browsing posts, comments, user profiles) and authenticated actions (posting, commenting, voting) via OAuth2 authentication.7MIT
- AlicenseCqualityDmaintenanceEnables comprehensive Reddit interaction including fetching posts, analyzing users and subreddits, searching content, and creating posts/comments. Supports both read-only mode with client credentials and full functionality with user authentication.171,609 npmMIT
- FlicenseNot gradedqualityCmaintenanceEnables 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-