{
  "name": "Reddit API Hub: Manage posts, comments & subreddits via server-sent events",
  "nodes": [
    {
      "id": "REDACTED",
      "name": "MCP Server Trigger",
      "type": "@n8n/n8n-nodes-langchain.mcpTrigger",
      "position": [
        -120,
        -240
      ]
    },
    {
      "id": "40451b0c-2111-420b-bb22-59b14d497cd3",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        540,
        240
      ]
    },
    {
      "id": "3ae445e0-3cb9-4d21-9484-a54b340ba899",
      "name": "create_post",
      "type": "n8n-nodes-base.reddit",
      "position": [
        1300,
        -680
      ]
    },
    {
      "id": "14d04035-c71e-4108-84f5-fb2859f86ef6",
      "name": "get_many_posts",
      "type": "n8n-nodes-base.reddit",
      "position": [
        1300,
        -520
      ]
    },
    {
      "id": "def4b85a-5c94-40ca-883f-8c8087e7adf3",
      "name": "delete_post",
      "type": "n8n-nodes-base.reddit",
      "position": [
        1300,
        -340
      ]
    },
    {
      "id": "422e5d8e-fe9e-4b33-9608-1921da4e1a0a",
      "name": "get_post_by_id",
      "type": "n8n-nodes-base.reddit",
      "position": [
        1300,
        -160
      ]
    },
    {
      "id": "c14f7575-d78d-4971-b76a-a06d0a57b1b9",
      "name": "operation_switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        760,
        240
      ]
    },
    {
      "id": "c55aafce-5bf8-465b-8c01-a45dffeb7d07",
      "name": "create_comment",
      "type": "n8n-nodes-base.reddit",
      "position": [
        1300,
        80
      ]
    },
    {
      "id": "8de60854-fd35-48aa-bb30-a25a5447d2f4",
      "name": "get_many_comments",
      "type": "n8n-nodes-base.reddit",
      "position": [
        1300,
        260
      ]
    },
    {
      "id": "476bb18c-c71c-4d77-b94e-7d87f6a6afac",
      "name": "delete_comment",
      "type": "n8n-nodes-base.reddit",
      "position": [
        1300,
        460
      ]
    },
    {
      "id": "3ec0391c-d179-4cfa-b25a-455661952c39",
      "name": "reply_comment",
      "type": "n8n-nodes-base.reddit",
      "position": [
        1300,
        640
      ]
    },
    {
      "id": "6ce98a36-d6da-4229-951d-fcba8f5a2b6c",
      "name": "post_switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        1020,
        -340
      ]
    },
    {
      "id": "66693e75-0b94-460f-9c86-5d925ec52be2",
      "name": "comment_switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        1000,
        220
      ]
    },
    {
      "id": "2e1a6a72-59b5-422e-8bde-d1dd837ccfda",
      "name": "get_subreddit_about",
      "type": "n8n-nodes-base.reddit",
      "position": [
        1300,
        920
      ]
    },
    {
      "id": "da324c0c-7f75-4c57-b126-76d24528311e",
      "name": "get_subreddit_rules",
      "type": "n8n-nodes-base.reddit",
      "position": [
        1300,
        1280
      ]
    },
    {
      "id": "04044204-2fe9-4bc1-8eaa-4e2019371f21",
      "name": "subreddit_switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        980,
        1040
      ]
    },
    {
      "id": "26b4d79a-9306-45cf-a8cd-b6ec652d7903",
      "name": "subreddit_get_many",
      "type": "n8n-nodes-base.reddit",
      "position": [
        1300,
        1100
      ]
    },
    {
      "id": "fa1a3b6f-b01b-48e0-93f8-772310dfd8a7",
      "name": "post_operation",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        -180,
        -20
      ]
    },
    {
      "id": "f10780f6-e85a-41dc-849a-85ae4b2289fb",
      "name": "subReddit_operation",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        -20,
        -20
      ]
    },
    {
      "id": "3783630e-9398-4fa1-b486-e541c3df6a17",
      "name": "comment_operation",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        160,
        -20
      ]
    },
    {
      "id": "0e9a89f1-e409-4e41-8c64-d898029c096b",
      "name": "search_posts",
      "type": "n8n-nodes-base.reddit",
      "position": [
        1580,
        -240
      ]
    },
    {
      "id": "ea367253-a874-4fc2-a156-a22d8ae20386",
      "name": "map_post_get_many",
      "type": "n8n-nodes-base.set",
      "position": [
        1520,
        -520
      ]
    },
    {
      "id": "14a4d27e-0f0d-4d57-8e6a-4652563e42b1",
      "name": "map_post_get_search",
      "type": "n8n-nodes-base.set",
      "position": [
        1800,
        -240
      ]
    },
    {
      "id": "62bf710d-2dcd-4a09-b1be-c2481d523d5b",
      "name": "map_comment_get_many",
      "type": "n8n-nodes-base.set",
      "position": [
        1520,
        260
      ]
    },
    {
      "id": "7810503f-f56a-40ba-b6bb-5743d40caab8",
      "name": "split_out_get_many_comments",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1740,
        260
      ]
    },
    {
      "id": "dbf5e1b9-fe70-42a8-9fb7-ab513389200a",
      "name": "posts_split_out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1980,
        -400
      ]
    },
    {
      "id": "2fc0abce-cd11-4feb-9f46-123003bae2eb",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -280,
        -380
      ],
      "parameters": {
        "width": 660,
        "height": 540,
        "content": "## Input and switch to right operation type\nThe MCP server receives a JSON that describes the type of operation that you want to query or perform.\n"
      }
    },
    {
      "id": "d84e71d4-8d27-48b2-9263-7f82cb4b12bd",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        -380
      ],
      "parameters": {
        "width": 320,
        "height": 380,
        "content": "## Possible operations:\n\n\n- post_create\n- post_delete\n- post_get_many\n- post_get_by_id\n- post_search\n- comment_create\n- comment_delete\n- comment_get_many\n- comment_reply\n- subreddit_get_about\n- subred"
      }
    },
    {
      "id": "477eddba-407e-4e03-a16f-b4b8d45da6e9",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        860,
        -740
      ],
      "parameters": {
        "width": 1360,
        "height": 740,
        "content": "## Post CRUD\n"
      }
    },
    {
      "id": "18163585-0952-419f-9705-7f58af1e2861",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        960,
        40
      ],
      "parameters": {
        "width": 1080,
        "height": 760,
        "content": "## Comment CRUD\n"
      }
    },
    {
      "id": "37915576-4634-43a2-ad92-f88979491347",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        960,
        860
      ],
      "parameters": {
        "width": 600,
        "height": 640,
        "content": "## Subreddit read's operation"
      }
    }
  ],
  "connections": {
    "post_switch": {
      "main": [
        [
          {
            "node": "create_post",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "get_many_posts",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "delete_post",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "get_post_by_id",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "search_posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "search_posts": {
      "main": [
        [
          {
            "node": "map_post_get_search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "comment_switch": {
      "main": [
        [
          {
            "node": "create_comment",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "get_many_comments",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "delete_comment",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "reply_comment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get_many_posts": {
      "main": [
        [
          {
            "node": "map_post_get_many",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "post_operation": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "operation_switch": {
      "main": [
        [
          {
            "node": "post_switch",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "comment_switch",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "subreddit_switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "subreddit_switch": {
      "main": [
        [
          {
            "node": "get_subreddit_about",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "subreddit_get_many",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "get_subreddit_rules",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "comment_operation": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "get_many_comments": {
      "main": [
        [
          {
            "node": "map_comment_get_many",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "map_post_get_many": {
      "main": [
        [
          {
            "node": "posts_split_out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "map_post_get_search": {
      "main": [
        [
          {
            "node": "posts_split_out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "subReddit_operation": {
      "ai_tool": [
        [
          {
            "node": "MCP Server Trigger",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "map_comment_get_many": {
      "main": [
        [
          {
            "node": "split_out_get_many_comments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "operation_switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}