πŸ“± Reddit API Hub: Manage posts, comments & subreddits via server-sent events

⚑ 1,434 views Β· πŸ“± Social Media & Email Marketing

Description

πŸ”„ 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:

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

🟩 Comment CRUD

🟦 Subreddit Read Operations

πŸ›  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

Screenshot 20250520 at 11.57.41β€―PM.png

πŸ”— Nodes Used

Reddit, Execute Workflow Trigger, Call n8n Workflow Tool, MCP Server Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup