Skip to main content

Reddit API Hub: Manage posts, comments & subreddits via server-sent events

Workflow preview

Workflow preview
100%
Reddit API Hub: Manage posts, comments & subreddits via server-sent events preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Reddit Content Operations via MCP Server ‍ Who is this for? This workflow is built for content creators, marketers, Reddit automation enthusiasts, and AI agent developers who want structured...

Best for

  • Social Media automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.mcptrigger, n8n-nodes-base.executeworkflowtrigger, n8n-nodes-base.reddit, n8n-nodes-base.switch, @n8n/n8n-nodes-langchain.toolworkflow, n8n-nodes-base.set, n8n-nodes-base.splitout, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Simeon.

Original n8n.io source

1.1 Workflow description

Title
Reddit API Hub: Manage posts, comments & subreddits via server-sent events
Workflow name
Reddit API Hub: Manage posts, comments & subreddits via server-sent events

🔄 Reddit Content Operations via MCP Server

🧑‍💼 Who is this for?

This workflow is built for content creators, marketers, Reddit automation enthusiasts, and AI agent developers who want structured, programmable access to Reddit content. If you're researching niche communities, tracking trends, or automating Reddit engagement — this is for you.

💡 What problem is this workflow solving?

Reddit has valuable content scattered across subreddits, but manual analysis or engagement is inefficient. This workflow acts as a centralized API interface to:

  • Query and manage Reddit posts
  • Create, fetch, delete, and reply to comments
  • Analyze subreddit metadata and behavior
  • Enable AI agents to autonomously operate on Reddit data

It does this using an MCP (Model Context Protocol) Server over Server-Sent Events (SSE).

⚙️ What this workflow does

This template sets up a custom MCP Server that listens for JSON-based operation commands sent via SSE. Based on the operation, it routes the request to one of the following branches:

🟥 Post CRUD
  • Create a new Reddit post
  • Search posts across subreddits
  • Fetch posts by ID
  • Delete existing posts
🟩 Comment CRUD
  • Create or reply to comments
  • Fetch multiple comments from posts
  • Delete specific comments
🟦 Subreddit Read Operations
  • Get information about subreddits
  • List subreddit posts
  • Retrieve subreddit rules

🛠 Setup

  1. Import this workflow into your self-hosted n8n instance.
  2. Configure Reddit credentials (OAuth2).
  3. Connect your input system to the MCP Server Trigger node via SSE.
  4. Send operation payloads to the server like this:
{
  "operation": "post_search",
  "params": {
    "query": "AI agents",
    "subreddit": "machinelearning"
  }
}
The workflow will route to the appropriate node based on operation type.

🧩 Supported Operations
post_create

post_get_many

post_search

post_delete

post_get_by_id

comment_create

comment_reply

comment_get_many

comment_delete

subreddit_get_about

subreddit_get_many

subreddit_get_rules

🧠 How to customize this workflow to your needs

Add new operations to the operation_switch node for additional API functionality.

Chain results into Notion, Slack, Airtable, or external APIs.

Integrate with OpenAI/GPT to summarize posts or filter content.

Add logic to score and sort content by engagement, sentiment, or keywords.

🟨 Sticky Notes

Each operation group is color-coded (Posts, Comments, Subreddits).

Sticky Notes explain the purpose and dependencies of each section.

Easy to maintain and extend with clear logical separation.

⚠️ This template uses a custom MCP Server node and only works in self-hosted n8n.

🖼 Workflow Preview

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - MCP Server Trigger

Type / Role
@n8n/n8n-nodes-langchain.mcpTrigger - mcpTrigger
Config choices
Version 1

Block 2 - When Executed by Another Workflow

Type / Role
n8n-nodes-base.executeWorkflowTrigger - executeWorkflowTrigger
Config choices
Version 1.1

Block 3 - create_post

Type / Role
n8n-nodes-base.reddit - reddit
Config choices
Version 1

Block 4 - get_many_posts

Type / Role
n8n-nodes-base.reddit - reddit
Config choices
Version 1

Block 5 - delete_post

Type / Role
n8n-nodes-base.reddit - reddit
Config choices
Version 1

Block 6 - get_post_by_id

Type / Role
n8n-nodes-base.reddit - reddit
Config choices
Version 1

Block 7 - operation_switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 8 - create_comment

Type / Role
n8n-nodes-base.reddit - reddit
Config choices
Version 1

Block 9 - get_many_comments

Type / Role
n8n-nodes-base.reddit - reddit
Config choices
Version 1

Block 10 - delete_comment

Type / Role
n8n-nodes-base.reddit - reddit
Config choices
Version 1

Block 11 - reply_comment

Type / Role
n8n-nodes-base.reddit - reddit
Config choices
Version 1

Block 12 - post_switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 13 - comment_switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 14 - get_subreddit_about

Type / Role
n8n-nodes-base.reddit - reddit
Config choices
Version 1

Block 15 - get_subreddit_rules

Type / Role
n8n-nodes-base.reddit - reddit
Config choices
Version 1

Block 16 - subreddit_switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 17 - subreddit_get_many

Type / Role
n8n-nodes-base.reddit - reddit
Config choices
Version 1

Block 18 - post_operation

Type / Role
@n8n/n8n-nodes-langchain.toolWorkflow - toolWorkflow
Config choices
Version 2.1

Block 19 - subReddit_operation

Type / Role
@n8n/n8n-nodes-langchain.toolWorkflow - toolWorkflow
Config choices
Version 2.1

Block 20 - comment_operation

Type / Role
@n8n/n8n-nodes-langchain.toolWorkflow - toolWorkflow
Config choices
Version 2.1

Block 21 - search_posts

Type / Role
n8n-nodes-base.reddit - reddit
Config choices
Version 1

Block 22 - map_post_get_many

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 23 - map_post_get_search

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 24 - map_comment_get_many

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Showing the first 24 of 31 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Reddit API Hub: Manage posts, comments & subreddits via server-sent events
Complexity advanced
Nodes 31
Categories Social Media
Author Simeon
Published 21 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4266/4266.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Reddit API Hub: Manage posts, comments & subreddits via server-sent events do?

Reddit Content Operations via MCP Server ‍ Who is this for? This workflow is built for content creators, marketers, Reddit automation enthusiasts, and AI agent developers who want structured...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Social Media use case.