Skip to main content

👲 Monitor & debug n8n workflows with Claude AI assistant and MCP server

Workflow preview

Workflow preview
100%
👲 Monitor & debug n8n workflows with Claude AI assistant and MCP server preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Tags : AI Agent, MCP Server, n8n API, Monitoring, Debugging, Workflow Analytics, Automation Context Hi! I’m Samir — a Supply Chain Engineer and Data Scientist based in Pari...

Best for

  • DevOps automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.switch, n8n-nodes-base.splitout, n8n-nodes-base.httprequest, n8n-nodes-base.set, n8n-nodes-base.webhook, n8n-nodes-base.respondtowebhook, n8n-nodes-base.code, 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 Samir Saci.

Original n8n.io source

1.1 Workflow description

Title
👲 Monitor & debug n8n workflows with Claude AI assistant and MCP server
Workflow name
👲 Monitor & debug n8n workflows with Claude AI assistant and MCP server

Tags: AI Agent, MCP Server, n8n API, Monitoring, Debugging, Workflow Analytics, Automation

Context

Hi! I’m Samir — a Supply Chain Engineer and Data Scientist based in Paris, and founder of LogiGreen Consulting.

This workflow is part of my latest project: an AI assistant that automatically analyses n8n workflow executions, detects failures, and identifies root causes through natural conversation with Claude Desktop.

> Turn your automation logs into intelligent conversations with an AI that understands your workflows.

The idea is to use Claude Desktop to help monitor and debug your workflows deployed in production.

The workflow shared here is part of the setup.

📬 For business inquiries, you can find me on LinkedIn

Who is this template for?

This template is designed for automation engineers, data professionals, and AI enthusiasts who manage multiple workflows in n8n and want a smarter way to track errors or performance without manually browsing execution logs.

If you’ve ever discovered a failed workflow hours after it happened — this is for you.

What does this workflow do?

This workflow acts as the bridge between your n8n instance and the Claude MCP Server.

It exposes three main routes that can be triggered via a webhook:

  1. get_active_workflows → Fetches all currently active workflows
  2. get_workflow_executions → Retrieves the latest executions and calculates health KPIs
  3. get_execution_details → Extracts detailed information about failed executions for debugging

Each request is automatically routed and processed, providing Claude with structured execution data for real-time analysis.

How does it fit in the overall setup?

Here’s the complete architecture:

Claude Desktop ←→ 
   MCP Server ←→ 
      n8n Monitor Webhook ←→
         n8n API
  • The MCP Server (Python-based) communicates with your n8n instance through this workflow.
  • The Claude Desktop app can then query workflow health, execution logs, and error patterns using natural language.
  • The n8n workflow aggregates, cleans, and returns the relevant metrics (failures, success rates, timing, alerts).

📘 The full concept and architecture are explained in my article published on my blog:
👉 Deploy your AI Assistant to Monitor and Debug n8n Workflows using Claude and MCP

🎥 Tutorial

The full setup tutorial (with source code and demo) is available on YouTube:

How does it work?

  • 🌐 Webhook Trigger receives the MCP server requests
  • 🔀 Switch node routes actions based on "action" parameter
  • ⚙️ HTTP Request nodes fetch execution and workflow data via the n8n API
  • 🧮 A Code node calculates KPIs (success/failure rates, timing, alerts)
  • 📤 The processed results are returned as JSON for Claude to interpret

Example use cases

Once connected, you can ask Claude questions like:

  • “Show me all workflows that failed in the last 25 executions.”
  • “Why is my Bangkok Meetup Scraper workflow failing?”
  • “Give me a health report of my n8n instance.”

Claude will reply with structured insights, including failure patterns, node diagnostics, and health status indicators (🟢🟡🔴).

What do I need to get started?

You’ll need:

  • A self-hosted n8n instance
  • Claude Desktop app installed
  • The MCP server source code (shared in the tutorial description)
  • The webhook URL from this workflow is configured in your .env file

Follow the tutorial for more details, don't hesitate to leave your questions in the comment section.

Next Steps

🗒️ Use the sticky notes inside the workflow to:

  • Replace <YOUR_N8N_INSTANCE> with your own URL
  • Test the webhook routes individually using the “Execute Workflow” button
  • Connect the MCP server and Claude Desktop to start monitoring

This template was built using n8n v.116.2
Submitted: November 2025

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 - Route by Action

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

Block 2 - Extract All Executions

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

Block 3 - Get Last Executions

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - Get Active Workflows

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - Active Workflows

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

Block 6 - Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 7 - Respond to Webhook

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.4

Block 8 - Get Executions Details (Status = Error)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 9 - Processing Audit

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 10 - Split Active Executions

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

Block 11 - Details of Executions

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

Block 12 - Video Tutorial

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

Block 13 - Main Overview

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

Block 14 - Webhook Entry

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

Block 15 - API Calls

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

Block 16 - Response

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

Block 17 - API Calls1

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

Block 18 - API Calls2

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

3. Summary Table

Workflow 👲 Monitor & debug n8n workflows with Claude AI assistant and MCP server
Complexity advanced
Nodes 18
Categories DevOps, AI Summarization
Author Samir Saci
Published 12 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10779/10779.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 👲 Monitor & debug n8n workflows with Claude AI assistant and MCP server do?

Tags : AI Agent, MCP Server, n8n API, Monitoring, Debugging, Workflow Analytics, Automation Context Hi! I’m Samir — a Supply Chain Engineer and Data Scientist based in Pari...

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 DevOps, AI Summarization use case.