Discourse Community Management Tool Server for AI Agents - n8n Workflow

This advanced n8n workflow registers 16 Discourse API operations as callable tools via an n8n trigger (MCP), enabling AI agents to manage users, posts, categories, and groups. Download this n8n template for powerful community automation.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

AI Developers building specialized agents (e.g., community management bots).
DevOps teams requiring automated, AI-driven forum administration.
Automation specialists looking for comprehensive n8n templates for Discourse.
Users leveraging n8n’s Multi-Chain Prompt (MCP) functionality.

Overview

This specialized n8n workflow functions as a robust Tool Server using the Multi-Chain Prompt (MCP) pattern. It exposes 16 distinct Discourse API operations, allowing an external AI agent to perform complex community management tasks directly through a single n8n trigger. This is one of the most comprehensive n8n templates available for Discourse integration.

By leveraging the MCP architecture, the AI agent can intelligently choose the correct Discourse n8n node (or tool) based on natural language input, whether it needs to create a new category, retrieve a list of users, or update an existing post. This centralized approach simplifies complex automation scenarios, making this n8n workflow an indispensable tool for forum administrators who need AI assistance. The setup ensures security and scalability, channeling all API interactions through a verified n8n instance.

How it Works

The entire process is initiated by the “Discourse Tool MCP Server” n8n trigger, which is an MCP Trigger type. This n8n trigger listens for requests from an external AI system (like a LangChain or OpenAI agent).


  1. Trigger Reception: The n8n trigger receives an incoming request that details the desired action (e.g., “Create a new user named Jane Doe”).

  2. AI Tool Selection: The AI Agent analyzes the request and, utilizing the comprehensive list of 16 available Discourse tools provided by this n8n workflow, determines which specific Discourse n8n node is required.

  3. Execution: The n8n workflow routes the request parameters (user data, post ID, category name) to the selected n8n node, which then executes the Discourse API call (e.g., 'Create a user' or 'Update a post').

  4. Result Return: The result of the Discourse operation is returned immediately via the n8n trigger back to the originating AI agent, completing the loop. This advanced use of n8n templates demonstrates powerful tool integration.

Installation Guide

To deploy this comprehensive n8n workflow, follow these steps:


  1. Import: Copy the provided JSON data and paste it directly into your n8n canvas using the 'New' -> 'Import from JSON' option.

  2. Credentials Setup: Configure the required Discourse credentials for all Discourse Tool nodes. This typically involves setting up an API key and the base URL for your Discourse forum within n8n’s credentials section.

  3. MCP Trigger Activation: Since this n8n workflow uses an mcpTrigger, ensure your n8n instance is accessible by your AI Agent platform. Note the webhook ID provided by the n8n trigger. This URL serves as the endpoint the AI agent will call.

  4. Activate Workflow: Set the n8n workflow to 'Active'.

  5. Agent Integration: Integrate the provided tool server endpoint into your AI model configuration, mapping the 16 available tools (listed in the node details) so the agent knows what tasks this n8n template can perform.

Node Details

This n8n workflow is built around one primary n8n trigger and 16 Discourse Tool n8n nodes:

Discourse Tool MCP Server (n8n trigger):
Function: Serves as the single webhook endpoint for the AI agent, listening for requests to execute specific Discourse operations. It manages the tool communication layer.
Key Configuration: Uses the mcpTrigger type, specifically designed for AI Tool execution environments.

Discourse Tool n8n Nodes (16 total):
Function: Each node executes a specific, isolated function against the Discourse API. They are grouped logically:
User Management: Create a user, Get a user, Get many users.
Group Management: Create a group, Get a group, Get many groups, Update a group.
Post Management: Create a post, Get a post, Get many posts, Update a post.
Category Management: Create a category, Get many categories, Update a category.
Group Membership: Add a user to a group, Remove a user from a group.
* Key Configuration: All these n8n nodes are configured to connect their respective ai_tool output back to the central MCP n8n trigger, making them callable tools within the automation.

Related n8n Workflows

Paid

Nodes: 3 Nodes
Updated: December 26 2025
View all
Created by

A hacker by nature, programmer by trade ⚒️ I'm looking to collaborate on things that save human labor 📫 How to reach me Github👇 -> Discord

Featured*