Prerequisites
- A Reddit account and a Reddit app (script or web app type)
- OAuth client ID, client secret, and refresh token for the posting account
- Moderator or posting permissions on target subreddits
- A descriptive User-Agent string (Reddit requires unique app identification)
- project_contributor access in AgentRuntime
Connect in AgentRuntime
Create a Reddit application
At reddit.com/prefs/apps, create an app and note the client ID (under the app name) and client secret.
Obtain a refresh token
Complete the OAuth authorization code flow for the Reddit account that will post or comment. Store the refresh token securely.
Create a connection
Go to Connections and click New custom connection to create a connection with
ClientID, ClientSecret, RefreshToken, and UserAgent (e.g. agentruntime:workflow:v1.0 (by /u/yourname)).Add reddit MCP instance
Go to MCP, click Add instance for reddit, wire your connection on Instance config, set the profile active, and save.
Always use human_task approval before
create_reddit_post or create_reddit_comment in production subreddits. Respect subreddit rules and Reddit API rate limits.What you can build
- Community monitoring — Scheduled
fetch_post_comments→ LLM sentiment summary → alert on negative trends. - Approved publishing — Draft post in workflow → human_task →
create_reddit_postas self or link post. - Support triage —
get_reddit_post_detailson mentions → create ClickUp or GitLab ticket from thread context. - Thread cleanup —
edit_reddit_post_or_commentordelete_reddit_post_or_commentafter moderation review.
Tools
| Tool | Description |
|---|---|
retrieve_reddit_post | Get a post by ID or fullname (t3_...) |
get_reddit_post_details | Detailed post metadata by ID or fullname |
fetch_post_comments | Comments for a post in a subreddit |
create_reddit_post | Create a self (text) or link post in a subreddit |
create_reddit_comment | Reply to a post or comment (thing_id) |
edit_reddit_post_or_comment | Edit post or comment text |
delete_reddit_post_or_comment | Delete a post or comment |
reddit_custom_api_call | Raw authenticated Reddit OAuth API request |
Example
Post a link after human approval:Configuration
| Key | Required | Description |
|---|---|---|
ClientID | Yes | Reddit application client ID |
ClientSecret | Yes | Reddit application client secret |
RefreshToken | Yes | OAuth refresh token for the authenticated user |
UserAgent | No | Unique User-Agent string (strongly recommended) |
RequestTimeoutSecond | No | HTTP timeout in seconds |
OAuthBaseURL | No | Reddit OAuth API base URL |
TokenURL | No | OAuth token endpoint |
Troubleshooting
| Issue | Fix |
|---|---|
401 / token errors | Refresh token revoked; re-run OAuth flow |
403 on post | Account lacks karma, subreddit restrictions, or mod approval required |
| Rate limiting | Reddit enforces per-account limits; add delays between automated posts |
| Wrong parent on comment | Use fullname format: t3_ for posts, t1_ for comments |
Related
- Integrations quickstart
- Human tasks — approval before posting
- Connector catalog
- Troubleshooting