n8n MCP Server + Slack MCP Server

Beginner30 minutes
Use Cases

Common Use Cases

  • ChatOps automation triggers
  • Workflow status monitoring
  • On-demand report generation
  • Approval workflows via Slack
Before You Begin

Prerequisites

  • Self-hosted n8n instance or n8n Cloud account
  • Slack workspace with bot permissions
Walkthrough

Step-by-Step Guide

1

Configure n8n MCP Server

Connect to your n8n instance with API credentials.

2

Configure Slack MCP Server

Set up with bot token for sending and receiving messages.

3

Create Slash Command Triggers

Map Slack commands to n8n workflow triggers.

async function handleSlackCommand(command) {
  const workflowMap = { "/deploy": "deploy-workflow", "/report": "weekly-report", "/backup": "database-backup" };
  const workflowId = workflowMap[command.text];
  if (workflowId) {
    const execution = await n8n.triggerWorkflow({ id: workflowId });
    await slack.sendMessage({ channel: command.channel, text: `⚡ Workflow triggered: ${workflowId} (execution: ${execution.id})` });
  }
}
4

Monitor Execution Results

Post workflow completion or failure notifications back to Slack.

Examples

Code Examples

typescript
Execution Monitor
async function monitorExecution(executionId) {
  const result = await n8n.getExecution({ id: executionId });
  const emoji = result.finished ? "✅" : "❌";
  await slack.sendMessage({ channel: "#automations", text: `${emoji} Workflow ${result.workflowName}: ${result.finished ? "completed" : "failed"} in ${result.duration}ms` });
}
Help

Troubleshooting

How do I secure webhook triggers?+
Can I pass parameters from Slack?+

Quick Info

DifficultyBeginner
Time Estimate30 minutes
Tools
n8n MCP ServerSlack MCP Server

Need Integration Help?

Our team can implement this integration for you.

Get in Touch